• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Link is only visible for guests?
Link is only visible for guests?
Karli
Posts: 5
Reputation: 0

Message # 1 | 5:36 AM
Hey,
I have this code for a link that is visible only for register users:

Code
?if($GROUP_ID$!=0)?><a href="">Link</a><?endif?>


Now I want a link to the only guest-viewable. How do I do that?

Greeez
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 2 | 10:28 AM
Karli, use this:

Code
<?if($USER_LOGGED_IN$)?>user content<?endif?>


Code
<?if(!$USER_LOGGED_IN$)?>guest content<?endif?>


This can depend on the template you're editing, however, generally this variable is available.

Hope this helps. happy

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Karli
Posts: 5
Reputation: 0

Message # 3 | 8:57 AM
thx xD
uCoz Community » For Webmasters » Design Customization » Link is only visible for guests?
  • Page 1 of 1
  • 1
Search: