mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 08:59:44 +01:00
Merge pull request #5318 from rica-carv/rica-carv-forumtrack_new_shortcodes
Forumtrack new shortcodes
This commit is contained in:
commit
c54986a2f3
@ -434,6 +434,10 @@ class forum_front
|
|||||||
$data['LASTPOSTUSER'] = !empty($row['user_name']) ? "<a href='" . e107::url('user/profile/view', array('name' => $row['user_name'], 'id' => $row['thread_lastuser'])) . "'>" . $row['user_name'] . "</a>" : LAN_ANONYMOUS;
|
$data['LASTPOSTUSER'] = !empty($row['user_name']) ? "<a href='" . e107::url('user/profile/view', array('name' => $row['user_name'], 'id' => $row['thread_lastuser'])) . "'>" . $row['user_name'] . "</a>" : LAN_ANONYMOUS;
|
||||||
$data['LASTPOSTDATE'] = $tp->toDate($row['thread_lastpost'], 'relative');
|
$data['LASTPOSTDATE'] = $tp->toDate($row['thread_lastpost'], 'relative');
|
||||||
|
|
||||||
|
$data['LASTPOSTUSERAVATAR'] = $tp->toAvatar(e107::user($row['thread_lastuser']));
|
||||||
|
$data['VIEWS'] = $tp->toNumber($row['thread_views']);
|
||||||
|
$data['REPLIES'] = $tp->toNumber($row['thread_total_replies']);
|
||||||
|
|
||||||
$buttonId = "forum-track-button-" . intval($row['thread_id']);
|
$buttonId = "forum-track-button-" . intval($row['thread_id']);
|
||||||
|
|
||||||
$forumUrl = e107::url('forum', 'forum', $row);
|
$forumUrl = e107::url('forum', 'forum', $row);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user