View Full Version : Max categories not working ..
January 30th, 2005, 11:53 AM
I've setup my forum so that the normal registered usergroup can not create a category .. and I have a "gallery" usergroup which I will give to certain people as an Additional Usergroup ..
Within the Gallery usergroup permissions for the "Gallery" usergroup I'm setting "Can create categories" to YES and "Maximum Number of Categories" to 1 .. therefore allowing the "Gallery" usergroup to create one category within the Members Album (That's the only category they can create one in) ..
However .. on testing it .. it seems that a person with the "Gallery" additional usergroup can create unlimited categories within the members album ..
It seems that the "Maximum Number of Categories" makes no difference .. whatever you put in it .. it will give unlimited as if you've put a 0 in the box ..
Am I missing something .. or is it a bug?
January 30th, 2005, 12:07 PM
I think that was a long winded way of saying "Maximum Number of Categories" doesn't work ..
January 30th, 2005, 12:28 PM
It seems that it will still let you go to the page to fill in the information for the category (which it shouldn't let you go that far), but when you try to add the category it will tell you that you have reached the max. Does this seem to be the case for you, or does it let them add the category? Just trying to make sure so I can give you the correct fix. ;)
January 30th, 2005, 12:32 PM
I think it let me create 2 cats when it should only of let me create one in total ..
I'll test again and let you know .. :)
January 30th, 2005, 12:34 PM
Ok .. when it says unlimited it seems it means unlimited .. :p
I've got it set for 1 .. yet it seems I can create as many as I like .. :)
January 30th, 2005, 12:36 PM
What are the Gallery permissions for the normal registered usergroup?
In the meanwhile, you can try to set a test member with gallery as primary usergroup and see if the behavior is different.
January 30th, 2005, 12:42 PM
Right .. I'm getting what Brian described if I make my test users Primary Usergroup the "Gallery" usergroup ..
So it's when the "Gallery" usergroup is a secondary user group that it becomes unlimited ..
January 30th, 2005, 12:58 PM
Screenshots of the 2 usergroups ..
January 30th, 2005, 01:40 PM
Ahh .. sort of sussed it ..
I've now set the registered users "Maximum Number of Categories" to 1 instead of 0 and that seems to of done the trick, while leaving their "Can create categories" at NO .. :)
Now the "Gallery" usergroup is doing as Brian described even when it is a additional usergroup ..
My bad .. :)
January 30th, 2005, 03:50 PM
Can you open your forum/includes/init.php file and search it for 'gallery_maxcats'? If that's not in there then the problem may be related to a missed step during the install (or upgrade to RC2 from RC1 if you had that version). It *should* take the value from the secondary usergroup if things are working correctly and that code is in your init.php file.
January 31st, 2005, 01:26 AM
This is what I have ..
// inheritable non-bitfield permissions:
// 0 => indicates that a 0 value does not take precedence over greater values, ex "0 disables this option"
// 1 => indicates that a 0 values takes precedence over greater values, ex "Set to 0 for unlimited"
$_INTPERMS = array(
'pmquota' => 0,
'pmsendmax' => 0,
'attachlimit' => 1,
'avatarmaxwidth' => 1,
'avatarmaxheight' => 1,
'avatarmaxsize' => 1,
'profilepicmaxwidth' => 1,
'profilepicmaxheight' => 1,
'profilepicmaxsize' => 1,
'gallery_maxdiskspace' => 1,
'gallery_maxcats' => 1
This is using vB 3.0.3 (With patches) and Gallery RC2 ..
January 31st, 2005, 07:43 AM
Hmmm... So just changing the 'Maximum Number of Categories' option to 1 for your registered group fixed the problem, or did you have 'Can create categories' for your registered group set to 'Yes' before you made the change as well?
February 1st, 2005, 01:12 AM
No .. I had "Can create categories" at NO for the registered group all along ..
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.