Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forumtrack new shortcodes #5318

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions e107_plugins/forum/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ function forum_track()
$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);
Expand Down
Loading