Where is that from? Is that from function list_unreads() that this mod adds to includes/functions.php?scottflory wrote:Here is the query:
SELECT t.forum_id, t.topic_id, p.post_time FROM phpbb_topics t, phpbb_posts p WHERE p.post_id = t.topic_last_post_id AND t.topic_id IN (3219,3146,3975,......MANY OTHER NUMBERS, ABOUT 300 OF THEM......4221,4222,4224) AND (p.post_time <= 1191520768) AND t.topic_moved_id = 0
in viewtopic.php:Merlin Sythove wrote:In viewtopic.php, look for the word 'newest'. There should be code to translate newest to an actual post id, and then a redirect statement to actually go to that post.
Compare your files with the original phpbb 2.0.22, using a utility such as CompareIT (free) to see the differences.
Code: Select all
$post_id = empty($row['post_id']) ? $row['topic_last_post_id'] : $row['post_id'];
redirect(append_sid("./viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id", true));
Merlin, how do we even know it gets there?Merlin Sythove wrote:So: The link is OK, and the problem is that you become a guest when it is executed.
Replace this:
redirect(append_sid("./viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id", true));
by this, for testing only:
redirect("./viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id");
and see if that works. I've taken out the append_sid call that appends your session id, maybe something is messed up there.
Yup, its from that function, I expanded it into a test version of index.php for debugging.asinshesq wrote: Where is that from? Is that from function list_unreads() that this mod adds to includes/functions.php?
In that case, clean your IE cache, a full cache is a well known cause for this type of problems.ace2ace wrote:1- This problem doesn't exist when I use firefox on the same PC. It only happens with IE and browzar.
2- On another PC, both IE/browzar and firefox work fine.