Vbulletin Auto registration script

1)Create a file with desired name (let it be vb_register.php) with the following code

function qpc_post($varname){
return trim(stripslashes((get_magic_quotes_gpc()) ? $_POST[$varname] : addslashes($_POST[$varname])));
}

define(‘THIS_SCRIPT’, ‘vb_register.php’);

require_once(‘./global.php’);
require_once(‘./includes/class_dm.php’);
require_once(‘./includes/class_dm_user.php’);

$userdm = new vB_DataManager_User($vbulletin, ERRTYPE_ARRAY);

$userdm->set(‘username’, qpc_post(‘username’));
$userdm->set(’email’, qpc_post(’email’));
$userdm->set(‘password’, qpc_post(‘password’));
$userdm->set(‘usergroupid’,qpc_post(‘usergroupid’));
$userdm->set(‘ipaddress’, qpc_post(‘ipaddress’));
$userdm->set(‘referrerid’, qpc_post(‘referrername’));
$userdm->set(‘timezoneoffset’, qpc_post(‘timezoneoffset’));
$userdm->set_bitfield(‘options’, ‘adminemail’, intval(qpc_post(‘adminemail’)));
$userdm->set_bitfield(‘options’, ‘showemail’, intval(qpc_post(‘showemail’)));
$firstname=qpc_post(‘firstname’);
$lastname=qpc_post(‘lastname’);
$dst_setting = intval(qpc_post(‘dst’));
switch ($dst_setting)
{
case 0:
case 1:
$userdm->set_bitfield(‘options’, ‘dstonoff’, $dst_setting);
break;
case 2:
$userdm->set_bitfield(‘options’, ‘dstauto’, 1);
break;
}

#If there are errors (eMail not set, eMail banned, Username taken, etc.) you can check for errors using
if (count($userdm->errors)) {
for($i=0; $ierrors); $i++) {
print “ERROR{$i}:{$userdm->errors[$i]}n”;
}
} else {
# If everything is OK
$newuserid = $userdm->save();
echo “1”;
}

2)Upload the file to the server where the vBulletin is installed

3)Paste the below given code , immediately after the code that register a user in the main site .
$url=”http://www.example.com/forum/vb_register.php”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, “username=$mem_username&email=$mem_email&password=$mem_password&usergroupid=2”);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
curl_close ($ch);

// http://www.example.com/forum/ is the location where vbulletin is installed

87 thoughts on “Vbulletin Auto registration script”

  1. As a Newbie, I am constantly browsing online for articles that can help me. I am thankful to this particular site tppramod.wordpress.com. thank you!!! [url=http://www.shedplansecrets.com/how-to-build-a-shed/]how to build a shed door[/url]

  2. I had never heard of phpcodez.com yet, glad I took the time to sign up. and took a look in the posts

  3. Wonderful goods from you, man. I’ve understand your stuff previous to and you are just too wonderful. I really like what you have acquired here, really like what you’re stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I cant wait to read much more from you. This is actually a wonderful web site.

  4. I registered to this forum jus to reply to this thread, and I would like to say thank you for posting. It might not make sense to you, but it does to me, and I felt I needed to leave a comment.
    post you have made

  5. Fabulous, just fabulous! J[url=http://itsascam.info/smf/index.php?action=profile;u=482513]:)[/url]

    [url=http://www.trackdayriders.com/forum/index.php?action=profile;u=146647]kettlebell workout[/url]

  6. hey your blog design is very nice, clean and fresh and with updated content, make people feel peace and I always like browsing your site.
    My website is [url=http://www.cheapwebsitehostingreviews.net]Server Hosting[/url].

  7. Hello there, I found your website via Google while searching for a related topic, your website came up, it looks great. [url=http://www.bhp-profesja.pl/kontakt.html]nadzor BHP[/url] I’ve bookmarked it in my google bookmarks.

  8. I really wanted to compose a message in order to appreciate you for all the remarkable information you are giving at this site. My time consuming internet search has now been paid with wonderful content to write about with my friends and classmates. I would express that most of us visitors are unequivocally lucky to exist in a wonderful site with very many lovely professionals with very beneficial solutions. I feel very fortunate to have come across your webpages and look forward to so many more excellent moments reading here. Thanks once more for all the details.

    tag: [url=http://www.guccioutletmallstore.com/gucci-large-aviator-frame-sunglasses-with-gucci-logo-238124-in-turquoise-p-286.html]Gucci Handbags[/url],[url=http://www.guccimallstore.com/gucci-gg-logo-signature-moccasins-p-446.html]Gucci on sale[/url],[url=http://www.guccimallstore.com/gucci-logo-crest-rectangle-sunglass-burgundy-p-333.html]Gucci Outlet[/url]

    Thanks so much for giving everyone an extraordinarily nice opportunity to discover important secrets from this blog. It is usually very brilliant and as well , packed with a good time for me and my office mates to visit the blog at the very least thrice in one week to learn the latest issues you have got. And lastly, I’m also at all times amazed with the outstanding hints you give. Certain two tips in this post are particularly the best I’ve had.

  9. Wonderful goods from you, man. I’ve understand your stuff previous to and you are just too excellent. I actually like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still take care of to keep it sensible. I cant wait to read far more from you. This is really a great web site. [url=http://www.poznanapartamenty.pl/]noclegi Poznan[/url]

  10. Excellent goods from you, man. I’ve understand your stuff previous to and you are just extremely fantastic. I really like what you’ve acquired here, certainly like what you’re saying and the way in which you say it. You make it enjoyable and you still care for to keep it wise. I can’t wait to read much more from you. This is actually a terrific website. [url=http://www.poznanapartamenty.pl//content/view/17/23/]noclegi w Poznaniu[/url]

  11. All of the illustrations you have made, the easy site menu, the relationships you will assist to create – it’s got mostly excellent, and it’s really assisting our son and us recognize that this subject is pleasurable, which is certainly very indispensable. Thanks for all!
    [url=http://www.agat.bydgoszcz.pl/kontakt/]noclegi w Bydgoszczy[/url]

  12. Hello there, I found your blog via Google while looking for a related topic, your site came up, it looks great. [url=http://www.bhp-profesja.pl/]szkolenia BHP[/url] I have bookmarked it in my google bookmarks.

  13. I’m not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for wonderful info I was looking for this info for my mission.

  14. Pingback: The Girl With The Dragon Tattoom FULL MOVIE
  15. Pingback: Accounting Basics
  16. Pingback: Accounting Basics
  17. Pingback: Accounting Basics
  18. Pingback: dallas cleaning

Leave a comment