vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Games with AND and OR Not Saving Scores (https://vborg.vbsupport.ru/showthread.php?t=326694)

Pocket Aces 08-31-2018 05:38 AM

Games with AND and OR Not Saving Scores
 
Is there a fix for games with AND (eg. cANDy) and OR (eg. wORms) in their names unable to submit the score?

blind-eddie 08-31-2018 11:35 PM

I have never heard of this happening before, share with me the exact game names and I will see if I have this issue.

MarkFL 09-01-2018 12:28 AM

Quote:

Originally Posted by blind-eddie (Post 2596191)
I have never heard of this happening before, share with me the exact game names and I will see if I have this issue.

I recently noticed "Candy Crush" never saving scores. I'm still using version 2.7.3 of the arcade, because it was never clear to me what the recent grade was about, and it took quite a bit of doing to get it to work with PHP 7.x, and I didn't want to potentially have to mess with all that again.

stangger5 09-01-2018 12:07 PM

Dave gave me this two years ago.

Replace the whole ibp_cleansql function (at the bottom of arcade.php) with:


Code:

function ibp_cleansql($value)
{
  global $vbulletin;
  return $vbulletin->db->escape_string($value);
}

:up:

MarkFL 09-01-2018 04:17 PM

Quote:

Originally Posted by stangger5 (Post 2596195)
Dave gave me this two years ago.

Replace the whole ibp_cleansql function (at the bottom of arcade.php) with:


Code:

function ibp_cleansql($value)
{
  global $vbulletin;
  return $vbulletin->db->escape_string($value);
}

:up:

Yes, now Candy Crush saves high scores. Thanks for that!

MrZeropage 10-26-2018 04:09 PM

Problem removed in ibProArcade v2.7.5+ :cool:


All times are GMT. The time now is 02:56 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.01585 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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