vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   customizing secondary usergroup action (https://vborg.vbsupport.ru/showthread.php?t=75747)

carolmyt 02-04-2005 10:48 PM

customizing secondary usergroup action
 
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:

PHP Code:

// 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. ;)


All times are GMT. The time now is 09:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01135 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete