Skip to content

Commit ee451a8

Browse files
authored
Update newbb_block.php
Changes needed at TOPIC ID to direct post links, which are required for the notification options box to appear.
1 parent 52ece29 commit ee451a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blocks/newbb_block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function b_newbb_show($options)
188188
// START irmtfan remove hardcoded html in URLs - add $seo_topic_url
189189
//$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'];
190190
//BigKev73 > Change to support jumping directly to that post, vs just the page that the topic is on
191-
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'] . '#forumpost' . $topic['post_id'];
191+
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?topic_id=' . $topic['id'] . '&post_id=' . $topic['post_id']."#forumpost" . $topic['post_id'];
192192
$seo_topic_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?topic_id=' . $topic['id'];
193193
$seo_forum_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewforum.php?forum=' . $topic['forum_id'];
194194
if (!empty($newbbConfig['do_rewrite'])) {

0 commit comments

Comments
 (0)