Log in

View Full Version : AdminCP Plugin - Saving User Help


Mko
03-09-2012, 10:13 AM
Fixed.

kh99
03-09-2012, 01:26 PM
A couple of things: unless your db has no password for the 'root' user, then you probably want to change this line to have the right info:

$game = @mysqli_connect('localhost', 'root', '', vbulletin');


(or maybe you just chnaged it so you wouldn't be posting your info).

The other thing is that if your db has a table prefix you need to add it to the user table name in the query.

Where are you putting that code?

Mko
03-09-2012, 04:46 PM
A couple of things: unless your db has no password for the 'root' user, then you probably want to change this line to have the right info:

$game = @mysqli_connect('localhost', 'root', '', vbulletin');


(or maybe you just chnaged it so you wouldn't be posting your info).

The other thing is that if your db has a table prefix you need to add it to the user table name in the query.

Where are you putting that code?
I have the info like that so I'm not posting the info :P
I'm executing this hook at useradmin_update_save.
The execution order is 1 as well.

I'll be sure to try out that table prefix as well later on, thanks!