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
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!
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!
I am regular reader, how are you everybody? This piece of writing posted at this
web site is really pleasant.
Hey very interesting blog!
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!
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!
Very good article! We will be linking to this great content on our site.
Keep up the good writing.
Man…cool site you have here. A lot of very good reviews combined with
similar information!!! Do you already have any type of well written articles on the topic of php?
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.
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!!!
Thanks for sharing your thoughts on captcha decoder.
Regards
I’m gone to tell my little brother, that he should also pay a visit this weblog on regular basis to get updated from newest reports.
Awesome issues here. I am very glad to peer your post.
Thanks a lot and I am looking ahead to touch you.
Will you kindly drop me a mail?
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.
Hurrah, that’s what I was exploring for, what a information! existing here at this website, thanks admin of this web page.
Inspiring quest there. What occurred after? Take care!
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.
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.
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?
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.
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 =)