VBulletin API for auto updating user details

1) Create a file with desired name (let it be vb_update.php) with the following code
require_once(‘class.forumops.php’);
$clientdata = unserialize($_POST['post']);
foreach($clientdata as $key => $value)
{
$userdata[$key]=$value;
}
$forum = new ForumOps();
$errmsg = $forum->update_user($userdata);
if ($errmsg) echo $errmsg;
else echo “User Updated successfully.
n”;

NOTE :You can download the script using the url http://wp.me/p1aZaf-1d

2)Upload the file to the server the vBulletin installed

3)Paste the below given code , immediately after the code that update the user details .

$clientdata = array( ‘username’ =>$Username);
$clientdata['newusername'] = $newUsername;
$clientdata['password'] = $password;
$clientdata['email'] = $email;
$url=”http://www.example.com/forum/vb_update.php”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, array(“post” => serialize($clientdata)));
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

19 thoughts on “VBulletin API for auto updating user details”

  1. Heya i am for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you aided me.

  2. Simply wish to say your article is as amazing. The clearness in your post is simply excellent and i could assume you are an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the rewarding work.

  3. You really are all actually sweet and also thoughtful of others and also reading your website posts is an excellent delight in my experience. And that of a generous treat! Dan and I really have fun making use of your ideas in what we have to do in the near future. Our collection of ideas is a distance long so your tips are going to be put to fine use.Judging by the way you write, you seem like a professional writer.It was really inspiring I loved it, thanks a ton to bring me back and more closer to my real self.Moncler Uomo Cappotti,Moncler Donna Giubbotti,ebay

  4. While this topic can be especially touchy for most men and women, my opinion is that there has to be a middle or common ground that we all can discover. I do appreciate that youve added relevant and intelligent commentary here though. Thank you!

  5. Pingback: i like reading

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>