Re: Re: How to show a module to Anonymous users *only* ? (workaround)
For now, to separate Anonymous group from other groups, you can apply this hack from alt.thetinfoilhat.com to tikilib.php and userslib.php (as quoted from that page — not sure if that site is still online or not, but I want to give credit):
Both in tikilib.php and userslib.php the Anon group gets added to a user's list of groups; around line 1030 (Tiki 1.8.2) in tikilib.php:
Copy to clipboard
$ret[] = "Anonymous";
Replace this line with a conditional statement (otherwise Anonymous group won't work) (lines 1031-1033):
Copy to clipboard
if(count($ret) == 0) { // This could be an option in the admin menu $ret[] = "Anonymous"; }
And in /lib/userlib.php,
Same change as in tikilib.php, at around lines 732-735 (Tiki 1.8.2).
I use this at a couple of sites and it works fine, with no problems.
-- Gary