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

Reply
 
Thread Tools
User Reset MySQL Errors & Issues Details »»
User Reset MySQL Errors & Issues
Version: , by DragoZERO DragoZERO is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-02-2006 Last Update: Never Installs: 0
 
No support by the author.

Whenever I try to reset user data, I am given an error message about the SQL syntax. It says there is an error in the syntax and the query cannot be completed.

Any solutions and/or help is much appreciated.

Show Your Support

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

Comments
  #2  
Old 07-13-2006, 01:05 AM
DragoZERO's Avatar
DragoZERO DragoZERO is offline
 
Join Date: Feb 2006
Location: USA
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the double post:

Could I get the raw reset SQL code? I'll just do it manually through ACP or through phpMyAdmin.
Reply With Quote
  #3  
Old 07-13-2006, 09:41 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am fixing this atm, I didnt answer because theres already many posts about this.
Reply With Quote
  #4  
Old 07-13-2006, 09:48 PM
DragoZERO's Avatar
DragoZERO DragoZERO is offline
 
Join Date: Feb 2006
Location: USA
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.. I just got an e-mail about the update. Normally I would have searched, but I am very busy with work and such. Thanks tho Revan, props to you.

Okay, there are no SQL errors.. but its not work now. It goes through fine, but nothing changes. I've cleared and reset caches on the forum and my browser, also had someone else try and nothing.

And I get this if I reset it myself through headquarters.php:




Code:
UPDATE vb_rpg_user SET
	ap = 0,
	maxhp = 25,
	maxmp = 4,
	maxpp = 0,
	hp = 19,
	mp = 0,
	pp = 0,
	hascharacter = 0,
	rpgname = 'N/A',
	battles = 0,
	wins = 0,
	losses = 0,
	draws = 0,
	retreats = 0,
	alignmentid = 1,
	classid = 1,
	genderid = 1,
	raceid = 1,
	typeid = 1
WHERE userid = 1

UPDATE `vb_user` SET `rpg` = 'a:30:{s:6:"userid";s:1:"1";s:11:"alignmentid";s:1:"1";s:7:"classid";s:1:"1";s:6:"clanid";s:1:"5";s:9:"elementid";s:0:"";s:8:"genderid";s:1:"1";s:6:"raceid";s:1:"1";s:6:"typeid";s:1:"1";s:2:"hp";s:2:"19";s:5:"maxhp";s:2:"25";s:2:"mp";s:1:"0";s:5:"maxmp";s:1:"4";s:2:"pp";s:1:"0";s:5:"maxpp";s:1:"0";s:2:"ap";s:1:"0";s:2:"xp";s:1:"0";s:7:"rpgname";s:3:"N/A";s:8:"dropdown";s:1:"0";s:12:"canchallenge";s:1:"0";s:10:"inputlevel";s:1:"1";s:5:"level";s:1:"1";s:8:"battleid";s:1:"0";s:15:"monsterbattleid";s:1:"0";s:7:"battles";s:1:"0";s:4:"wins";s:1:"0";s:6:"losses";s:1:"0";s:5:"draws";s:1:"0";s:8:"retreats";s:1:"0";s:12:"hascharacter";s:1:"0";s:13:"gmpermissions";s:0:"";}' WHERE `userid` = '1'
If I enter that code in manually, it does the trick.. so yeah.
Reply With Quote
  #5  
Old 07-14-2006, 10:33 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ugh >_<
Reply With Quote
  #6  
Old 07-15-2006, 10:01 PM
DragoZERO's Avatar
DragoZERO DragoZERO is offline
 
Join Date: Feb 2006
Location: USA
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay.. the update changed a few things. Now, once you click reset and all.. you get a blank screen, white - nothing more. Your money and items are the only thing that is reset.
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:06 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.04521 seconds
  • Memory Usage 2,252KB
  • Queries Executed 21 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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