The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to update a usergroup?
Hi there,
I'd like to manually update a usergroup based on a querystring value: PHP Code:
I'd appreciate a little help, thanks! |
#2
|
|||
|
|||
Why would you want to do this via phpMyAdmin?
|
#3
|
|||
|
|||
The php file is being called from another application which delivers the userid. So I need it to look like that, I call the file (example name):
updateuseridgroup.php?userid=1 And the scripts updates the usergroup of the given userid. I just need a function or possible way to manually update the usergroup of a vB user. I don't want to fire a raw SQL Update Query as I don't know what other fields vB is updating when changing the usergroup.. |
#4
|
|||
|
|||
You want to do something like this:
PHP Code:
|
#5
|
||||
|
||||
You always have to use $dmclassvariable->set_existing() when using a data manager (or ones that manipulate data). That way it will know what to edit...
|
#6
|
|||
|
|||
Thanks Opserty, that way it's working!
Ok, thanks Kovifor! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|