Skip to content

Commit

Permalink
Merge pull request #83 from BigKev73/patch-4
Browse files Browse the repository at this point in the history
Update newbb_block.php
  • Loading branch information
mambax7 authored Jan 25, 2021
2 parents 01a427c + 7a30c9b commit 09e55e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blocks/newbb_block.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ function b_newbb_show($options)
$topic['topic_poster'] = $topic_poster;
$topic['topic_page_jump'] = $topic_page_jump;
// START irmtfan remove hardcoded html in URLs - add $seo_topic_url
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'];
//$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'];
//BigKev73 > Change to support jumping directly to that post, vs just the page that the topic is on
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id']."#forumpost" . $topic['post_id'];
$seo_topic_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?topic_id=' . $topic['id'];
$seo_forum_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewforum.php?forum=' . $topic['forum_id'];
if (!empty($newbbConfig['do_rewrite'])) {
Expand Down Expand Up @@ -530,7 +532,9 @@ function b_newbb_post_show($options)
$topic['post_text'] = $post_text;
}
// START irmtfan remove hardcoded html in URLs
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'];
//$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id'];
//BigKev73 > Change to support jumping directly to that post, vs just the page that the topic is on
$seo_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewtopic.php?post_id=' . $topic['post_id']."#forumpost" . $topic['post_id'];
$seo_forum_url = XOOPS_URL . '/' . SEO_MODULE_NAME . '/viewforum.php?forum=' . $topic['forum_id'];
// END irmtfan remove hardcoded html in URLs
if (!empty($newbbConfig['do_rewrite'])) {
Expand Down

0 comments on commit 09e55e3

Please sign in to comment.