Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Footer Menu is not linking properly

Footer Menu is not linking properly

Views: 702

Results 1 to 6 of 6
12 Apr 2012, 12:29 PM
#1
lxidesigns avatar

lxidesigns

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Footer Menu is not linking properly

the menu in the footer is not hyperlinked properly. it all keeps going back to the main page. Does anybody know why?

please take a look and let me know....... http://popthatart.com

12 Apr 2012, 1:39 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Footer Menu is not linking properly

You're right that the links are not output correctly: ```html

<div id="footer"> <div class="wrapper"> <div class="footer-menu"> <!-- ========== MENU ========== -->
				<a href="http://popthatart.com/popthatart/">Home</a>

 • 

<a href="">About Us</a>

 • 

<a href="">Contact</a>

12 Apr 2012, 1:42 PM
#3
lxidesigns avatar

lxidesigns

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Footer Menu is not linking properly

<?php /** * Common Template - tpl_footer.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_footer.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_footer = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2005 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_footer.php 3183 2006-03-14 07:58:59Z birdbrain $ */ require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); ?> <?php if (!$flag_disable_footer) { ?> <div id="footer"> <div class="wrapper"> <div class="footer-menu"> <!-- ========== MENU ========== --> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
				<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"><?php echo HEADER_TITLE_CATALOG; ?></a><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
		
			<?php } ?>
		<!-- ========================== -->
	</div>
	<div class="copyright">
		<!-- ========== COPYRIGHT ========== -->
			<?php echo FOOTER_TEXT_BODY; ?> <a href="index.php?main_page=page&id=9">Privacy Policy</a>
	
			<?php
				if (SHOW_FOOTER_IP == '1') {
			?>
					<div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . '  ' . $_SERVER['REMOTE_ADDR']; ?></div>
			<?php
				}
			?>
		<!-- =============================== -->
	</div>
	
</div>
</div> <?php } ?>
12 Apr 2012, 1:47 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Footer Menu is not linking properly

In spite of the heavily customized tpl_footer.php, the links are still being created in /includes/templates/your_template/templates/tpl_ezpages_bar_footer.php as usual, so we now need to see the code in that file.

<a href="index.php?main_page=page&id=9">Privacy Policy</a>
embedded in a PHP file indicates that you have edited files yourself... no packaged mod or template could know the ez-page id of a policy page.

12 Apr 2012, 1:50 PM
#5
lxidesigns avatar

lxidesigns

New Zenner

Join Date:
Aug 2011
Posts:
9
Plugin Contributions:
0

Re: Footer Menu is not linking properly

<?php /** * Page Template * * Displays EZ-Pages footer-bar content.<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_ezpages_bar_footer.php 4225 2006-08-24 01:42:49Z drbyte $ */ /** * require code to show EZ-Pages list */ include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_footer.php')); ?> <?php if (sizeof($var_linksList) >= 1) { ?> <?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <?php echo ($i <= $n ? EZPAGES_SEPARATOR_FOOTER : '') . "\n"; ?>

<a href="<?php echo $var_linksList[$i]['../../../private/var/folders/_9/94yrk9sx1x7gnkkdrk_k1jt40000gn/T/Cleanup At Startup/Fetch Temporary Folder 13/link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a>

<?php } // end FOR loop ?>                                                                                       <a href="http://www.facebook.com/pages/Pop-That-Art/244568465598306" target="http://www.facebook.com/pages/Pop-That-Art/244568465598306"><?php echo zen_image(DIR_WS_TEMPLATE.'images/facebook.png'); ?></a>  <a href="http://www.twitter.com/@popthatart" target="http://www.twitter.com/@popthatart"><?php echo zen_image(DIR_WS_TEMPLATE.'images/twitter.png'); ?></a>  <a href="http://pinterest.com/popthatart/"><img src="http://passets-cdn.pinterest.com/images/pinterest-button.png" width="78" height="26" alt="Follow Me on Pinterest"; ?></a>  <a href="http://popthatart.com/popthatart/index.php?main_page=index&cPath=150" target="_blank"><?php echo zen_image(DIR_WS_TEMPLATE.'images/maddeal1.jpg'); ?></a> <?php } ?>
12 Apr 2012, 2:38 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Footer Menu is not linking properly

Why do you have the link addresses stored here?

$var_linksList[$i]['../../../private/var/folders/_9/94yrk9sx1x7gnkkdrk_k1jt40000gn/T/Cleanup At Startup/Fetch Temporary Folder 13/link']

Obviously they are not being found.