|
uCoz Community uCoz Modules Page Editor Top part of the website |
Top part of the website |
Problem with top part of the website. Registration and Log Out buttons are not appearing! here is the code:
<div id="top"></div> <div id="data"><p>$WDAY$, $DATE$, $TIME$<br>Logged in as <b><a href="$PERSONAL_PAGE_LINK$" title="My profile">$USERNAME$</a> </b> | Group "<u>$USER_GROUP$</u>" | <a href="$RSS_LINK$" title="RSS">RSS</a></p></div> <div id="navBar"><div id="navBarLink"><a href="$PERSONAL_PAGE_LINK$" title="My profile">My profile<!--</s>--></a> <!--ENDIF--><?if(!($USER_LOGGED_IN$))?> <a href="$REGISTER_LINK$" title="Registration"><!--<s3089>-->Registration<!--</s>--></a><?endif?><!--ENDIF--> <?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?><a href="$LOGOUT_LINK$" title="Log out"><!--<s5164>-->Log out<!--</s>--></a><?else?> <a href="$LOGIN_LINK$" title="Login"><!--<s3087>-->Login<!--</s>--></a><?endif?><?endif?></div></div> im bad with codes. if you could explain in easy way, i would be appreciated. thanks. Added (2012-06-03, 9:18 PM) Added (2012-06-03, 9:31 PM) |
WorldOfDesign, you probably used Visual Editor to edit the design? I can help you fix the header but as far I can see that's not the only problem. I would suggest that you restore the default design and start from scratch, without the Visual Editor (it is not desirable to use it for major changes as it adds unnecessary characters to the code and corrupts design). You can restore the design via Control Panel -> Settings -> Common settings -> Site design -> Update the design for all active modules. You can also create a backup of your current design modifications via Control Panel -> Customize design -> Template backup.
I'm not active on the forum anymore. Please contact other forum staff.
|
thanks for advise. however, i already restored the design of this template by clicking "restore default template" button. the previous action did not change design on all the pages, just this one. so i restored it and it looks fine now. my only question is, is it possible to fix log in and log out buttons now somehow? unfortunately, i don't know how to use the codes, that is why i always use visual html editor. do you think you can help me with this?
Added (2012-06-06, 10:04 PM) |
WorldOfDesign, the default code of the top part for your design is as follows:
Code <div id="top"></div> <div id="data"><p>$WDAY$, $DATE$, $TIME$<br><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?><!--<s5200>-->Logged in as<!--</s>--> <a href="$PERSONAL_PAGE_LINK$" title="My profile"><b>$USERNAME$</b></a> | <!--<s3167>-->Group<!--</s>--> "<u>$USER_GROUP$</u>"<?else?><!--<s5212>-->Welcome<!--</s>--> <b>$USERNAME$</b><?endif?><?endif?> <?if($RSS_LINK$)?>| <a href="$RSS_LINK$" title="RSS">RSS</a><?endif?></p></div> <div id="navBar"><div id="navBarLink"><a href="$HOME_PAGE_LINK$" title="Main"><!--<s5176>-->Main<!--</s>--></a><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> <a href="$PERSONAL_PAGE_LINK$" title="My profile"><!--<s5214>-->My profile<!--</s>--></a><?else?> <a href="$REGISTER_LINK$" title="Registration"><!--<s3089>-->Registration<!--</s>--></a><?endif?><?endif?> <?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> <a href="$LOGOUT_LINK$" title="Log out"><!--<s5164>-->Log out<!--</s>--></a><?else?> <a href="$LOGIN_LINK$" title="Login"><!--<s3087>-->Login<!--</s>--></a><?endif?><?endif?></div></div> Try to replace your current code with the provided code, it must solve the problem. I'm not active on the forum anymore. Please contact other forum staff.
|
it gives me an error: One or more conditional operators (<?if?>) are not closed
Added (2012-06-07, 10:39 AM) Added (2012-06-07, 10:44 AM) Added (2012-06-08, 1:05 PM) |
WorldOfDesign, the top part of your website has been restored. But for the login/logout buttons to be displayed, you need to re-enable the Users module in Control Panel -> Users -> Module settings. At the moment the module is disabled and it means that only administrators can log in to the website via http://worldofdesign.ucoz.com/ admin.
I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||