View Full Version : Usergroup Permissions
oakhurst
04-08-2007, 07:29 AM
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
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 // 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 // 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 $ppd_req = 0;
$access_cp = 0;
$cats = array();below this add $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)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.