First off - thanks for the add-on Mr_Snob!
It appears that Rule #14 gets priority over the group tests (I.e. 1-5).
For instance, I have a rule enabled for "OR from File URL" with the Forum drop down box set to "Destination Forum" and all options beneath it enabled except "URL Exact Match" which is set to "No". (Incidently, I have the URL set to
http://www.mydomain.com/showthread.php)
My only "User & Usergroup Options" selections are in the "Primary Usergroup" choices.
Rule #14 then gets a:
Code:
$flag = 1;
$condflag = 1;
in the template 'parse_templates' no matter if the user is in one of the above selected groups or not.
This would explain some of the issues people were having in version 1.5 of the rules being applied to all usergroups instead of just the ones selected.
I did a kludge to get by... (Basically did another check against the Anonymous usergroup.) But at first glance, a more proper fix may be to combine rule #14 w/ rule 1-5?
Or another approach might be to store $flag as an array of violations rather than a boolean. If one did that, you'd have two benefits:
- You could compare the output of Rules 1-5 in subsequent Rule checks (Like pesky Rule #14!)
- You could enable a 'debug' option which would spit out exactly which rule was violated. I.e. "Rules violated: 1,5,7" letting admins know a bit more while debugging their rules.
HTH!
-Who Dah?