View Single Post
  #2  
Old 03-06-2006, 11:28 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lordnex
Ok, I've been running like version 1.08 .. heh. I just upgraded. Now there are so many options and all of them are dependent on user group. I don't use just standard user groups (members are promoted or demoted based on activity) so how do I add ALL the options to a different user group? (ie not "standard user" but instead my "Registered Pricks" .. heh)

Is there a way to do it enmass? Do I need to change those values at all? Before I try going from item to item I figured it was better for me to just ask this question than to waste my time

Oh.. also to just really clarify things (while I have your attention) how is the lottery figured out? what are the odds of winning? Is it just a random picking of tickets? (so if 2 people buy 5 tickets each then they each have a 50/50 change of winning? If 10 people buy 1 ticket 10% chance each to win? or is it more like a lottery where it picks numbers and so on? I just want to make sure that I value the winnings appropriately.
Well, for 1, let me just start by saying since that version the Category Permissions are the MAIN permissions now.

The category permissions are filtered down thru all options now.

So if you set a category's permissions, it will in effect set it for all items in the category. Each item has "Additional Usergroups" that you can modify as well as completely override the category permissions.

The lottery just counts the number of tickets for the lottery that is 'expiring', and then uses php's rand() function to choose a random number from 0 to the number and that is the winner. So its percentage is based on how many tickets are purchased, if 1 users purchases 10 tickets and there are 20 tickets sold at the time it expires, he has a 50/50 chance to win the lottery.

I hope this helps.

-CMX
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01058 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete