|
uCoz Community Archives Locked Guest <?if?> tag not working |
Guest <?if?> tag not working |
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? |
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 |
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 ...]
|
| |||
| |||