I did this:
Replace:
PHP Code:
<input type="hidden" name="token" value="$invitation_token" />
With this:
PHP Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
It worked fine the first time. Sent the invitation out. I tried to do it again and I get this:
Code:
Database error in vBulletin 3.7.0:
Invalid SQL:
INSERT INTO invitation (`invitecode`,`user`,`email`,`sent`) VALUES ('',1,'cam98SS@yahoo.com',1210924065);
MySQL Error : Duplicate entry '' for key 1
Error Number : 1062
Request Date : Friday, May 16th 2008 @ 02:47:45 AM
Error Date : Friday, May 16th 2008 @ 02:47:46 AM
Script : http://www.euphoricarythmia.com/profile.php
Referrer : http://www.euphoricarythmia.com/profile.php?do=invitation
IP Address : 70.41.160.120
Username : Baldilocks
Classname : vb_database
MySQL Version : 4.1.22-standard