PDA

View Full Version : customizing secondary usergroup action


carolmyt
02-04-2005, 10:48 PM
Is there a way to customize the secondary usergroup action so that they can only purchase one group? I'm still learning php, and my guess is that it would be somewhere in here:

// Step One
if ($_REQUEST['step'] == "1") {
// Tell them what they've won.
$show['usergroup'] = "1";
// Usergroup Options
$optioncode = uttstore_secondarygroup_getselect($group);
// Temporary - Define the phrase text.
$vbphrase['uttstore_inputs_usergroup_secondaryusergroup'] = "Which group would you like to join?";
// Create Input Fields
$field_templates = uttstore_contruct_input_fields($fields);
// Send them home...
eval('$current .= "' . fetch_template('uttstore_standard_inputs') . '";');
}

But that's just a guess.

I'm also guessing that if it is possible, I should be able to create multiple actions each to purchase just one specific group, right?

Or else I have even less of an idea what I'm doing than I thought. ;P

Link14716
02-05-2005, 12:40 AM
Why are you using 0.93? ;)

Not sure exactly what you mean. Do you mean that you want people to buy access to one group out of a list, and only have access to one at a time?

carolmyt
02-05-2005, 04:14 PM
Wow, I thought I was using .95b. I installed the one linked in the thread at this forum that says its version .95b. The name of the file is uShop_&_uCash_095b_[2004-09-06]. How did I end up with version .93?

Anyway, specifically what I mean is that I want people to be able to only buy one group. It could be access to a list, but that list would have only one group on it, ;). And in conjunction with that, I'd like to duplicate the file so that a member can buy, say group A for 500 points, group B for 800 points, etc.

Link14716
02-05-2005, 06:51 PM
Ah, nevermind. Looks like I left some code from 0.93 that does nothing anymore in that file. ;)