Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MrZeropage Can you step in please Details »»
MrZeropage Can you step in please
Version: , by Hippy Hippy is offline
Developer Last Online: Apr 2018 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-30-2011 Last Update: Never Installs: 0
 
No support by the author.

MrZeropage once again thanks for providing this mod to everyone here (we all luv it)
The biggest issue ATM with the newest vb and the ibproarcade is the holdsession.php stopped working .. you need to have the remember me ticked or you get logged out of the forum when going to play a game.... so , you are playing the game then finish and submit your score your logged out..
or if you click on a game and then try to View High Scores your logged out


a fix for this would be greatly appreciated..By everyone that uses this mod
Regards
Ron

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-30-2011, 08:27 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm just done some playing with this...didn't even know it was an issue since my board has always had the box ticked by default.

Anyway....try changing that "echo" line to this:
Code:
echo '<meta http-equiv='refresh' content='$secs; URL=$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid'>';

That seems to be working for me, whereas I was able to replicate the issue before by unticking the box.

Certainly the syntax was all wrong before.
Reply With Quote
  #3  
Old 08-30-2011, 08:45 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks Mark I will test it out ..

as mine has always been ticked by default as well.. but I am looking to improve it for others..
Peek in this forum, I been helping out for some time, I was determined to keep this mod alive..
I will report back..


thanks
Hippy

--------------- Added [DATE]1314741199[/DATE] at [TIME]1314741199[/TIME] ---------------

Just checked my notes I have tried this after tons of research this does work..

but it fills your apache error log file up with this error..

Code:
PHP Parse error:  syntax error, unexpected T_STRING, expecting ',' or ';' in /home/public_html/forum/holdsession.php on line 37, referer: arcade.php?&act=Arcade&do=play&gameid=4972
thanks for your effort
Reply With Quote
  #4  
Old 08-30-2011, 08:59 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
thanks Mark I will test it out ..

as mine has always been ticked by default as well.. but I am looking to improve it for others..
Peek in this forum, I been helping out for some time, I was determined to keep this mod alive..
I will report back..


thanks
Hippy

--------------- Added [DATE]1314741199[/DATE] at [TIME]1314741199[/TIME] ---------------

Just checked my notes I have tried this after tons of research this does work..

but it fills your apache error log file up with this error..

Code:
PHP Parse error:  syntax error, unexpected T_STRING, expecting ',' or ';' in /home/public_html/forum/holdsession.php on line 37, referer: arcade.php?&act=Arcade&do=play&gameid=4972
thanks for your effort
Hmm I had a feeling that might happen because actually the syntax is still wrong...it's going to get confused with the ' marks.

But it seems to work...whereas correcting the syntax like this:
Code:
echo "<meta http-equiv='refresh' content='$secs; URL=$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid'>";
fails!

--------------- Added [DATE]1314741892[/DATE] at [TIME]1314741892[/TIME] ---------------

Well I reversed the syntax as well to this:
Code:
echo '<meta http-equiv="refresh" content="$secs; URL=$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid">';
And it still fails.

Syntactically (is that a real word?) it's correct so I can't fathom what's making it fail.
Reply With Quote
  #5  
Old 08-30-2011, 09:53 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I pulled my hair out on this pal..
I read and got it working and I was happy !
till 500 email came with this apache error

LoL I don't know if it's a real word or not lol (sounds good to me tho )I'm not an expert so I read and came up with what you posted and it worked but like I said those errors where killing me ..
Reply With Quote
  #6  
Old 08-31-2011, 05:46 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I started the v2.7.2+ development and will implement all fixes that have been found, will also check the holdsession.php

First need to install fresh vB4 on my site, this is my task for the weekend
Reply With Quote
  #7  
Old 08-31-2011, 07:17 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't it be:

PHP Code:
echo '<meta http-equiv=\'refresh\' content=\'' $secs '; URL=' $vbulletin->options['bburl'] . '/holdsession.php' $vbulletin->session->vars['sessionurl_q'] . 'act=arcade&do=play&gameid=' $gameid '\'>'
That should work.
Reply With Quote
  #8  
Old 08-31-2011, 03:24 PM
waylandprod's Avatar
waylandprod waylandprod is offline
 
Join Date: Jan 2011
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had one of my more tech-savvy users look at it, and he fixed it by changing the php in 'holdsession.php' from
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\"$secs; URL=\"$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid\">"
to
PHP Code:
echo '<meta http-equiv=\'refresh\' content=\'' $secs '; URL=' $vbulletin->options['bburl'] . '/holdsession.php' $vbulletin->session->vars['sessionurl_q'] . 'act=arcade&do=play&gameid=' $gameid '\'>'
AND changing
PHP Code:
$session['sessionurl_q'] = "?$session[sessionurl]"
to
PHP Code:
$session['sessionurl_q'] = '?'.vbulletin->session->vars['sessionurl_q']; 
Reply With Quote
  #9  
Old 08-31-2011, 06:46 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eric View Post
Shouldn't it be:

PHP Code:
echo '<meta http-equiv=\'refresh\' content=\'' $secs '; URL=' $vbulletin->options['bburl'] . '/holdsession.php' $vbulletin->session->vars['sessionurl_q'] . 'act=arcade&do=play&gameid=' $gameid '\'>'
That should work.
Quote:
Originally Posted by waylandprod View Post
I had one of my more tech-savvy users look at it, and he fixed it by changing the php in 'holdsession.php' from
PHP Code:
echo "<meta http-equiv=\"refresh\" content=\"$secs; URL=\"$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid\">"
to
PHP Code:
echo '<meta http-equiv=\'refresh\' content=\'' $secs '; URL=' $vbulletin->options['bburl'] . '/holdsession.php' $vbulletin->session->vars['sessionurl_q'] . 'act=arcade&do=play&gameid=' $gameid '\'>'
AND changing
PHP Code:
$session['sessionurl_q'] = "?$session[sessionurl]"
to
PHP Code:
$session['sessionurl_q'] = '?'.vbulletin->session->vars['sessionurl_q']; 
thanks for your efforts guys..

that change does hold the session but
now this is the error in the apache error log

PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /forum/holdsession.php on line 19,
witch is this line now
PHP Code:
$session['sessionurl_q'] = '?'.vbulletin->session->vars['sessionurl_q']; 
Reply With Quote
  #10  
Old 08-31-2011, 06:58 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
thanks for your efforts guys..

that change does hold the session but
now this is the error in the apache error log

PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /forum/holdsession.php on line 19,
witch is this line now
PHP Code:
$session['sessionurl_q'] = '?'.vbulletin->session->vars['sessionurl_q']; 
Surely that should be:
PHP Code:
$session['sessionurl_q'] = '?' $vbulletin->session->vars['sessionurl_q']; 
Also I'm certain the echo should be:
PHP Code:
echo '<meta http-equiv=\'refresh\' content=\'' $secs '; URL=' $vbulletin->options['bburl'] . '/holdsession.php' $session['sessionurl_q'] . '\''
Otherwise why set $session['sessionurl_q] and append the "?" in the first place?

Driving me bonkers this!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05382 seconds
  • Memory Usage 2,355KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (14)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete