Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
Swap High Score with another user Details »»
Swap High Score with another user
Version: , by MattGreer MattGreer is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-03-2008 Last Update: Never Installs: 0
 
No support by the author.

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?

Show Your Support

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

Comments
  #2  
Old 01-03-2008, 11:12 AM
chatzworld chatzworld is offline
 
Join Date: Apr 2007
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not at the moment as far as i am aware but sounds like a good mod to have
Reply With Quote
  #3  
Old 01-03-2008, 01:34 PM
MattGreer MattGreer is offline
 
Join Date: Mar 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 01-03-2008, 07:33 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #5  
Old 01-03-2008, 08:43 PM
MattGreer MattGreer is offline
 
Join Date: Mar 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #6  
Old 01-04-2008, 07:26 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MattGreer View Post
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

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


You solved your problem now ?
Reply With Quote
  #7  
Old 01-05-2008, 12:34 AM
MattGreer MattGreer is offline
 
Join Date: Mar 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
Reply

Thread Tools

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 05:57 AM.


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.03916 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete