The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. :/ |
#2
|
|||
|
|||
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%"> <tr> <td align="right" width="100%"><normalfont><a href="member.php?s=&action=reset_stats">Reset RPG Stats</a></normalfont></td> </tr> </table> <br> 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 |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Quote:
find: PHP Code:
PHP Code:
Cheers, g-force2k2 |
#5
|
|||
|
|||
You're the man! That worked! Thanks!
|
#6
|
|||
|
|||
Quote:
Cheers, g-force2k2 |
#7
|
|||
|
|||
Now I just need to add equip reset fields to it and it's perfect.
Lets see if I can do this alone... aranoid: 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: |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|