Jump to content

Integration of Vbulletin into WHMcs


Ehsan

Recommended Posts

So i searched up the forums and this was the only code i found on integration of vb into whmcs can anyone confirm this will work or any addition like what to edit so a username is generated by first name of client etc and if all of the code is current and up to date with latest vb version or anything can be done so when a client registers for an account they are added into vb forum too rather than after buying a product, here is the code would be cool if anyone can post a detailed tutorial !

 

$usergroupid = "1";
$reputation = "10";
$reputationlevelid = "5";

$username = ""; # Need to generate username based on clients name or email address probably
$password = ""; # Use same password as is used in WHMCS?

$signupdate = date("Y-m-d");
$joindate = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));

INSERT INTO `vb3user` (`usergroupid`, `membergroupids`, `displaygroupid`, `username`, `password`, `passworddate`, `email`, `styleid`, `parentemail`, `homepage`, `icq`, `aim`, `yahoo`, `showvbcode`, `usertitle`, `customtitle`, `joindate`, `daysprune`, `lastvisit`, `lastactivity`, `lastpost`, `posts`, `reputation`, `reputationlevelid`, `timezoneoffset`, `pmpopup`, `avatarid`, `avatarrevision`, `options`, `birthday`, `birthday_search`, `maxposts`, `startofweek`, `ipaddress`, `referrerid`, `languageid`, `msn`, `emailstamp`, `threadedmode`, `autosubscribe`, `pmtotal`, `pmunread`, `salt`, `profilepicrevision`, `showbirthday`, `importuserid`, `skype`) VALUES ('$usergroupid', '', 0, '$username', '$password', '$signupdate', '$email', 0, '', '', '', '', '', 2, 'Junior Member', 0, '$joindate', 0, '$joindate', '$joindate', 0, 0, '$reputation', '$reputationlevelid', '0', 0, 0, 0, 343, '', '0000-00-00', -1, -1, '', 0, 0, '', 0, 0, 1, 3, 2, 'v2?', 0, 0, 0, '');

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...
  • 4 years later...

there is no need to integrate fully with whmcs, you just need whmcs to be able to make the client an account on the forum installation, you can use a hook to do that at payment time is you wanted to. disable registrations in the normal sense and you have a client only forum.

Link to comment
Share on other sites

  • 2 months later...
there is no need to integrate fully with whmcs, you just need whmcs to be able to make the client an account on the forum installation, you can use a hook to do that at payment time is you wanted to. disable registrations in the normal sense and you have a client only forum.

 

Do you have a sample of the hook by any chance?

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated