FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Moving quicklogin to header template
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon14.gif  Re: Moving quicklogin to header template [message #23248 is a reply to message #23228] Thu, 10 March 2005 07:27 Go to previous message
mrock is currently offline  mrock   United States
Messages: 28
Registered: March 2005
Karma:
Junior Member
Yes and was unsure why some things I took from other templates worked while some would not. But I think I have a handle on it now. I edited the templates manually and thanks to Ilia implemented the changes with the Theme Management-->Rebuild theme feature.

It turns out I ended up just adding the following snippets into the header template. (which the template editor will accept anyway)

Added menu:

<a class="UserControlPanel" href="{TEMPLATE: usercp_lnk3}"><img src="{THEME_IMAGE_ROOT}/top_home.png" alt="{MSG: home}" /> {MSG: home}</a>&nbsp;&nbsp;&nbsp;{TEMPLATE-DATA: private_msg} {IF: ($FUD_OPT_1 & 8388608 || (_uid && $FUD_OPT_1 & 4194304) || $usr->users_opt & 1048576)}{TEMPLATE: member_search}{ENDIF}&nbsp;&nbsp;{IF: $FUD_OPT_1 & 16777216}{TEMPLATE: u_forum_search}{ENDIF}&nbsp;&nbsp;<a class="UserControlPanel" accesskey="h" href="{TEMPLATE: usercp_lnk2}"><img src="{THEME_IMAGE_ROOT}/icon_mini_faq.gif" alt="{MSG: faq}" /> {MSG: faq}</a>&nbsp;&nbsp;{IF: __fud_real_user__}{TEMPLATE: usercp_usercp}{ELSE}{TEMPLATE: register}{END}
&nbsp;&nbsp;{IF: $is_a}{TEMPLATE: admin_control_panel}{ENDIF}

Added login/logout:

{IF: __fud_real_user__}{TEMPLATE: logout}{ELSE}{TEMPLATE: register}{END}

{IF: __fud_real_user__}&nbsp;{ELSE}<form name="quick_login_form" method="post" action="{ROOT}?t=login"{FUNC: ($GLOBALS['FUD_OPT_3'] & 256 ? ' autocomplete="off"' : '')}>{DEF: _hs}
Login: <input class="SmallText" type="text" name="quick_login" size=18>&nbsp;&nbsp;
Password: <input class="SmallText" type="password" name="quick_password" size=18>
&nbsp;<input type="submit" class="button" name="quick_login_submit" value="{MSG: quicklogin_login_btn}">
</form>
{END}
{IF: __fud_real_user__}&nbsp;{ELSE}
<input type="checkbox" checked name="quick_use_cookies" value="1"> Remember me? (use cookies){END}

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: How to show topic title in last message info on index?
Next Topic: mouseover on threads within forums
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue May 14 00:17:12 GMT 2024

Total time taken to generate the page: 0.04838 seconds