Forums / All Other Contributions/Addons / Ezpages Footer Columns support

Ezpages Footer Columns support

Views: 22,563

Results 121 to 140 of 152
23 Nov 2012, 2:16 PM
#121
gjh42 avatar

gjh42

Black Belt

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

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.

23 Nov 2012, 2:20 PM
#122
sleekmedia avatar

sleekmedia

New Zenner

Join Date:
Nov 2012
Location:
Glasgow
Posts:
8
Plugin Contributions:
0

Re: Ezpages Footer Columns support

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
/**
 * 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
?>
23 Nov 2012, 2:35 PM
#123
gjh42 avatar

gjh42

Black Belt

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

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

<!-- ========== FOOTER ========== -->
<div id="footer">
	<div class="main-width">
		<div class="footer-menu">
			<div id="navSupp">
													<br class="clearBoth" />								
			</div>
		</div>
		<div class="copyright">

instead ofhtml

<!--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 -->
23 Nov 2012, 3:17 PM
#124
sleekmedia avatar

sleekmedia

New Zenner

Join Date:
Nov 2012
Location:
Glasgow
Posts:
8
Plugin Contributions:
0

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!

23 Nov 2012, 10:08 PM
#125
gjh42 avatar

gjh42

Black Belt

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

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.

10 Dec 2012, 2:38 PM
#126
sleekmedia avatar

sleekmedia

New Zenner

Join Date:
Nov 2012
Location:
Glasgow
Posts:
8
Plugin Contributions:
0

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/index.php?main_page=page&id=16

the "define('EZPAGES_FOOTER_COL_COMMENT_4','blah blah');" doesn't appear in column 4

any help would be appreciated

10 Dec 2012, 2:59 PM
#127
gjh42 avatar

gjh42

Black Belt

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

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.

10 Dec 2012, 3:05 PM
#128
sleekmedia avatar

sleekmedia

New Zenner

Join Date:
Nov 2012
Location:
Glasgow
Posts:
8
Plugin Contributions:
0

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!

10 Dec 2012, 4:49 PM
#129
gjh42 avatar

gjh42

Black Belt

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

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 no longer available]

11 Dec 2012, 11:44 AM
#130
sleekmedia avatar

sleekmedia

New Zenner

Join Date:
Nov 2012
Location:
Glasgow
Posts:
8
Plugin Contributions:
0

Re: Ezpages Footer Columns support

Seems to work very well here: http://seventyfourdegrees.com/shop/index.php?main_page=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.

11 Dec 2012, 9:36 PM
#131
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

It appears that your template has eliminated the standard #mainWrapper that holds all of the other parts. Thus, #siteInfoLegal needs its own styling to make it match the other parts.

You have two different rules controlling the height of #navSupp:
stylesheet_ezpages_footer_columns.css:```
#navSupp {
background:#000 url(../images/footer.jpg) no-repeat;
min-width:940px;
min-height:312px;
margin:0 auto;
width:940px;
color:#9b9b9b;
}


stylesheet.css:```
#navSupp {
	background:#000 url(../images/footer.jpg) no-repeat;
	min-width:940px;
	min-height:350px;
	height:350px;
	margin:0 auto;
	width:940px;
	color:#9b9b9b;
	}
Eliminate one of these rules and consolidate the property declarations you want in the other. Reduce the height values as appropriate.
11 Dec 2012, 9:57 PM
#132
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

There is a minor bug in the beta zip which disables the active page highlighting for non-ezpage links. You can fix it if you want by changing the end of this line in ezpages_improved_menus_functions.php```php
$active = ((strpos($_SERVER['REQUEST_URI'],$alturl) !== false and strpos('/index.php?main_page=index',$alturl) === false) or ($this_is_home_page and strpos('/index.php?main_page=index',$alturl) !== false))?' activeILPage': '';

to this```php
    $active = ((strpos($_SERVER['REQUEST_URI'],$alturl) !== false and strpos('/index.php?main_page=index',$alturl) === false) or ($this_is_home_page and strpos('/index.php?main_page=index',$alturl) !== false))?' class="activeILPage"': '';

I am submitting the update to Plugins, and it should be available there soon.

31 Dec 2012, 6:01 PM
#133
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ezpages Footer Columns support

How are column headings defined and numbered in "EZ-Pages Footer Columns v1.1" plugin?

Column rows are numbered in the "EZ-Pages" as:
1st col: 101, 102, 103
2nd col: 201, 202
3rd col: 301, 302, 303

If you have 3 columns, are the column number 1, 2 & 3 from left to right, or is it defined by an ezpage?

In order to get 3 different Column headings, is it defined as follow under \includes\languages\english\extra_definitions\MY_TEMPLATE*ezpages_footer_columns_defines.php*:

<?php /** * @copyright Copyright 2012 Glenn Herbert * @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 * ezpages_footer_columns_defines.php * EZ-Pages Footer Columns by Glenn Herbert (gjh42) 2012-01-04 */ if (!defined('IMAGE_TITLES_EXT')) define('IMAGE_TITLES_EXT','.gif'); /* ORIG STATEMENT define('EZPAGES_FOOTER_COL_HEADING_x', 'Your Column Heading');//change x to column number */ define('EZPAGES_FOOTER_COL_HEADING_1', 'Column Heading 1');//change x to column number define('EZPAGES_FOOTER_COL_HEADING_2', 'Column Heading 2');//change x to column number define('EZPAGES_FOOTER_COL_HEADING_3', 'Column Heading 3');//change x to column number define('EZPAGES_FOOTER_COL_SUBHEAD_xx', 'Your Subheading');//change xx to ezp id define('EZPAGES_FOOTER_COL_COMMENT_xx', 'Your Comment Text');//text can include <br /> for new line define('EZPAGES_FOOTER_COL_HTML_xx', 'Some HTML content<br />to replace the<br />EZ-Page xx<br />link'); define('EZPAGES_FOOTER_COL_LIMIT_x','7');//change x to column to set, 7 to max # items high define('EZPAGES_FOOTER_ICONS', '');//or '1' or '2' define('EZPAGES_FOOTER_EXT', ''); ?>

I am not getting any column heading?

Using Zen Cart 1.5.1

31 Dec 2012, 8:23 PM
#134
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

Yes, footer column headings are defined by the first digit of the ez-page ids, so you would use _1, _2 and _3 in your case, as you show.
What exact definition strings are you using? Just as shown? Seeing your site live might give me a clue to why it is not working for you.

31 Dec 2012, 9:26 PM
#135
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ezpages Footer Columns support

I got some screen captures of what I see. I hope it helps!

Attachment 11688

Attachment 11689

Attachment 11690

Using Zen Cart 1.5.1

31 Dec 2012, 10:00 PM
#136
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

Those really don't tell me anything except that you seem to have your admin setups correct. I suppose even seeing it live wouldn't tell me more; what do your files look like?

Where exactly are they all (filepath starting with /includes/)? None of the other defines is essential to be active for your current purposes, so if the define file was not being run, the lack of column headings would be the only clue.

Are your defines exactly as shown in your previous post? (I expect so, given your other screenshots.)
The
/* ORIG STATEMENT define('EZPAGES_FOOTER_COL_HEADING_x', 'Your Column Heading');//change x to column number /
with its double comment marks shouldn't cause a problem (the /
*/ should ignore the // and close properly), but try deleting the whole line or moving it to the end of the file, just for fun.

31 Dec 2012, 11:42 PM
#137
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ezpages Footer Columns support

I went back to my prior backup and reloaded the plugin. It is not broken any more. I must have miss handled a file somehow.

Thank you.

Using Zen Cart 1.5.1

21 Dec 2013, 10:25 PM
#139
azzenner avatar

azzenner

New Zenner

Join Date:
Oct 2005
Posts:
65
Plugin Contributions:
0

Re: Ezpages Footer Columns support

Hi Glen,
I'm on Zen V 1.5.1 I'm trying to use EZPages Footer Columns, but I am also already using EZPages Improved Menus plugin (and love it!). When I install Footer Columns, there's apparently some kind of collision and it makes the EZPages Improved Menus (I'm using them in the header) disappear. Are the two plugins incompatible? Is there a special trick to get them to work together?

If they are not compatible, I wonder if RBarbour's Flexible Footer Menus might work.

I'm also using your Categories Dressing plugin and it does exactly what I needed- so thanks for that one also.
-- Debbie

22 Dec 2013, 3:54 PM
#140
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

The two are not incompatible - I have or had both installed on a local test site. I will look at them and see what might interfere. They both use some of the same base functions.

There is a chance that seeing your site live could give me a clue about your issue.