1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Merge pull request #5318 from rica-carv/rica-carv-forumtrack_new_shortcodes

Forumtrack new shortcodes
This commit is contained in:
Cameron
2025-02-14 11:54:33 -08:00
committed by GitHub

View File

@@ -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['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']);
$forumUrl = e107::url('forum', 'forum', $row);