Text
Login / Logout Portal

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Portal Hacks
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Wed Nov 14, 2007 6:45 pm    Post subject: Login / Logout Portal Reply with quote

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
Code:
{MYFF.LOGIN}
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">&nbsp;&nbsp;&nbsp;{L_USERNAME}:</td>
<td><input class="post" type="text" name="username" size="10" /></td></tr>
<tr>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td></tr>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td></tr>
<td>&nbsp;&nbsp;<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">&nbsp;&nbsp;&nbsp;{L_USERNAME}:</td>
<td><input class="post" type="text" name="username" size="10" /></td></tr>
<tr>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td></tr>
<td>&nbsp;&nbsp;<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
Code:
{MYFF.LOGIN}
, 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



_________________
Join me on FaceBook = symon field
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Portal Hacks All times are GMT
Page 1 of 1

 
Jump to:  
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

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum