mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Forum - allow setting dateformat of {JOINED} SC
This commit is contained in:
@@ -292,14 +292,25 @@
|
||||
return "<a href='" . e_SELF . '?' . e_QUERY . "#top' onclick=\"window.scrollTo(0,0);\">" . $text . '</a>';
|
||||
}
|
||||
|
||||
function sc_joined()
|
||||
{
|
||||
|
||||
/**
|
||||
* @example {JOINED: dateformat=relative}
|
||||
*/
|
||||
function sc_joined($parm = '')
|
||||
{
|
||||
$gen = e107::getDate();
|
||||
if($this->postInfo['post_user'])
|
||||
{
|
||||
|
||||
if(empty($parm['dateformat']))
|
||||
{
|
||||
return LAN_FORUM_2031 . ': ' . $gen->convert_date($this->postInfo['user_join'], 'forum') . '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
return LAN_FORUM_2031 . ': ' . $gen->convert_date($this->postInfo['user_join'], $parm['dateformat']) . '<br />';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user