redirect after logging out

beurre

No avatar

2008-01-29 21:54

hello, how to redirect to main page of my website after log out? i can't find it.

» Quick.Cart v2.x

tomek

idaryl

Avatar: idaryl

2008-01-30 03:11

Look at line 42 of templates/admin/login.tpl

<a href="$config[index]">$lang[homepage]</a>

You may want to change it to <a href="index.php">$lang[homepage]</a>

idaryl

Avatar: idaryl

2008-01-30 03:21

Oh yeah I also did another sneaky thing...

Look at line 33 of your lang.php file (mine is en.php)
change from: $lang['Logged_out'] = 'Logged out correctly';
to: $lang['Logged_out'] = '<a href="index.php>Logged out correctly</a>';

It will do (depending on browser) add a link to the auto generated Logged Out text - or... hide it (if you have added the prior trick - you will simply have an Administration or Homepage link - whichever, you'll go back to the main index.php -- OK...

idaryl

Avatar: idaryl

2008-01-30 09:33

Does it work OK?

beurre

No avatar

2008-01-30 21:29

well... it doesn't. i do have links in the bottom of login section and that's one way to do this (i didn't see it before), but automatic redirection isn't working. now i know where to search in code and i'll try to find a solution. thanks for your suggestions.

tomek

idaryl

Avatar: idaryl

2008-01-31 03:58

Huh?!?

The only other thing I can think of that you are asking for (and I wish you had been a little more precise) was to be able (from the Admin area) click the logout button and go to the shop - if thats what you mean

go to line 55 of templates/admin/page.tpl

change from:
<a class="menuButton" href="?p=logout">$lang[logout]</a>
to:
<a class="menuButton" href="index.php">$lang[logout]</a>

that would kick you straight to the shop from the admin area -- Is that what you want??

idaryl

Avatar: idaryl

2008-01-31 09:03

Does that work better?

beurre

No avatar

2008-01-31 21:41

yes, this is what I wanted. thanks a lot!
though I had to type my website's url.
I found a bug because when I typed "index.php" it redirected to my homepage, but there were visible different products and whole menu (3 categories were set to invisible). strange, don't you think?

tomek

idaryl

Avatar: idaryl

2008-02-01 00:13

No not really - if you have a page defined as the start page (per se) it will go there - conversley the index.php will go basically to the "default" index type page - however you did the right thing by sending it to the page you defined...

beurre

No avatar

2008-02-02 22:41

once again thanks for your help.

tomek

Back to top
about us | contact