|
Text
|
 |
|
 |
|
| Author |
Message |
Symon
Guide Legend



Joined: 11 Jun 2006
Posts: 909
Location: Hampshire,England

Add Comment
Show Comments
|
Posted: Sun Jan 13, 2008 1:13 pm |
 |
|
This guide is for the login/logout hack. Please note that if you only want a log in portal then you already have that as standard and only need to add where you wish it to appear.
Examples are shown at the end of this guide.
Please remember to use the Editor account before making any template changes
Second you must have all ready a template you can edit.
If you have not done this please read HOWTODOIT
Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings
You will now see a screen that looks like this
If you do not already see a portal named login then (if you do then IGNORE The Steps 1-5)
1.Click on the Blank box icon that looks like this
Now you see a screen like this
2.Add login to the name
3.And then what you want in the Title.
4. Click Create New Portal
5. Goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit
Look at the bottom in the area marked[/b] Choose Portal template File to Edit and find and open cms.login.tpl.
Now find and open cms_login.tpl
And place this code in there.
| Code: | <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">{S_HIDDEN_FIELDS}
<tr>
<th class="thTop">{L_LOGIN_LOGOUT}</th>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall"> {L_USERNAME}:</td>
<td><input class="post" type="text" name="username" size="10" /></td></tr>
<tr>
<td class="gensmall"> {L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td></tr>
<td class="gensmall"> {L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td></tr>
<td> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
</tr>
</form>
<!-- END switch_user_logged_out -->
</table> |
Click submit/save
Now for the edits.
A. Goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit
Look at the bottom in the area marked[/b] Choose Portal template File to Edit and find and open cms.login.tpl.
Now find and open cms_login.tpl
You should see the code posted above.
Replace that code with the code below
| Code: | <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">{S_HIDDEN_FIELDS}
<tr>
<th class="thTop">{L_LOGIN_LOGOUT}</th>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall"> {L_USERNAME}:</td>
<td><input class="post" type="text" name="username" size="10" /></td></tr>
<tr>
<td class="gensmall"> {L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td></tr>
<td> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
</tr>
</form>
<!-- END switch_user_logged_out -->
</table>
<!-- BEGIN switch_user_logged_in -->
<table width="100%" cellpadding="4" cellspacing="1" border="0" align="center">
<form method="post" action="{U_LOGIN_LOGOUT}">{S_HIDDEN_FIELDS}
<tr>
<th class="row1">Thank You {USERNAME}</th></tr>
<tr>
<th class="row1">For Visiting The Site</th></tr>
<tr>
<th class="row1">Please Enjoy Your Stay</th></tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td >
<input type="submit" class="mainoption" name="Submit" value="{L_LOGIN_LOGOUT}">
<br />
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<!-- END switch_user_logged_in --> |
So where to put it.
You need to add , to where you wish it to go.It makes sense to find the other portals and add it with them.
Forum
Dual portal
Add to overall_header.tpl to show on the left.
Add to overall_footer.tpl to show on the right.
Single portal
Left side add to overall_header.tpl
right side add to overall_footer.tpl
Webpage
You would add this to your index.html or frontpage / homepage if it is called a different name.
You may edit to suit your needs but this will give you a login logout portal as shown below.
Logged out view / guest view
Logged In view
And thats HOWTODOIT
|
|
| |
|
 |
|
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
HOWTODOIT was designed and built by Symon Field Creator Of ☆ ☆ FunnyWorld ☆
HOWTODOIT© Symon Field 2006,2007,2008 Powered by phpBB Group © 2001,2005.
|
|
|
|