Thanks!
Announcement
Collapse
No announcement yet.
2-for-1 special on thread views?!?
Collapse
X
-
2-for-1 special on thread views?!?
Every time I enter a thread, then hit the back button on my browser, the "Views" for that thread has increased by two! I am the only one on the board. Any fix for this?
Thanks!Real Guitar Rock!
www.houseofshred.comTags: None
-
OK, but I still don't understand why entering a thread, then backing out of it causes the views to increment by two. I'm only loading the page that displays the thread once.
When I do the same thing here, the views only increment by one.
Help!Real Guitar Rock!
www.houseofshred.com
Comment
-
And try changing this in showthread.phpCode:if ($noshutdownfunc) { $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'"); } else { $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'"; }
Code:if ($noshutdownfunc) { $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'"); } else { $shutdownqueries[]="UPDATE thread SET views=views+1 WHERE threadid='$threadid'"; }
Comment
-
Thanks for the ideas. Freddie, I made the code change you suggested, but it didn't fix the problem. The only two templates I had changed were the header and footer. I reverted the footer back to the original - not fixed. I then reverted the header back - FIXED!
Here's the modified header code that was causing the problem:
Code:<!-- logo and buttons --> <center> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td valign="top" align="left" background="#000000"><a href="/index.htm"><img src="images/vBulletin_logo.gif" border="0" alt="$bbtitle"></a></td></tr> <tr><td valign="bottom" align="center" nowrap background="images/menu_background.gif"> <!-- toplinks --> <a href="usercp.php?s=$session[sessionhash]"><img src="images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a> <a href="register.php?s=$session[sessionhash]&action=signup"><img src="images/top_register.gif" alt="Registration is free!" border="0"></a> <a href="calendar.php?s=$session[sessionhash]"><img src="images/top_calendar.gif" alt="Calendar" border="0"></a> <a href="memberlist.php?s=$session[sessionhash]"><img src="images/top_members.gif" alt="Find other members" border="0"></a> <a href="misc.php?s=$session[sessionhash]&action=faq"><img src="images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a> <a href="search.php?s=$session[sessionhash]"><img src="images/top_search.gif" alt="Search" border="0"></a> <a href="index.php?s=$session[sessionhash]"><img src="images/top_home.gif" alt="Home" border="0"></a> <!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="images/top_logout.gif" alt="Logout" border="0"></a> --> <!-- /toplinks --> </td> </tr> </table> <!-- /logo and buttons --> <!-- content table --> <table bgcolor="#FFFFFF" width="100%" cellpadding="10" cellspacing="0" border="0"> <tr> <td valign="top">
Thanks,
Kevin
EDIT: I also put the buttons in another table row to put a little more space between them and my site's logo and the area for a banner ad.Last edited by Shredfest; Mon 27th Aug '01, 6:59pm.Real Guitar Rock!
www.houseofshred.com
Comment
-
Did anyone ever find a fix for this issue? One view actually is being counted as 2 on my forum as well. Just posted a new thread about it because I could not find an answer to the question after searching the forums for similar issue. It appears it happens a lot, but no explanation yet. If there's a fix, I haven't found it yet.
Comment
-
Originally posted by k2webfusion
Did anyone ever find a fix for this issue? One view actually is being counted as 2 on my forum as well. Just posted a new thread about it because I could not find an answer to the question after searching the forums for similar issue. It appears it happens a lot, but no explanation yet. If there's a fix, I haven't found it yet.
Comment

Comment