vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   "Remember me" unchecked -> users logged out after playing game, scores not saved (https://vborg.vbsupport.ru/showthread.php?t=267718)

evouga 07-31-2011 07:32 AM

"Remember me" unchecked -> users logged out after playing game, scores not saved
 
Hey everyone,

If a user tries to play a game in my arcade (using vB 4.1.5) after logging in without "remember me," they are logged out as soon as they start playing a game, and upon finishing the game their scores aren't saved.

The logout occurs regardless of how the user leaves the game page (for instance beating the game, or clicking on the "Arcade" nav link.)

I've tried Hippy's holdsession.php fix and it did not work.

Has anybody else had this problem? Is there a known fix? How would I go about debugging this issue?

Thanks.

EDIT: Extra info: "Play in new window" also immediately logs users out. They can click "play in new window," *immediately* close that window, refresh the arcade page, and they're logged out. So the problem doesn't appear to be in holdsession.php.

Hippy 08-01-2011 07:54 PM

1 Attachment(s)
holdsession.php fix stopped working :(.

I found it to just be easier to make all the check boxes checked by default..

example in the screen shot below you'll see the templates to edit
search templates for
Code:

{vb:rawphrase remember_me}
here is a example of the code your looking for

Code:

<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" id="cb_cookieuser" value="1" tabindex="1"  /> {vb:rawphrase remember_me}</label>

add checked="checked" where you see it here

Code:

<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" id="cb_cookieuser" value="1" tabindex="1" checked="checked" /> {vb:rawphrase remember_me}</label>
*note

the code might be a litte different in each template so just search for the rawphrase remember_me and add the checked="checked"

right before /> {vb:rawphrase remember_me}

this will have the remember me checked default..

hope it helps you

ForceHSS 09-10-2011 04:20 AM

do you do it on them all or just the header

Hippy 09-10-2011 11:02 AM

personally.. I do them all

ForceHSS 09-10-2011 12:12 PM

thanks works well


All times are GMT. The time now is 02:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01160 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete