The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
updating usergroup with datamanager -- help please
hi,
im not much of a programmer, but im determined to make this project im working on work, so i need a bit of help.. im trying to get a users current user group and change (update) it using the users datamanager. but im totally confused.. the documentation is so skimpy, but this is what ive been able to figure out based on the examples and text thats available... so here my questions that i need help with.. 1) First, I understand I need to create the datamanager that Im going to use. so I want to use the users datamanager so correct me if I wrong but I do that like this: Code:
$dataman =& datamanager_init('User', $vbulletin); Code:
$dataman->set_existing($vbulletin->userinfo); so now ive got the datamanager for users going and ive got it with the existing data in it right? so now i need to get the current users usergroup and then update it with a new one right? is this how i do that? Code:
$newgroup = 59; $dataman->setr('usergroupid', $usergroupid); and now am i correct in assuming that the user datamanager also includes all the profile fields and custom profile fields? so my next question is how do i check the bitfields for the profile field that i want to base the usergroup change on? thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|