Skip to content

Commit 32fd6d4

Browse files
authored
Merge pull request #85 from BigKev73/patch-5
Update TopicRenderer.php
2 parents 567a768 + d80a48f commit 32fd6d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

class/TopicRenderer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,11 @@ public function renderTopics(\Smarty $xoopsTpl = null)
965965
}
966966
}
967967
}
968+
// BigKev73 - Added to make jump ICON, jump and scroll to the correct "last post"
969+
$topic_page_jump_icon = "<a href='" . XOOPS_URL . '/modules/newbb/viewtopic.php?post_id=' . $myrow['topic_last_post_id'] . '#forumpost=' . $myrow['topic_last_post_id'] . "'>" . newbbDisplayImage('lastposticon', _MD_NEWBB_GOTOLASTPOST) . '</a>';
970+
968971
// irmtfan - move here for both topics with and without pages - change topic_id to post_id
969-
$topic_page_jump_icon = "<a href='" . XOOPS_URL . '/modules/newbb/viewtopic.php?post_id=' . $myrow['topic_last_post_id'] . '' . "'>" . newbbDisplayImage('lastposticon', _MD_NEWBB_GOTOLASTPOST) . '</a>';
972+
//$topic_page_jump_icon = "<a href='" . XOOPS_URL . '/modules/newbb/viewtopic.php?post_id=' . $myrow['topic_last_post_id'] . '' . "'>" . newbbDisplayImage('lastposticon', _MD_NEWBB_GOTOLASTPOST) . '</a>';
970973

971974
// ------------------------------------------------------
972975
// => topic array

0 commit comments

Comments
 (0)