vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbBux / vbPlaza v1.5.8 (Points + Store System) (https://vborg.vbsupport.ru/showthread.php?t=106953)

CMX_CMGSCCC 02-06-2006 12:47 AM

Quote:

Originally Posted by LBSources
anyway to add the ability to purchase an additional usergroup for X amount of time? 1,2,3 months?

i want to create a usergroup just for such a product to purchase.. it will have certain perk access to a part of the site..

possible CMX?

This is a feature I'm going to add soon, an eStore item to add a secondary usergroup.

-CMX

CMX_CMGSCCC 02-06-2006 12:48 AM

Quote:

Originally Posted by Frugal
I really need help. I can't figure out the correct syntax to add more groups to the immunity.


I know I need to edit this section
Code:

// you cant change an administrators title :p
 if (($touser['usergroupid'] == '6') || ($touser['userid'] == '1'))

And I know I need to use ors but I can't find the correct syntax. If someone can show me the correct syntax so that I can include groups 27 and 32 to this I'd be really grateful.

Frugal

Maybe try this...
Code:

if (is_member_of($touser, 6, 27, 32))
-CMX

The Chief 02-06-2006 12:53 AM

hey CMX I am having problem with a user, he cannot see the eStore, he sees it as a guest...

I will pm you the info for the account if you wanna test it...

Frugal 02-06-2006 12:54 AM

Thanks, I'll give that a try.

Also while you are reading, I've found a limitation of the permissions system. If there is a particular group that you don't wish to buy one of the store items you need to make sure they are not a member of a secondary group that can buy the item. It would be great if you could deny something to members of a particular user group regardless of any other groups they are members of. Not sure if that would be doable or not though.

Frugal

CrazyShooter 02-06-2006 12:54 AM

Quote:

Originally Posted by Frugal
I really need help. I can't figure out the correct syntax to add more groups to the immunity.


I know I need to edit this section
Code:

// you cant change an administrators title :p
 if (($touser['usergroupid'] == '6') || ($touser['userid'] == '1'))

And I know I need to use ors but I can't find the correct syntax. If someone can show me the correct syntax so that I can include groups 27 and 32 to this I'd be really grateful.

Frugal

Try this:
Code:

// you cant change an administrators title :p
 if (($touser['usergroupid'] == '6, 27, 32') || ($touser['userid'] == '1'))


CMX_CMGSCCC 02-06-2006 12:57 AM

Quote:

Originally Posted by Frugal
Thanks, I'll give that a try.

Also while you are reading, I've found a limitation of the permissions system. If there is a particular group that you don't wish to buy one of the store items you need to make sure they are not a member of a secondary group that can buy the item. It would be great if you could deny something to members of a particular user group regardless of any other groups they are members of. Not sure if that would be doable or not though.

Frugal

The denied should override the allowed groups. Add the one you want to deny to the denied.

-CMX

ChurchMedia 02-06-2006 12:58 AM

Updated action for selling physical products. Just upload this to the estore folder and create a new action(s). It will automatically PM the user's address to you and PM the user a receipt.

LBSources 02-06-2006 01:00 AM

Quote:

Originally Posted by ChurchMedia
Updated action for selling physical products. Just upload this to the estore folder and create a new action(s). It will automatically PM the user's address to you and PM the user a receipt.

church im sorry what does this do?

The Chief 02-06-2006 01:00 AM

Quote:

Originally Posted by gamebgs
hey CMX I am having problem with a user, he cannot see the eStore, he sees it as a guest...

I will pm you the info for the account if you wanna test it...

can you check your pms please CMX :)

LBSources 02-06-2006 01:01 AM

Quote:

Originally Posted by CMX_CMGSCCC
This is a feature I'm going to add soon, an eStore item to add a secondary usergroup.

-CMX

Great thanks!

Lenny


All times are GMT. The time now is 08:14 PM.

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.02592 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete