mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
Issue #2033 sc_lastpost() parms.
This commit is contained in:
@@ -657,8 +657,35 @@ $gen = new convert;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_lastpost()
|
function sc_lastpost($parm = null)
|
||||||
{
|
{
|
||||||
|
if(!empty($parm['type']))
|
||||||
|
{
|
||||||
|
switch($parm['type'])
|
||||||
|
{
|
||||||
|
case "date": // date only
|
||||||
|
// code
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "datelink": // date with link
|
||||||
|
return $this->lastpostdata('date');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "url": // url
|
||||||
|
return $this->lastpostdata('url');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "username": // username of last-post user.
|
||||||
|
return $this->lastpostdata('user');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "name": //thread name
|
||||||
|
// code
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $this->lastpostdata('post');
|
return $this->lastpostdata('post');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user