I just upgraded my Nuke 7.5 with BBtoNuke2.0.11. Within each Board, the little icon with the arrow next to a subject that takes you to the most recent post no longer works - it now takes you to a non-existant page.
On the main index, the arrows next to a board that take you to the most recent post within that board work normally.
In a Forum, when you are viewing a list of topics, there is a "Newest Post" icon on the left side of the topic that should link you to the newest post in that subject. When I hover on that Icon, I get the following URL:
Arrrgh... it's something in viewtopic.php, I am guessing in here... I just can't find it.
The URL for the new post Icon appears fine - that takes you to a function that then redirects you to the actual post. The redirect function is what is going wrong, it's adding the /modules/Forums in there.
Here's the code... can anyone spot the error and tell me how to fix it?
// Find topic id if user requested a newer
// or older topic
if ( isset($HTTP_GET_VARS['view']) && empty($HTTP_GET_VARS[POST_POST_URL]) )
if ( $HTTP_GET_VARS['view'] == 'newest' )
if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_GET_VARS['sid']) )
$session_id = isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) ? $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid'] : $HTTP_GET_VARS['sid'];
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
$session_id = '';
if ( $session_id )
$sql = "SELECT p.post_id
FROM " . POSTS_TABLE . " p, " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
WHERE s.session_id = '$session_id'
AND u.user_id = s.session_user_id
AND p.topic_id = '$topic_id'
AND p.post_time >= u.user_lastvisit
ORDER BY p.post_time ASC
if ( !($result = $db->sql_query($sql)) )
message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql);
if ( !($row = $db->sql_fetchrow($result)) )
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum