Forums / Templates, Stylesheets, Page Layout / want to place a logoff button in my account page..need help

want to place a logoff button in my account page..need help

Locked

Started by lastpirate007 on 27 Sep 2007, 7:15 AM · Views: 3,920

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
27 Sep 2007, 7:15 AM
#1
lastpirate007 avatar

lastpirate007

Zen Follower

Join Date:
Jul 2007
Posts:
137
Plugin Contributions:
0

want to place a logoff button in my account page..need help

hi
i want to place a logoff in my account page. which file i edit and how will i place a log off button so that it manage well

thanks in adv.

30 Oct 2007, 10:35 PM
#2
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

You can edit tpl_account_default.php and add a link.

Find the file here:

/includes/templates/template_default/templates/

6 Nov 2007, 2:06 PM
#3
gregml avatar

gregml

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

To place a LOGOUT you should insert the following code:

<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_LOG_OFF , BUTTON_LOG_OFF_ALT); ?></a>

In case you don't have or you want to change the logout button than you should edit the file
"english/button_names.php" from Languages (includes/languages/english/button_names.php). If you have it in other languages than you should edit those files too.

Where do you place the above code?

Usually you would like to have it placed on the main account page. This is
"tpl_account_default.php" from your default template (includes/templates/your_template/tpl_account_default.php). Probably you would like to put this on top or on buttom of that page. For buttom insert it just above "<?=tm_head_end()?>".

If you want to visit my shop, a live example of Zen Cart check it out here:
http://www.ringsndiamonds.com
Not yet fully functional, but I'll appreciate your input.

19 Mar 2008, 8:29 AM
#4
fireolg avatar

fireolg

New Zenner

Join Date:
Feb 2008
Posts:
28
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

Hi there...
I've make logoff link button on tpl_account_default.php but facing this problem :

Redirection Status
The URL was redirected to http://localhost/tokoku/index.php?main_page=logoff. Please click the link to go there.

You can enable the automatic redirection in the settings.

if i click these link, then it successfully logout. but how to make it automaticaly redirect ??

thank you

12 Jul 2008, 4:13 AM
#5
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

I tried this but the 'my account' page goes blank. I'm using Zen Cart v1.3.8 and I didn't found this code in tpl_account_default.php

<?=tm_head_end()?>
```I'm not sure if this code, 
```php
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_LOG_OFF , BUTTON_LOG_OFF_ALT); ?></a>
```can be used in Zen Cart 1.3.8. I placed it all over the place and it only gives me blank page.

- Nothing is impossible. Some things are just less likely than others. -

16 Jul 2008, 12:34 PM
#6
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

Anyone have any idea how to put a logoff button in my account page?

- Nothing is impossible. Some things are just less likely than others. -

16 Jul 2008, 2:16 PM
#8
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: want to place a logoff button in my account page..need help

Thanks Steven :D

- Nothing is impossible. Some things are just less likely than others. -