vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Swap High Score with another user (https://vborg.vbsupport.ru/showthread.php?t=166800)

MattGreer 01-03-2008 03:50 AM

Swap High Score with another user
 
I logged in the wrong account and I would like to take the current high score for one particular game and "merge" it over to the other account. Is there a way to do this?

chatzworld 01-03-2008 11:12 AM

not at the moment as far as i am aware but sounds like a good mod to have

MattGreer 01-03-2008 01:34 PM

I'm guessing that there should be a field in the database to indicate the userid of the person with the highest score. The question is, how many different places am I going to have to edit? I think there are enough "update" type queries to propogate the change to my account but I hesitate to muck with something without backing it up, of course.

Where can I find the field that corresponds to a userID for a given score on a given game?

MrZeropage 01-03-2008 07:33 PM

you should not do that, as the score itself and even gamedata ect. ahve the information stored in DB

I even can't think of any need to have two accounts, so I won't ever integrate a merge...

MattGreer 01-03-2008 08:43 PM

Well, I *CAN* think of a reason to have two accounts. Testing security is an integral part of running any forum, and I need to ensure that private forums are kept private and so forth. The "test" account allows me to double check and any forum admin who doesn't log in as a regular user should have one.

But I digress.

The procedure I have so far is as follows:

Using something like phpmyadmin:
  • Go into the games_champs table and note the gid, which is the game ID number.
  • Go into the users table and note the userID of the person to which you want to change to
  • Go into the games_scores table and search for the high score. Edit the record and change the mid and username to the person to whom you want
  • Go into the games_league table and search for the game ID and userID that corresponds to the record you want to change (might be difficult to figure this out, but I can't give much more advice than that). This fixes the Leaderboard.
Everything seems to have updated just fine except for the "king of the arcade" function. Even when you look at a profile the data is correct under "Player Details". Where is "King of the Arcade" calculated? I *hope* this is a calculation and not a hard-coded number! If I have 8 high scores then I should be the King of the Arcade with 8 scores, right? Or is the King something that is kept even if all the scores are erased? If that is the case then I imagine it should be "hard-coded".

Why in the world are you storing the username in the games tables? You should be getting the username value from the users table. The table/database is not normalized.

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

I went in and ran all the queries in the Admin panel for the Arcade. After the edits I made directly to the database, and running the update queries from the admin panel, all is well with the arcade.

BTW, despite the tone in my post I love this mod and I am very grateful for it! Thanks!!

MrZeropage 01-04-2008 07:26 PM

Quote:

Originally Posted by MattGreer (Post 1414901)
Well, I *CAN* think of a reason to have two accounts. Testing security is an integral part of running any forum, and I need to ensure that private forums are kept private and so forth. The "test" account allows me to double check and any forum admin who doesn't log in as a regular user should have one.

Sure, but does that security-shadow-account needs to play any games in the arcade ? ;) And if so, the results should be considered as a test and get deleted, and not merged to any other account :p

But nevermind - I just won't do any merge-function in ibProArcade :)


You solved your problem now ?

MattGreer 01-05-2008 12:34 AM

Yeah, but I totally pwned that game and I want my score!!! :)

And yes, I solved the "problem" now. Not a bug or actual problem, just an "oops I was on the wrong account" thing.

My forum is very competitive. I need to keep my awesome scores.

Thanks!!


All times are GMT. The time now is 09:04 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.01155 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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