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. I had never heard of phpcodez.com yet, glad I took the time to sign up. and took a look in the posts

  2. 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.

  3. 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

  4. 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]

  5. 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].

  6. 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.

  7. 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.

  8. 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]

  9. 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]

  10. 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]

  11. 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.

  12. 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.

  13. Pingback: The Girl With The Dragon Tattoom FULL MOVIE
  14. Pingback: Accounting Basics
  15. Pingback: Accounting Basics
  16. Pingback: Accounting Basics
  17. Pingback: dallas cleaning
  18. Pingback: Charlotte SEO
  19. Pingback: Check This Out
  20. Pingback: Visit Website
  21. Pingback: Related Site
  22. Pingback: Check This Out
  23. Pingback: Epic Traffic Bot
  24. Pingback: robe de cocktail
  25. Pingback: Free Xbox Live
  26. Pingback: win the lottery
  27. Pingback: vetement femme
  28. Pingback: friv
  29. Have you ever thought about adding a little bit more than
    just your articles? I mean, what you say is important and everything.
    Nevertheless just imagine if you added some great visuals or video
    clips to give your posts more, “pop”! Your content
    is excellent but with images and video clips, this blog could
    definitely be one of the greatest in its niche.
    Good blog!

  30. This is really interesting, You are a very
    skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your web site
    in my social networks!

  31. Hello there! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new to me.

    Anyhow, I’m definitely happy I found it and I’ll be
    book-marking and checking back often!

  32. Very good site you have here but I was curious about if you knew of any forums that cover the same topics talked about in this article?

    I’d really like to be a part of community where I can get suggestions from other experienced people that share the same interest. If you have any suggestions, please let me know. Thanks!

  33. I have been exploring for a little bit for any high quality
    articles or blog posts on this kind of area . Exploring in Yahoo I finally stumbled upon this site.
    Studying this information So i am satisfied to show that I have a very just
    right uncanny feeling I found out just what I needed.

    I such a lot definitely will make certain to don?t omit
    this web site and provides it a look regularly.

  34. Have you got any other kind of expert articles involved with this particular one?
    I’d wish to investigate a little more about this particular area!!!! I personally really love your current articles, however I have to considerably more help and advice relating to php. Appreciate it!!!

  35. Its like you read my mind! You appear to know so
    much about this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive the message home a little bit, but other than
    that, this is great blog. An excellent read. I will definitely be
    back.

  36. Hi there, this weekend is nice in support of me, for the
    reason that this point in time i am reading this great educational paragraph here at my house.

  37. I have read several excellent stuff here. Certainly value bookmarking for revisiting. I surprise how much effort you place to create such a wonderful informative website.

  38. Hey! Do you know if they make any plugins to protect against hackers?

    I’m kinda paranoid about losing everything I’ve worked
    hard on. Any recommendations?

  39. hello there and thank you for your information – I have
    definitely picked up something new from right here.
    I did however expertise several technical issues using this web site,
    since I experienced to reload the web site many times previous to I could get it to load properly.
    I had been wondering if your hosting is OK? Not that I am complaining, but slow loading instances times will
    very frequently affect your placement in google and could damage your high-quality
    score if advertising and marketing with Adwords.

    Anyway I’m adding this RSS to my e-mail and could look out for a lot more of your respective interesting content. Ensure that you update this again very soon.

  40. Terrific article! That is the kind of info that should be shared across the internet.
    Shame on Google for not positioning this post higher!
    Come on over and discuss with my site . Thanks =)

Leave a Reply to http://chillwithfriends.com Cancel reply

Your email address will not be published. Required fields are marked *