Jump to content

Forums Integration.


Recommended Posts

right... But what are the variables for

 

cpanel username

cpanel password

email address

website or domain

 

The variables i need are not there... and they could be anything.. Not like I can browse through the script and find them...

 

Hey,

 

Like I said before you can use the four variables that are included in the checkoutscript, with those do a SQL query in the database to get more. All you have to do is query a variable in the database and assign a unused variable to it.

 

However, because this script only runs on checkout, 100% of the time the account is not even going to be created so you will not be able to get cPanel Username or and Password in the database as that happens after. You can however get email address and domain name as that will be already inputted in the database.

 

From,

Adam

Link to comment
Share on other sites

  • WHMCS CEO

The code to create an account in VB in the checkoutscript would be something like the following:

 

$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, '');

 

There certainly is no need to add anything to any encoded files to do this (XiodeHosting).

 

Matt

Link to comment
Share on other sites

could.... maybe use string length function and do a first initial last name jdoe for john doe.

 

See this just brings up another problem... I was going to use the welcome email to tell them a forums login was made too......

 

IDK... Looks like I am just going to have to let them sign up.

Link to comment
Share on other sites

The code to create an account in VB in the checkoutscript would be something like the following:

Nice :)

 

Any plans to extend the "call another script" concept to when 1st or each payment is recieved ? We only want to create a suport account on SupportTrio and VB after the 1st payment is accepted, rather than at the order stage, and to (potentially) close them and purge old tickets when we close the customer account

- so a few extra "hooks" would be great :)

Link to comment
Share on other sites

  • 7 months later...
  • 1 month later...
  • 2 months later...

I would also like to integrate vb into WHMCS.

Unfortunately I am not a coder and therefore would appreciate, if someone could share there statements and give me a hint, what exactly to do?!

 

Thanks in advance for your help.

 

Regards

Michael

Link to comment
Share on other sites

I would also like to integrate vb into WHMCS.

Unfortunately I am not a coder and therefore would appreciate, if someone could share there statements and give me a hint, what exactly to do?!

 

Thanks in advance for your help.

 

Regards

Michael

Link to comment
Share on other sites

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