Questions and Answers

How do I collect points?

  • +4
    Chosen as best answer
  • +1
    Posted answer
  • +1
    Posted question
  • +1
    Thumb up
  • -1
    Thumb down
4

by smiley in Critique Request about February 8, 2012 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: 699

1 Answer
Browse by
  • 395

    by Kapil Jain about February 8, 2012 Best answer

    use this logic to hide the div

     

    <?php if( $this->viewer()->getIdentity() ) : ?>

     

    hope this helps

Question was closed.