Home > Vbulletin > VBulletin API for auto updating user details

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

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: Vbulletin Tags: , ,
  1. May 12th, 2011 at 16:02 | #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. August 14th, 2011 at 13:48 | #3

    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. August 19th, 2011 at 05:54 | #5

    I liked your article is an interesting technology
    thanks to google I found you

  4. August 20th, 2011 at 11:42 | #7

    Excelente

  5. August 23rd, 2011 at 19:46 | #8

    thnks this is very helpful like us
    i appreciate this
    http://islamtheonlytruereligion.wordpress.com

  6. August 31st, 2011 at 23:44 | #9

    I am really pleased to have became a member of the forum and I will be excited to talking along with everyone within here eventually

  7. September 7th, 2011 at 20:51 | #10

    The genius store claled, they’re running out of you.

  8. September 14th, 2011 at 21:36 | #11

    I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

  9. September 18th, 2011 at 02:32 | #12

    I am really pleased to of became a member of this website and I’m looking forward to chatting along with you inside here in time

  10. September 19th, 2011 at 02:44 | #13

    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

  11. September 19th, 2011 at 12:46 | #14

    Hi there! Do you use Twitter? I鈥檇 like to follow you if that would be okay. I鈥檓 definitely enjoying your blog and look forward to new posts.

  12. September 20th, 2011 at 09:42 | #15

    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!

  13. September 20th, 2011 at 14:31 | #16

    Very good web blog and cool blogger layout, just Dugg it. Thanks for sharing!

  14. September 29th, 2011 at 15:27 | #17

    Good day!
    i have some problem about firefox. it is forever crashing. Why crashing i dont understand. can you help me?
    thank you…

  15. October 3rd, 2011 at 04:10 | #18

    Really nice design and style and great written content , very little else we require : D.

  1. January 16th, 2012 at 08:51 | #1
You must be logged in to post a comment.

Switch to our mobile site