The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]()
I love it when people take iniative! It makes everyone so much more willing to help you along.
Databases are actually pretty simple when used for a straight compare... A query for your code could read something like: Code:
$vbulletin->input->clean_gpc('r', 'invitecode', TYPE_NOHTML); if($vbulletin->GPC['invitecode']){ $invitegroupid = $db->query_first_slave(" SELECT usergroupid FROM " . TABLE_PREFIX . "invitecodes WHERE invite = " . $db->escape_string($vbulletin->GPC['invitecode'])) if($invitegroupid){ $userdata->set('usergroupid', $invitegroupid); } else { // no group found, bad code! echo "no group found, try another code next time"; } } As far as adding an admin page that too is pretty straight forward. I'd suggest looking at the code in one of the more basic admin areas like Paid Memberships to see how it calls up the existing records and prints them out. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|