The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I'm working on a RPG hack and created a new table called "rpg_user". In that table you have "userid" and various stuff such as "exp", "hp" and more. I created a file "rpgadmin.php" and now when $action=modifyuser you can enter the name of the user you want to edit. I can't figure out how to get all data from that user in the table "rpg_user" by entering a name. Could someone help? :ermm: Note that I know almost no php or mysql and this is just trying and seeing what happens what I'm doing.
Although by doing so and by looking at other's code you'll learn too. ![]() Btw here is what I have so far. Also I want it so that after you modified options, the page should go back to "options" and when you editted a user the page should go back to "modifyuser". I looked at how this was done in other hacks but still I can't get it working. ![]() PHP Code:
|
|
#2
|
|||
|
|||
|
A :: for the SELECT * FROM rpg_options if the table doesn't exist it doesn't help unless you have both an rpg_options and rpg_user
for the other query that you don't know same concept :: PHP Code:
regards...g-force2k2 |
|
#3
|
||||
|
||||
|
Heh, found out what I was doing wrong. I tried to select the stuff "WHERE userid=$auser but it had to be "WHERE userid=$auser[userid]. Also I had to add makehiddencode for the userid otherwise the update wouldn't work. So now the updated part is
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|