Database Error Fix:
Line 374, change to:
Code:
$db->query_write("INSERT INTO " . TABLE_PREFIX . "invitation (`invitecode`,`user`,`email`,`sent`) VALUES ('".$invitation_token."',".$vbulletin->userinfo['userid'].",'".$invitation_email."'," . TIMENOW . ")");
Notes:
- vbulletin already checks for malformed e-mail inputs
- The script attempts to 'escape' or remove any special characters from the input, but it also does the same for your username and password
- Thus : yourdbname_vb becomes yourdbname
BTW, if you want to increase your invites:
line 14, just change my '1000' to whatever u want:
Code:
$db->query_write("ALTER TABLE `" . TABLE_PREFIX . "user` ADD `invitation` INT( 10 ) UNSIGNED DEFAULT '1000' NOT NULL");