Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 


       myfreeforum.org Forum Index -> Portal components
EOTW

Login Portal..won't log out

chatshack  Template "was" VistaX LOL...modified a bit:)

 
 I installed the Login/Logout portal that has the logout screen.  
I can log in fine, but I cannot log out even when the logout button is pressed.

 Here's my code that I put in the cms_login.tpl file.
*****************************************************************************

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="150" cellpadding="4" cellspacing="1" border="0" align="center">
<form method="post" action="{S_LOGIN_ACTION}">{S_HIDDEN_FIELDS}
<tr>
<th class="row1">This may not work {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 />{ADMIN_LINK}
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<!-- END switch_user_logged_in -->

*******************************************************************

 Would like a suggestion if not to much a bother.   Just can't log out using this hack.

 So far I like this service...My forum design is almost complete:)

Edited by Symon

When you post a code always wrap it using the [code] tags please
symon

Thanks for the report the guide on HOWTODOIT has now been updated.

You need to change

Code:
{S_LOGIN_ACTION}


for


Code:
{U_LOGIN_LOGOUT}


So it may look like this

Code:
<!-- BEGIN switch_user_logged_in -->
<table width="150" cellpadding="4" cellspacing="1" border="0" align="center">
<form method="post" action="{U_LOGIN_LOGOUT}">{S_HIDDEN_FIELDS}
EOTW

Symon wrote:
Thanks for the report the guide on HOWTODOIT has now been updated.

You need to change

Code:
{S_LOGIN_ACTION}


for


Code:
{U_LOGIN_LOGOUT}


So it may look like this

Code:
<!-- BEGIN switch_user_logged_in -->
<table width="150" cellpadding="4" cellspacing="1" border="0" align="center">
<form method="post" action="{U_LOGIN_LOGOUT}">{S_HIDDEN_FIELDS}


 Hey Symon thanks for the help.  

 This is a learning experience, and so far I have been impressed with the prompt replies, and reliability of the forums themselves.

Thanks again!.   EOTW.

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum