vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Usergroup Permissions (https://vborg.vbsupport.ru/showthread.php?t=144313)

oakhurst 04-08-2007 07:29 AM

Usergroup Permissions
 
I can't seem to get usergroups to work properly.

I have it set to allow 10 plays per day for Registered Members and unlimited plays per day for Premium Members.

It works fine if the user is only a member of the Premium Members group, but if they are also a member of Registered Users it takes the Registered Users permissions. It doesnt matter if I switch the Primary or Secondary groups. It always takes the Registered Usergroup permissions. My Premium Members are members of both groups.

How can I get the premium usergroup to override the regular members usergroup?

Thanks much and nice mod!

MrZeropage 04-08-2007 07:37 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1209756&postcount=5" target="_blank">Read this</a>, fix will be included in next release (v2.6.2+)

Premium members have "0" (zero = unlimited) set for "plays per day", right ?

oakhurst 04-08-2007 06:59 PM

Quote:

Originally Posted by MrZeropage (Post 1222522)

Premium members have "0" (zero = unlimited) set for "plays per day", right ?

Yes... and registered members have 10, but premium members are only getting 10 since they are also a member of the registered members group.

MrZeropage 04-08-2007 09:23 PM

try to give the premium-members 999 plays per day ...


**edit**

Ok, I see the logical problem, will be fixed in v2.6.2+

meanwhile do the following:

open /arcade/modules/mod_arcade.php

search for
Code:

  // get lowest ppd_require
  if ((($ppd_req == 0) && ($check['ppd_require'] > 0)) || ($ppd_req > $check['ppd_require']))
  {
    $ppd_req = $check['ppd_require'];
  }

and replace with
Code:

  // get lowest ppd_require
  if ($check['ppd_require'] == 0) { $zero_ppd = 1; $ppd_req = 0; }
  if ((($ppd_req == 0) && ($check['ppd_require'] > 0)) || ($ppd_req > $check['ppd_require']))
  {
    if ($zero_ppd == 0)
    {
    $ppd_req = $check['ppd_require'];
    }
  }

then search for
Code:

  $ppd_req = 0;
  $access_cp = 0;
  $cats  = array();

below this add
Code:

  $zero_p  = 0;
  $zero_ppd = 0;

Please let me know if that fits what you need :)

oakhurst 04-09-2007 08:09 AM

First, I made the code modifications and it didn't work. Then, I changed the default number to 999 as you first instructed and it worked. I should have thought to use a higher number. Thanks for the help! Much appreciated.

MrZeropage 04-09-2007 05:55 PM

Hmmm, but with the above code it should work, too ...

Will re-think this :)

Neal-UK 04-11-2007 05:30 AM

Will this solve the problem of registered members being able to play even though they have not reached the minimum limit of posts?

MrZeropage 04-11-2007 10:19 AM

why should this not work ? If you set registered usergroup to have x minimum posts and the users don't have another secondary usergroup that has less minimum posts, it will work (using v2.6.1+)

Neal-UK 04-11-2007 11:23 AM

No, for some reason members who are in the Registered Members usergroup and in no other are able to play even though they have lower that the required posts needed. This is a new install on a new forum with the latest version.

MrZeropage 04-16-2007 07:54 PM

If you want, provide AdminCP+FTP access via PM and I will try a fix on your site (which then will be part of upcoming v2.6.2+ of course)


All times are GMT. The time now is 03:03 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.01110 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete