The Arcive of vBulletin Modifications Site. |
|
Usergroup Permissions Details »»
|
|||||||||||||||||||||||||
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! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
<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 ? |
|
#3
|
|||
|
|||
|
Yes... and registered members have 10, but premium members are only getting 10 since they are also a member of the registered members group.
|
|
#4
|
||||
|
||||
|
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'];
}
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'];
}
}
Code:
$ppd_req = 0; $access_cp = 0; $cats = array(); Code:
$zero_p = 0; $zero_ppd = 0;
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
Hmmm, but with the above code it should work, too ...
Will re-think this
|
|
#7
|
||||
|
||||
|
Will this solve the problem of registered members being able to play even though they have not reached the minimum limit of posts?
|
|
#8
|
||||
|
||||
|
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+)
|
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
||||
|
||||
|
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)
|
![]() |
|
|