View Single Post
  #3  
Old 26 Aug 2010, 21:30
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
couldn't find who posted this originally but this is the postbit & or
postbit_legacy fix
change from this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

full scroll on postbit scrolling crown
http://www.vbulletin.org/forum/showp...postcount=6645

members getting logged out when submitting score?
delete the contents of holdsession.php or comment it all out and save then upload..



there are 2 other other wways if you would like to try
I have not tested them
fixes are here in this quoted post but I am not 100% sure vb4 needs them
this was originally for vb3

Originally Posted by kh99 View Post
I'm new to all this stuff, and I don't claim to understand most of what the arcade code does. But I was tracking down a problem with scores not saving in IE and I found that the problem was related to the code around line 3375, which seems to be some sort of fix for a problem with IE. Around line 3439 or so there's a check that looks like it determines if the amount of time the game was played is reasonable, but I was finding that the time was 0 and so I was getting an "Error #005" 'your score will not be saved' message. This seems to be related to the fix at 3375 which sets the game start time to the current time. The problem is that the game end time is also the current time. I "fixed" this by subtracting 1 from the game start time around line 3375, so the code in that area now reads:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Maybe this is server-dependent so that it doesn't happen for everyone.

--------------- Added 23 Oct 2009 at 00:55 ---------------

Another problem I found with scores not saving is that people get logged out while playing, then their browser "hangs" when it tries to save the score (assuming they haven't checked "remember me" when loggin in). I found that the "holdsession.php" file wasn't working to keep the user logged in, for two different reasons. One is that there's an error in the file. On the last line starting with "echo", there's an extra backslash right after 'URL=', so after URL there should be no backslash between the '=' and the double quotes.

Also, at least in version 3.8.3 of vB, the session was still not being held because the 'lastactivity' time was never getting written to the database. I tracked this down to the fact that it's done using "shutdown_query", which doesn't execute the query until the end of the page request, but since "holdsession.php" doesn't use any of the vB output functions, the query never gets executed. I fixed this by adding a call to "exec_shut_down();" as the last line in holdsession.php.

Last edited by Hippy; 12 May 2012 at 20:55. Reason: updated 5/12/2012
Reply With Quote