Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post CUSTOMIZATION - How To Create A Login Box 
 
We will create a login box at forum index
Will be like this

  loginbox


OPEN

templates/mg_themes/index_body.tpl

FIND

Code: [Download] [Hide] [Select]
{BOARD_INDEX}


BEFORE, ADD

Code: [Download] [Hide] [Select]
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<div id="login_h" style="display: none;">
{IMG_THL}{IMG_THC}<img style="padding-top:3px;float:right;cursor:pointer;" src="{IMG_MAXIMISE}" onclick="javascript:ShowHide('login','login_h','login');" alt="{L_SHOW}" /><a name="login"></a><span class="forumlink">{L_LOGIN_LOGOUT}</span>{IMG_THR_ALT}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr><td>&nbsp;</td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
</div>
<div id="login">
<script type="text/javascript">
<!--
tmp = 'login';
if(GetCookie(tmp) == '2')
{
    ShowHide('login', 'login_h', 'login');
}
//-->
</script>
{IMG_THL}{IMG_THC}<img style="padding-top:3px;float:right;cursor:pointer;" src="{IMG_MINIMISE}" onclick="javascript:ShowHide('login','login_h','login');" alt="{L_HIDE}" /><a name="login"></a><span class="forumlink">{L_LOGIN_LOGOUT}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>  
     <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">&nbsp;{L_USERNAME}:  
       <input class="post" type="text" name="username" size="10" />  
       &nbsp;&nbsp;&nbsp;{L_PASSWORD}:  
       <input class="post" type="password" name="password" size="10" maxlength="32" />  
       <!-- BEGIN switch_allow_autologin -->  
       &nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}  
       <input class="text" type="checkbox" name="autologin" />  
       <!-- END switch_allow_autologin -->  
       &nbsp;&nbsp;&nbsp;  
       <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />  
       </span> </td>  
   </tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
</div>
</form>  
<!-- END switch_user_logged_out -->

 




____________
? Zuker - EDDB - LPM - Sharefields
 
Edited by Zuker, Sat 14 Apr, 2007 14:54: rounded corners
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Create a login box at forum index 
 
First post updated
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events