Forums / Customization from the Admin / integrating into rest of site

integrating into rest of site

Locked

Views: 4,693

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
1 Feb 2008, 12:54 AM
#1
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

integrating into rest of site

hi, im adding a zencart to my site, and i want to have to the same header/menu on the zencart section as on the rest of the site.

im using a .swf file as the header/menu and i've embedded it into the other 4 pages on the site, but when i try to embedd it at the top of the index page for zencart, the site loses its functionality and i get displays warning me of errors.

how can i go about adding my header/menu to my store? here is my URL: https://www.sheisme.org

the store is at
https://www.sheisme.org/consume

thanks in advance!

1 Feb 2008, 2:00 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

Why don't you just match the cart to your existing site then you will not need the old static pages??

Flash:
https://www.zen-cart.com/tutorials/index.php?article=156

Zen-Venom Get Bitten

1 Feb 2008, 4:34 AM
#3
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: integrating into rest of site

the tutorial you sent me the link to informs me that i should place my swf file in the template folder.

where abouts should i place the following code?

<object type="application/x-shockwave-flash" data="includes/templates/XXX/UUU/ZZZ.swf" width="100%" height="100"> <param name="movie" value="includes/templates/XXX/UUU/ZZZ.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

i tried placing this at the top of the index.php file in the root folder and zencart stopped working, although the .swf file was displayed at the top of the file in the browser.

so ill put the swf in my templates folder, but where does the code go?

1 Feb 2008, 12:53 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

The Link also referenced 3 other threads did you look at them?

Zen-Venom Get Bitten

1 Feb 2008, 9:33 PM
#5
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: integrating into rest of site

yes i did check them out and my current understanding plus the info in those threads did not add up to progress. they are mostly about the javascript that takes care of flash being viewed in IE.

if i could be told where to place that bit of code (which file, and where on the file), it would really make my day.

thx

1 Feb 2008, 10:27 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

The following is what/how this was integrated into a site I worked on recently and might be close to what you need but I recall that there were some things reordered in the file....

The file is a copy of includes/templates/template_default/common/tpl_header.php that you make a copy of and place it into your template file structure - don't forget the .js required and referenced in the links that I posted

<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<div id="headerWrapper">

<!--bof-branding display-->
<div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
		<div id="flashcontent">    
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"        
        <param name="movie" value="header.swf">
        <param name="bgcolor" value="#FFFFFF">
        <param name="quality" value="high">
        <param name="wmode" value="transparent">
        <param name="allowscriptaccess" value="samedomain">

        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.macromedia.com/go/getflashplayer"
          name="flashcontent"
          width="600" height="104"
          src="includes/templates/your_template/images/header.swf"
          bgcolor="#FFFFFF"
          quality="high"
          wmode="transparent"
          swliveconnect="true"
          allowscriptaccess="samedomain"
          <noembed>
          </noembed>
        </embed></object>
    </div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>

Zen-Venom Get Bitten

2 Feb 2008, 1:36 AM
#7
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: integrating into rest of site

thx
so i modified my tpl_header.php file to look like this:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"        
    <param name="movie" value="menu.swf">
    <param name="bgcolor" value="#FFFFFF">
    <param name="quality" value="high">
    <param name="wmode" value="transparent">
    <param name="allowscriptaccess" value="samedomain">

    <embed
      type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      name="flashcontent"
      width="800" height="260"
      src="menu.swf"
      bgcolor="#FFFFFF"
      quality="high"
      wmode="transparent"
      swliveconnect="true"
      allowscriptaccess="samedomain"
      <noembed>
      </noembed>
    </embed></object>
<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--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> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> <?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>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?> </ul> </div> <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display--> <!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> </div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> </div> <br class="clearBoth" /> <!--eof-branding display--> <!--eof-header logo and navigation display--> <!--bof-optional categories tabs navigation display--> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--> <!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> </div> <?php } ?>

i placed the menu.swf file in the same folder as the tpl_header.php and now on the site im getting a blank grey box where i want the .swf to be.

i tried changing the tpl_header.php to the chunk of code you sent me and the entire site became black. so i just added the embed code to the tpl_header.php file and it seems like that is progress as im getting the blank box where the .sef should be.

please tell me what my next step should be. thank you

2 Feb 2008, 2:06 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: integrating into rest of site

The code Kobra posted is only a small part of tpl_header.php. If you replaced your whole file with it, of course it would crash.

The embed code as you show it is in the wrong place - the messageStack alerts that appear above the top of your page when necessary need to come first, as do the container divs for headerWrapper etc.

You should probably do as Kobra did and put the embed code in this section:

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo">

That's all the advice I can give you as I don't use flash.

2 Feb 2008, 3:56 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

As gjh42 stated what I posted is only the part that you should find in your file and replace what is there - just tacking on at the beginning is not how this was meant to be used

i placed the menu.swf file in the same folder as the tpl_header.php
This should be in the /images folder in your template not the /common folder

Zen-Venom Get Bitten

2 Feb 2008, 9:05 PM
#10
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: integrating into rest of site

thx, its now obvious to me that replacing the whole file with that code is wrong.

i moved the embed code into the

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo">

section, and that seems to be only an aethetic difference. im still getting a grey box that is the dimensions of the swf file in place of the swf file. its just in a different place on the page. if the tpl_header.php file was only html (no php) im sure it would display the .swf file, but tpl_header.php not recognizing menu.swf for some reason. here is what my code now looks like: and here is my URL: https://www.sheisme.org/consume

<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
 */
?>

<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}
?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<div id="headerWrapper">
<!--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>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?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>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div>
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->

<!--bof-branding display-->
<div id="logoWrapper">
    <div id="logo">
	
	
	
	        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"        
        <param name="movie" value="menu.swf">
        <param name="bgcolor" value="#FFFFFF">
        <param name="quality" value="high">
        <param name="wmode" value="transparent">
        <param name="allowscriptaccess" value="samedomain">

        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.macromedia.com/go/getflashplayer"
          name="flashcontent"
          width="800" height="260"
          src="menu.swf"
          bgcolor="#FFFFFF"
          quality="high"
          wmode="transparent"
          swliveconnect="true"
          allowscriptaccess="samedomain"
          <noembed>
          </noembed>
        </embed></object>
    
	
	
	
	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
<?php
              if (HEADER_SALES_TEXT != '') {
?>
      <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
              }
?>
<?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
                }
              }
?>
    </div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->

<!--eof-header logo and navigation display-->

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->

<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
</div>
<?php } ?>
3 Feb 2008, 6:53 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

You have this in the logo div that has other code attached to it elsewhere...

<div id="logoWrapper">
    <div id="logo">
		
	        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"

My posted code has this in it's own div highlighted in red and where have you placed the .js file and what is the name of the .js you are using?

<div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
		<div id="flashcontent">    
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"

Zen-Venom Get Bitten

3 Feb 2008, 8:11 PM
#12
jaatendi avatar

jaatendi

New Zenner

Join Date:
Jan 2008
Posts:
9
Plugin Contributions:
0

Re: integrating into rest of site

It works! thank you so much!!!
now i just need to add the javascript to take care of the IE thing, and then i need to change the directory paths that the actionscript buttons use in the swf file, so that they go back to the rest of the site.

thanks!

29 Jan 2009, 8:46 PM
#13
dave_nextexit avatar

dave_nextexit

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Re: integrating into rest of site

kobra:

The following is what/how this was integrated into a site I worked on recently and might be close to what you need but I recall that there were some things reordered in the file....

The file is a copy of includes/templates/template_default/common/tpl_header.php that you make a copy of and place it into your template file structure - don't forget the .js required and referenced in the links that I posted

<!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <div id="flashcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" <param name="movie" value="header.swf"> <param name="bgcolor" value="#FFFFFF"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="allowscriptaccess" value="samedomain">
    <embed
      type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer"
      name="flashcontent"
      width="600" height="104"
      src="includes/templates/your_template/images/header.swf"
      bgcolor="#FFFFFF"
      quality="high"
      wmode="transparent"
      swliveconnect="true"
      allowscriptaccess="samedomain"
      <noembed>
      </noembed>
    </embed></object>
</div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>

Hi, Im looking to do something similar but Im embedding an HTML file into my header.  What would change?  Thanks for your help!
31 Jan 2009, 3:44 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

dave_nextexit:

Hi, Im looking to do something similar but Im embedding an HTML file into my header. What would change?
html file??? That is way too broad a statement!!! Without knowing what the intent of the file contents is - - cannot comment

Zen-Venom Get Bitten

10 Feb 2009, 4:05 PM
#15
southernlady avatar

southernlady

Zen Follower

Join Date:
Mar 2005
Location:
TN
Posts:
116
Plugin Contributions:
0

Re: integrating into rest of site

Okay, it seems this is the thread I need. I want to intergrate the rest of my site into the top part of my cart with links. I have a forum (NOT phpbb and it's a 4 year old forum whereas my cart is 6 weeks old). I also plan on a coppermine gallery. I know how to do this on vbulletin but not here.

I found the template mentioned but I am not wanting to use flash. All I want are basic, simple links.

<!--bof-header logo and navigation display-->

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">

    <li><a href="http://www.gblcreations.com/store/">Home</a></li>
    <li><a href="https://www.gblcreations.com/store/index.php?main_page=login">Log In</a></li>

</ul>
</div>
<div id="navMainSearch"></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->

That's the section I want to add/change links to.

<li><a href="http://www.gblcreations.com/">Home</a></li>
<li><a href="http://www.gblcreations.com/store/">Store</a></li>
<li><a href="https://www.gblcreations.com/store/index.php?main_page=login">Log In</a></li>
    <li><a href="http://www.gblcreations.com/forum/index.php">Forum</a></li>

And I am not sure how to do that. As you can see, I want home to be the REAL home, not the front page of the store. Home on my url is actually https://www.gblcreations.com not https://www.gblcreations.com/store and then add a link to the vb forum. And once I get coppermine up and running to add it as well.

Any help y'all could give me would be appreciated.

Liz

11 Feb 2009, 8:22 AM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

southernlady:

And I am not sure how to do that.
Looks like you already have the proper code just insert it

<!--bof-header logo and navigation display-->

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">

<li><a href="http://www.gblcreations.com/">Home</a></li>
<li><a href="http://www.gblcreations.com/store/">Store</a></li>
<li><a href="https://www.gblcreations.com/store/index.php?main_page=login">Log In</a></li>
<li><a href="http://www.gblcreations.com/forum/index.php">Forum</a></li>

</ul>
</div>
<div id="navMainSearch"></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->  

Zen-Venom Get Bitten

11 Feb 2009, 8:40 AM
#17
southernlady avatar

southernlady

Zen Follower

Join Date:
Mar 2005
Location:
TN
Posts:
116
Plugin Contributions:
0

Re: integrating into rest of site

The code yes, the where is what I am unsure about. I looked at the template mentioned: includes/templates/template_default/common/tpl_header.php and wasn't sure where to insert it.

I haven't been using the EZ-Pages cause I simply haven't figured out how. I've actually been doing most of my changes straight to the files themselves.

Example: the define conditions page is much easier for me to edit from my ftp (I use winscp) then to use the htmlarea. I code it and them plug it straight in. So I actually have been coding the /includes/languages/english/html_includes/classic/define_conditions.php instead of writing into the wysiwyg.

I cut my teeth on hand coding, I don't wysiwyg nothing if I can help it.

So while I have the proper code...finding exactly where to put it is making me nuts.

I need to know, if you can help, where in that section, it goes or how to do an EZ page, cause I have no clue how to do one. Not even how to start one.

Liz

11 Feb 2009, 8:52 AM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: integrating into rest of site

I posted where it goes and it is in the tpl_header.php file - just look for the bof navigation display if this is where you want it to display

Zen-Venom Get Bitten

11 Feb 2009, 9:21 AM
#19
gjh42 avatar

gjh42

Black Belt

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

Re: integrating into rest of site

EZ-Pages are not useable for this.
As Kobra said, look for this section

<!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back">

You want to put your new links into the list here. Note that there is PHP code that turns some of the HTML on or off, like login/out and shopping cart. Don't replace the links that are there with static <a href> links or you will lose some functionality.

You can add your static main "Home" link as a new first list item.
The existing Home link can be renamed "Store" by changing the definition of HEADER_TITLE_CATALOG in a language file. This will correctly set the store home name in several places at once.
Leave the existing login/out/account/shoppingcart links alone.
You can add your "Forum" link at the end of the list.

For editing files, I never use HTMLArea either; you can set that off by default in admin > Configuration > My Store, I believe, and enter your HTML straight into the text box in Define Pages Editor. The code highlighting in something like Notepad++ does make it nice to work there, though.

11 Feb 2009, 9:44 AM
#20
southernlady avatar

southernlady

Zen Follower

Join Date:
Mar 2005
Location:
TN
Posts:
116
Plugin Contributions:
0

Re: integrating into rest of site

Actually I got it to work, but I first saved a copy of my tpl_header.php before I played with it...something I ALWAYS do as a backup.

Here is the new code and it works quite well:

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><a href="http://www.gblcreations.com/">Main Site</a></li>
    <li><a href="http://www.gblcreations.com/forum/index.php">Forum</a></li>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?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>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div>
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->

I moved the forum link up just so it would stay out of the way of the coding I wasn't touching. Rather than mess with the store code, I decided to change the Home link to Main Site.

And it works very well.

Thanks for the tip on dealing with the htmlarea. I hate that thing. Even turning it to source is a joke. That's why I just went straight to the code to begin with. I was trying to put in some code in my main page and regardless of how I tried, it spit it back at me. I got even and went around it.

Thanks, Kobra...if I hadn't gotten mad at your supposed non-answer, I would not have figured it out. :)

Liz