X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Logging Off doesn't work, can someone pls check this: (https://forum.x-cart.com/showthread.php?t=2628)

TheWrongGrape 05-09-2003 10:31 AM

Logging Off doesn't work, can someone pls check this:
 
Hi, I haven't made any changes to authbox.tpl, but clicking the LogOff button does nothing. Here is the code from authbox.tpl:
Code:

{* $Id: authbox.tpl,v 1.12 2002/10/21 07:06:43 zorg Exp $ *}
<TABLE border=0 cellPadding=5 cellSpacing=0 width="100%">
<form action="../include/login.php" method=post name=loginform>
<TR>
<TD class=VertMenuTitle height=26 width=26>[img]{$ImagesDir}/dingbats_authentification.gif[/img]</TD>
<TD class=VertMenuTitle height=26 valign=center width="80%" ><FONT class=VertMenuTitle>{$lng.lbl_authentication}</FONT></TD>
</TR>
<tr>
<td class=VertMenuBox > </td>
<td class=VertMenuBox valign="top" >
{$login}
{$lng.txt_logged_in}



{include file="buttons/logout_menu.tpl"}




</td>
</tr>
<input type=hidden name=mode value=logout>
<input type=hidden name=redirect value="{$redirect}">
</form>
</table>


Although nothing happens on the page, once I click LogOff a little icon shows up in my browser's (IE) status bar telling me there's an "Error on page." Clicking that icon tells me:
Quote:

Problems with this Web page might prevent it from being displayed properly or functioning properly.

Line: 1
Char: 1
Error: Object doesn't support this property or method
Code: 0


I don't understand, since Line 1 Char 1 is just the "h" from <html>
Help please!

shan 05-09-2003 10:56 AM

do you have the debug cvonsole switched on ?

if so switch it off and see if that fixs it

TheWrongGrape 05-09-2003 11:34 AM

Debug has never been on, however ...
 
From the template editing page, when I click preview for authbox.tpl and then click LogOff from the resulting new browser window, it works! I am logged off Admin. When I return to my orignal browser window and try to do something else, I'm told Access Denied and need to log back in. So the problem isn't with the template, I guess, but with whatever context the template is in. I don't really understand it. A customer can't LogOff and I can't logOff from admin. Grrr ... any other ideas?

TheWrongGrape 05-09-2003 11:49 AM

Oops. Nevermind. I think I've isolated the problem, working on it now.

(My layout/design calls for two authbox.tpl on the page, when I have only one, it works, but with two, I think there's a conflict).

Thanks for trying to help though!

lootsale 09-29-2006 06:44 PM

Re: Logging Off doesn't work, can someone pls check this:
 
i have tried this and works fine with mine. you may view on the top in header.

{if $login eq "" }
<a href="<A href="https://www.lootsale.co.uk/error_message.php?need_login">Login/Register</a>
{else}
<a href="<A href="http://www.lootsale.co.uk/include/login.php?mode=logout&redirect=customer">Logout</a>
{/if}

Best Wishes..


All times are GMT -8. The time now is 02:16 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.