• Page 1 of 1
  • 1
Guest <?if?> tag not working
Jek
Posts: 14
Reputation: 2

Message # 1 | 4:59 AM
I dont exactly know why this wont work. What I am trying to do is make it show what group they are in with an image, and then it says "Welcome back $USERNAME$". But if you are a guest, all you see is a guest image and Register | Login
Yet, while using this tag:
Code
<?if($GROUP_ID$ = 0)?><img src="http://gamecraft.ucoz.org/UserRanks/Guest.png" /><?endif?><br>
   <?if($GROUP_ID$ = 0)?><a href='$REGISTER_LINK$'>Register</a> | <a href='$USERNAME$'>Login</a><?else?><b>Welcome back <a href="$PERSONAL_PAGE_LINK$">$USERNAME$</a><?endif?>

I get no image, and a "Welcome back Guest"

Any ideas on fixing this problem?

NTP
Posts: 296
Reputation: 10

Message # 2 | 11:47 AM
Quote (Jek)
<a href='$USERNAME$'>

What will that do? You can have a username as an url, it has to be a link and besides it has to have two "" not '' , and I believe there should be no spacing between the "$" "=" and "0".

Web design and film == my 2 passions.

Genesis Inc. ~ New Horizons, New Beginnings
Dartz
Posts: 1931

Message # 3 | 2:08 PM
There is no such thing as: <?if($GROUP_ID$ = 0)?> Guests do not have group ID.

You need: <?if($USER_LOGGED_IN$)?> Read: http://forum.ucoz.com/forum/37-471-1


[... With uCoz since December 2 2007 ...]
  • Page 1 of 1
  • 1
Search: