![]() |
How would I do this?
I want users to have option to reset their experience and other stats with a click of button from their user options in RPG Integration hack, I already know the SQL command for it, but have no idea how I would get it working directly from the board...
Just tried it in phpMyAdmin and it worked nicely. It would be this one: PHP Code:
Sorry for being stupid. :/ |
Dark Savior,
Create A New Template "rpg_reset_stats" And Put The Following Code In The Template. Code:
<table bgcolor="{pagebgcolor}" border="0" cellpadding="0" cellspacing="0" width="100%"> Code:
$bbuserinfo[username], Your RPG stats have successfully been reset. Open member.php ( 3 ) Find: ( 1 ) PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Cheers, g-force2k2 |
Link shows up nicely, but page gives fatal error when clicked.
Code:
Fatal error: Call to undefined function: show_nopermission() in C:\www\forums\member.php on line 1233 |
Quote:
find: PHP Code:
PHP Code:
Cheers, g-force2k2 |
You're the man! That worked! Thanks!
|
Quote:
Cheers, g-force2k2 |
Now I just need to add equip reset fields to it and it's perfect. :)
Lets see if I can do this alone... :paranoid: EDIT: I guess it's a bit hard for me, I don't know much about MySQL stuff. I know that the items are located in items_user table, and their rows are itid#. But there are several of those, how do I make it set all of them to 0 for the user who is resetting? :nervous: |
All times are GMT. The time now is 01:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|