by smiley in Critique Request about closed - report
How do I hide a DIV from members?
Hi,
I need some urgent help please.
I have a DIV element in an index.tpl and I need to hide it from members, it has to be visible only for non-members.
Please let me know how can I do that.
Thank you a lot.
Answer: 1 • Score 0 • Views: 682
by Kapil Jain about Best answer
use this logic to hide the div
<?php if( $this->viewer()->getIdentity() ) : ?>
hope this helps