Forums / Templates, Stylesheets, Page Layout / Home, login, account move from header to side

Home, login, account move from header to side

Locked

Started by brightidea on 13 Sep 2006, 8:13 PM · Views: 1,958

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
13 Sep 2006, 8:13 PM
#1
brightidea avatar

brightidea

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Home, login, account move from header to side

Hi,

Im using the futurezen template, which i must say is great.

I would like to move the all the links that appear at the top (home, login) and move them into their own box above the catagories on the left hand side. That would include all the code that correct parses it if ssl is used.

i'm trying my best to get my head round the over-ride system, am i right to think this sort of change requires the creation of a module, so it can be manipulated and moved by the admin sideboxes page?

Thanks in advanced.

Alan

13 Sep 2006, 8:54 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Home, login, account move from header to side

It doesn't require creating a new module, though you can if you wish to.

I did this by copying the "navigation display" section from tpl_header.php to /includes/modules/my_template/column_left.php:

* @version $Id: column_left.php 4274 2006-08-26 03:16:53Z drbyte $
 */
if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}
$column_box_default='tpl_box_default_left.php';
?>

<!--gjh42 5/2/06 copied from tpl_header - tweaked for vertical -->
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
	<br class="clearBoth" />
<?php if ($_SESSION['customer_id']) { ?>
	<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
	<br class="clearBoth" />
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
	<br class="clearBoth" />
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
	<br class="clearBoth" />
<?php } } ?>

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
	<br class="clearBoth" />
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
	<br class="clearBoth" />
<?php }?>
</ul>
</div>
<div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->

It sits at the top of the left sidebar. I don't have borders around my individual sideboxes, so it fits in fine. You may want to insert it a bit differently.

14 Sep 2006, 8:59 AM
#3
brightidea avatar

brightidea

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Re: Home, login, account move from header to side

Thanks, I'll have a look tonight.

Really appreciate this.

Alan

14 Sep 2006, 7:22 PM
#4
brightidea avatar

brightidea

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Re: Home, login, account move from header to side

Hi,

Thanks for the code, it worked fine.

Is there anyway to make this look exactly like all the rest of the side boxes?

my php knowledge is practically nil, so any help is greatly appreciated.

Alan

14 Sep 2006, 8:00 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Home, login, account move from header to side

You can probably do it using the stylesheet. There are two id's, "navMainWrapper" and "navMain" which are defined there. Unless you are still using the navbar in the header, you can apply the same styling to them as other sideboxes get.

If you post a link to your site, it will be easier to help you.

16 Sep 2006, 4:08 PM
#6
brightidea avatar

brightidea

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Re: Home, login, account move from header to side

Hi,

I finally got it how i was thinking.

Now i've noticed that the All Products under the Catagories menu is over the blue edge of the sidebox. this is still the case with or without catagories.

Have a look and let me know what you suggest.

http://shop.maialouise.co.uk

I had this on the box i created too, but i was able to add a <BR> to it to sort that one out.

Thanks

Alan

17 Sep 2006, 7:49 AM
#8
brightidea avatar

brightidea

New Zenner

Join Date:
Aug 2006
Posts:
18
Plugin Contributions:
0

Re: Home, login, account move from header to side

Just typical, i recreate the server and it's not doing it now.

Next question. How do i make the footer stay at the bottom of the window?

Alan