He Includes Me. He Includes Me Not. He Includes Me…

Had to share this wonderful little hack that solved the day's sticky problem: how do you show content to non-registered users only in a Joomla site? It's easy enough to only show stuff to a user if he/she is registered, but what about the reverse scenario: make something appear only to the common hoi polloi and exclude it from the site's inner circle of members and friends?

Well, here's the fix: a quick little bit of conditional code that can be dropped around any part of your template, be it a module position, a block of custom css or whatever. Very nice, very simple. Thank you, Cory.

Print Friendly, PDF & Email