Hi! E-Boy. I'm new here and I'm not new to PHP. I wanted to see if you got this working. I can't see any reason for adding this option since SMF comes with it's own Paid Subscriptions build right in.
I was checking you code and I see some errors that just won't work. If your wanted to ask the user for the name of the person.
function getUseInput()
{
return 'Members Name: <input type="text" name="memname" />';
}
The other error that I saw.
//Your setting $shophistoryID to 0. // This is wrong
$shophistoryID=0;//Set this to 0 if you don't have a shop history forum
//here your asking for a true or false statement. so the 1st statement is wrong
if ($shophistoryID) {
I do know that SMF RC5 has the paid subscription built in. Your better off to use that.
and it wouldn't be a very good idea to scroll there the list of member groups too. Because New Users could select the Admin Member Group. Then they could do any thing to your board and post any where they wanted. They could really screw you on that.
I think the idea would be to create an array of the group members you wanted users to buy.
$memgroups = array();
$memgroups[0] = 'Group Name 1';
$memgroups[1] = 'Group Name 2';
Then display them
foreach($val as $memgroup)
return ' '.$val.'<br />';
Oh and one more thing. You can't use 'echo' in your code.