Skip to content

Commit f28ffe4

Browse files
authored
Update ForumHandler.php
Added additional changes for scrolling to last post
1 parent e036458 commit f28ffe4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

class/ForumHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ public function getAllTopics($forum, $criteria = null)
341341
$append = true;
342342
}
343343
} else {
344-
$topic_page_jump .= '[<a href="' . XOOPS_URL . '/modules/newbb/viewtopic.php?topic_id=' . $myrow['topic_id'] . '&amp;start=' . (($i - 1) * $GLOBALS['xoopsModuleConfig']['posts_per_page']) . '">' . $i . '</a>]';
344+
//BigKev73 - Made change so link scroll directly to that post
345+
$topic_page_jump .= '[<a href="' . XOOPS_URL . '/modules/newbb/viewtopic.php?topic_id=' . $myrow['topic_id'] . '&amp;start=' . (($i - 1) * $GLOBALS['xoopsModuleConfig']['posts_per_page']). '#forumpost'. $myrow['post_id'] . '">' . $i . '</a>]';
346+
// $topic_page_jump .= '[<a href="' . XOOPS_URL . '/modules/newbb/viewtopic.php?topic_id=' . $myrow['topic_id'] . '&amp;start=' . (($i - 1) * $GLOBALS['xoopsModuleConfig']['posts_per_page']) . '">' . $i . '</a>]';
345347
// irmtfan remove here and move
346348
//$topic_page_jump_icon = "<a href='" . XOOPS_URL . "/modules/newbb/viewtopic.php?post_id=" . $myrow['post_id'] . "&amp;start=" . (($i - 1) * $GLOBALS['xoopsModuleConfig']['posts_per_page']) . "'>" . newbbDisplayImage('lastposticon',_MD_NEWBB_GOTOLASTPOST) . '</a>';
347349
}

0 commit comments

Comments
 (0)