Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Possibly Deleted Code - EZ Page Header Links

Possibly Deleted Code - EZ Page Header Links

Locked

Views: 1,220

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Mar 2009, 7:28 PM
#1
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Possibly Deleted Code - EZ Page Header Links

I customized a site I'm working on, but I think I deleted the code for the ez pages header. I have it turned on both in the sidebox and on the header but it only shows up in the sidebox. Can someone take a look and let me know what I'm missing?

https://www.painfulmuscles.com/index.php

Thanks in advance!

Tina

24 Mar 2009, 7:43 PM
#2
pierre avatar

pierre

New Zenner

Join Date:
Oct 2006
Posts:
84
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

Go to your configuration/EZ-pages settings and make sure all the ez-pages are enabled for the header (EZ-Pages Display Status - HeaderBar - should have a value of 1)

http://www.customscripts.co.za - Custom development for open-source applications

http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

24 Mar 2009, 7:48 PM
#3
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

Did that, both the sidebox and the header are set the same, both are green, and both have a 1 next to them.

Oh yeah... it's also turned on in my config.

24 Mar 2009, 7:59 PM
#4
pierre avatar

pierre

New Zenner

Join Date:
Oct 2006
Posts:
84
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

Did you edit anything in the code that it is possible that the code could be deleted?

If the code is in fact deleted, make sure you have a file called tpl_ezpages_bar_header.php in your includes/templates/template_default/templates folder or in your includes/templates/YOUR_TEMPLATE_NAME/templates folder

the code that should be in those files is

<?php
 include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
?>
<?php if (sizeof($var_linksList) >= 1) { ?>
<div id="navEZPagesTop">
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {  ?>
  <a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a><?php echo ($i < $n ? EZPAGES_SEPARATOR_HEADER : '') . "\n"; ?>
<?php } // end FOR loop ?>
</div>
<?php } ?>

http://www.customscripts.co.za - Custom development for open-source applications

http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

24 Mar 2009, 8:03 PM
#5
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

I edited my main page document so that it defaults to a product page. That's why I'm thinking I lost something.

24 Mar 2009, 8:06 PM
#6
pierre avatar

pierre

New Zenner

Join Date:
Oct 2006
Posts:
84
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

and in your includes/templates/template_default/common/tpl_header.php or includes/templates/YOUR_TEMPLATE_NAME/common/tpl_header.php

make sure you have the following code somewhere in that file (in the place where you want the ezpages to display):

<?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 } ?>

http://www.customscripts.co.za - Custom development for open-source applications

http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

24 Mar 2009, 8:13 PM
#7
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

that appears to be missing. I'll check it out.

24 Mar 2009, 8:14 PM
#8
silkenstrand avatar

silkenstrand

New Zenner

Join Date:
Jul 2005
Posts:
29
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

That was exactly the problem. Now I just have to figure out how to put it where I want it. Thanks for your help.

6 Jun 2009, 6:37 PM
#9
babyv_dezign avatar

babyv_dezign

New Zenner

Join Date:
Jan 2009
Posts:
18
Plugin Contributions:
0

Re: Possibly Deleted Code - EZ Page Header Links

I have the opposite problem.
I went in and turned off ez pages how it says to do so in tutorials and FAQ but it will NOT go away.
Is there a code to change else where to make it disappear?

store in question http://desireddesignsnscraps.com/store