1
0
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:
Cameron 2025-02-14 11:54:33 -08:00 committed by GitHub
commit c54986a2f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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['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);