Re: Ezpages Footer Columns support
When you uploaded the footer columns files, you would have gotten a "file already exists" response for tpl_footer.php and possibly others, and if you missed that or selected not to replace what was there, you would not have the mod version of some files. Please verify exactly what versions of files are on your server compared to the versions in the mod package.
Re: Ezpages Footer Columns support
Quote:
Originally Posted by
gjh42
Can you post the contents of your template version of tpl_footer.php? That will tell exactly what is enabled, and I can tell you how to activate the footer columns if they are disabled.
PHP Code:
<?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 2009 Glenn Herbert
* @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 4821 2006-10-23 10:54:15Z drbyte $
* modified for EZ-Pages Footer Columns by Glenn Herbert (gjh42) 2009-10-06 (line 31)
*/
require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
?>
<?php
if (!isset($flag_disable_footer) || !$flag_disable_footer) {
?>
<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<?php //echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'. HEADER_TITLE_CATALOG . '</a>'; ?>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?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>
<!--eof-navigation display -->
<!--bof-ip address display -->
<?php
if (SHOW_FOOTER_IP == '1') {
?>
<div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div>
<?php
}
?>
<!--eof-ip address display -->
<!--bof-banner #5 display -->
<?php
if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof-banner #5 display -->
<!--bof- site copyright display -->
<div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
<!--eof- site copyright display -->
<?php
} // flag_disable_footer
?>
Re: Ezpages Footer Columns support
Apparently TM has its footer output in a completely different file, and never allows tpl_footer to load. tpl_footer.php is obviously the footer columns version, but it is not being output. You have
HTML Code:
<!-- ========== FOOTER ========== -->
<div id="footer">
<div class="main-width">
<div class="footer-menu">
<div id="navSupp">
<br class="clearBoth" />
</div>
</div>
<div class="copyright">
instead of
HTML Code:
<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<div class="ezpagesFooterCol col1" style="width: 20%">
<ul>
<li><a href="http://localhost/zc151/index.php?main_page=account">My Account</a></li>
</ul>
</div>
<div class="ezpagesFooterCol col2" style="width: 20%">
<ul>
<li><a href="http://localhost/zc151/index.php?main_page=site_map">Site Map</a></li>
</ul>
</div>
...
<div class="ezpagesFooterCol col6" style="width: 20%">
<ul>
<li><a href="http://localhost/zc151/index.php?main_page=index&cPath=3_10">Action DVDs</a></li>
</ul>
</div><br class="clearBoth" />
</div>
</div>
<!--eof-navigation display -->
<!--bof-ip address display -->
<div id="siteinfoIP">Your IP Address is: 1</div>
<!--eof-ip address display -->
<!--bof-banner #5 display -->
<!--eof-banner #5 display -->
<!--bof- site copyright display -->
which you would have if the footer columns code was executing.
Re: Ezpages Footer Columns support
I changed the footer to tpl_footer.php and it seemed to change to the transparent background. I have now styled it but the columns are still not appearing :-s Thanks for all your help it is very much appreciated!
Re: Ezpages Footer Columns support
You need to find what file TM uses to output the footer, so you can merge/call the footer columns from it.
In Tools > Developers Toolkit, paste a snippet of the output you have, like <div class="footer-menu">, in the lower left box, select all files and search. Among the results will be the file and line number where that is created. Try some other snippets if that doesn't help.
Re: Ezpages Footer Columns support
Ok thanks, we got the footer columns working but...when we add a comment it doesn't work. We would like to take out the home and newsletter link text and replace with a comment and facebook icon respectively. See below:
http://seventyfourdegrees.com/shop/i...age=page&id=16
the "define('EZPAGES_FOOTER_COL_COMMENT_4','blah blah');" doesn't appear in column 4
any help would be appreciated
Re: Ezpages Footer Columns support
'EZPAGES_FOOTER_COL_COMMENT_4' does not refer to column 4, but to ez-page id 4. You can make the comment show up under "Home" by changing the number to whatever ez-page id you are using to hold that link.
The current published version of the mod does not handle replacement of a page link with other content, but the development version does. I haven't looked at it in a while, but I think it's ready for a beta test if you would like to try it.
Re: Ezpages Footer Columns support
Ah that is brilliant thanks, makes you feel silly when its something that simple.
Yeh we would be up for trying the beta test, just let us know what you need. This is all very new to us!
Re: Ezpages Footer Columns support
I have just tested the new functions, and all appear to work correctly. Here is the zip; please post here with your experience.
Attachment 11609
Re: Ezpages Footer Columns support
Seems to work very well here: http://seventyfourdegrees.com/shop/i...age=page&id=16
The only thing it did was to shunt the #siteinfoLegal down below in a separate footer instead of being right below columns.