Zen Cart Logo
Forums / All Other Contributions/Addons / Ezpages Footer Columns support

Ezpages Footer Columns support

Views: 22,548

Results 21 to 40 of 152
24 Feb 2011, 1:25 AM
#21
cannie avatar

cannie

New Zenner

Join Date:
Mar 2009
Posts:
17
Plugin Contributions:
0

Ezpages Footer Columns support

Sorry, here is the code from that file:

<?php /** * * @copyright Copyright 2010 Glenn Herbert * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.gnu.org/licenses/> GNU Public License V3.0 * @version $Id: /includes/functions/extra_functions/ezpages_improved_menus_functions.php *Ezpages Footer Columns copy of master file from Ezpages Improved Menus by Glenn Herbert (gjh42) 2010-11-20 */ //call as active_page_class($var_linksList[$i]['id'],$var_linksList[$i]['altURL']); function active_page_class($ezpid,$alturl) { global $this_is_home_page; $active = ''; if($_GET['main_page'] == 'page') { $active = ($_GET['id'] == $ezpid)? ' class="activeEZPage"': ''; }elseif($alturl) { $alturl = htmlspecialchars_decode(str_replace(HTTP_SERVER . DIR_WS_CATALOG,'/',$alturl)); $active = ((strstr($_SERVER['REQUEST_URI'],$alturl) and !strstr('/index.php?main_page=index',$alturl)) or ($this_is_home_page and strstr('/index.php?main_page=index',$alturl)))?' class="activeILPage"': ''; } return $active; } ?>
24 Feb 2011, 5:00 PM
#22
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

The htmlspecialchars_decode() function was introduced in PHP5.1.0, so if your server's version of PHP is older than that, it won't work.
Sorry, I don't know a way around using that function at this point. Any link that uses an & character will not work correctly in this mod without the function.

Fewer and fewer hosts are going to be using old versions of PHP, and you might ask your host to upgrade. Be aware that ZC v1.3.8a will only work up through PHP5.2.x without a patch (available in the forum), so if you have that old version, you should patch (or better upgrade) before asking your host to upgrade.

24 Feb 2011, 5:07 PM
#23
cannie avatar

cannie

New Zenner

Join Date:
Mar 2009
Posts:
17
Plugin Contributions:
0

Re: Ezpages Footer Columns support

I am using zen version 1.3.9H and just logged in to check the PHP in and it says I'm using version "PHP version 5.2.14"

Is there anything else I should do? :\

24 Feb 2011, 5:09 PM
#24
cannie avatar

cannie

New Zenner

Join Date:
Mar 2009
Posts:
17
Plugin Contributions:
0

Re: Ezpages Footer Columns support

ugh, n/m...now it magically works. :censored:
Thank you for the help though! :)

24 Feb 2011, 5:33 PM
#25
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

Gremlins... :)

13 Mar 2011, 5:31 AM
#26
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Ezpages Footer Columns support

Why see me like this?
There is a picture below - How do I delete it?

Thanks

http://www.king-magic.com/

15 Mar 2011, 12:59 AM
#27
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

You are not using the Ezpages Footer Columns mod there, but the Footer Menu mod. I don't see any image below it now, anyway.

27 Mar 2011, 6:16 AM
#28
jgatlin avatar

jgatlin

New Zenner

Join Date:
Jun 2008
Location:
Florida
Posts:
14
Plugin Contributions:
0

Re: Ezpages Footer Columns support

First of all I would like to say thank you to gjh42 for the simple yet very affective addon.
I am currently upgrading to 1.3.9h and everything in the mod works great. I am only having a browser issue while attempting a total of 4 columns.
In Mozilla all four columns line up side by side with no problems. In IE8 the last column lines up underneath the first column.
I have attempted to fix this in the css but I have very limited skills in css.

Any help would be greatly appreciated!

Here is a link to my temporary site. http://www.atfbilletparts.com/storeh

28 Mar 2011, 2:29 PM
#29
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

In your stylesheet_ezpages_footer_columns.css, find this rule and add the part in red:

.ezpagesFooterCol {float: left; padding: 0 0 0.5em 0; width: 24.9% !important; }

Note that you will have to adjust this manually if you change the number of columns.

30 Mar 2011, 7:53 AM
#30
jgatlin avatar

jgatlin

New Zenner

Join Date:
Jun 2008
Location:
Florida
Posts:
14
Plugin Contributions:
0

Re: Ezpages Footer Columns support

The changes worked perfectly. It is amazing that hours of misery can be resolved in matter of seconds. Thank you for the response. Hope I can be a help someday.

15 Apr 2011, 11:14 PM
#31
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Ezpages Footer Columns support

Hi Glenn,

Great mod, and probably just what I need. But... (There's always a but, isn't there?)

I need the left-most column to hold my SSL certificate. (See the bottom of any page on either of my sites in my sig below.) The way I've done it in the past is a custom table dropped into the tpl_footer.php file, which was suggested by Linda ages ago. How and where would I drop that code into your footer mod? (I'll be putting the usual EZ pages links in other columns.)

You'll probably notice I'm using a template on my newly deconstructed retail site which heavily customizes the footer. Not to worry -- I've already installed your mod and tried it out and it works without blowing up my template. I've just temporarily turned your mod off (by renaming, using .bak) to get my cert back.

Rob

16 Apr 2011, 6:12 AM
#32
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

You could put a random link (say a blank ez-page named SSL Certificate) for column 1, and define a subtext/comment for it which contains the HTML for the certificate. No table needed; it will be in a span named .ezpagesFooterColComment, and can be styled uniquely by

.ezpagesFooterCol.col1 .ezpagesFooterColComment {}

Then you can hide the link above it with

.ezpagesFooterCol.col1 a {display: none;}

If there is a concern about putting something inside a span, I can tell you how to change the comments to divs (won't affect the way anything else works).

16 Apr 2011, 6:24 AM
#33
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

define('EZPAGES_FOOTER_COL_COMMENT_xx','<a href="http://www.alphassl.com/" target="_blank" title="SSL Certificate" >
<img alt="SSL Certificate" border=0 id="___sitess__alt_img" src="//seal.alphassl.com/SiteSeal/images/alpha_seal_noscript_en.gif" ></a></span>
<script type="text/javascript" src="//seal.alphassl.com/SiteSeal/alphassl_siteSeal_m.js" defer></script>
');
```where xx is the ez-page id.
16 Apr 2011, 10:50 AM
#34
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Ezpages Footer Columns support

Thanks! I have to rush off now but I'll try this later today and report back.

Rob

18 Apr 2011, 2:06 AM
#35
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Ezpages Footer Columns support

gjh42:

define('EZPAGES_FOOTER_COL_COMMENT_xx','<a href="http://www.alphassl.com/" target="_blank" title="SSL Certificate" >
<img alt="SSL Certificate" border=0 id="___sitess__alt_img" src="//seal.alphassl.com/SiteSeal/images/alpha_seal_noscript_en.gif" ></a></span>

<script type="text/javascript" src="//seal.alphassl.com/SiteSeal/alphassl_siteSeal_m.js" defer></script>

');


Unfortunately, this did not work. I ended up with a generic cert image which contained only a link to the AlphaSSL site. It should have popped up a reassurance box about my cert in particular. Also the suggested style for hiding the name of the suggested blank EZ Page also hides the cert, since it's within the 'a' which is being styled.

The problem may come from the span beginning in some other php file, and not having its id (see my original code in the working cert.) Or did you not mean to leave out the beginning of the span in your suggested define? I know so little about such code that I just copied and pasted what you gave me, without daring to reinsert the span opening.

Last week I had tried putting the cert into a sidebox contribution with similar results. Something goes wrong when the cert's code is moved inside something else, and I can't understand it well enough to know what's wrong. There's no error returned in the cache, though the cert image says something about needing to turn on Javascript (which, of course, is on.) So I suspect there's something going wrong with the in-line js code (which is a necessary part of my cert) when it's inside something else.

I've left it turned off for now, since this is the live site and the cert needs to be functional. If it would help, I can turn the footer columns back on for you to see it in action. I can do this Monday morning or afternoon, Atlantic time. Please PM me to set up a time if you want.

Rob
18 Apr 2011, 3:23 AM
#36
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

I had been wondering if the additional layer of span in the original code was actually necessary to the functioning of the cert... apparently it is. I would try it with progressively adding back layers of surrounding code to see if that makes a difference.

.ezpagesFooterCol.col1 a {display: none;}
I should have gone back and modified this when I looked at the actual cert code. You can limit it to the dummy link with
.ezpagesFooterCol.col1 li>a {display: none;}

I didn't notice the </span> when copying the code before.```php
define('EZPAGES_FOOTER_COL_COMMENT_xx','<span id="___sitess__alt_img_wrapper_middle_image">
<a href="http://www.alphassl.com/" target="_blank" title="SSL Certificate" >
<img alt="SSL Certificate" border=0 id="___sitess__alt_img" src="//seal.alphassl.com/SiteSeal/images/alpha_seal_noscript_en.gif" ></a></span>

<script type="text/javascript" src="//seal.alphassl.com/SiteSeal/alphassl_siteSeal_m.js" defer></script>');
I should be around at about 8am (9 Atlantic time) if you want to activate it; then I will have to leave for the day.
18 Apr 2011, 1:59 PM
#37
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Ezpages Footer Columns support

That works. It's amazing what works when it's done right. :laugh:

Now I can fuss with styling and adding more links and so on.

Thanks very much for the mod and the help.

Rob

21 Apr 2011, 2:20 AM
#38
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Ezpages Footer Columns support

Glenn,

Great mod, love the flexibility!

I am having issues getting images to display in the comment section.

This is what I have tried:

define('EZPAGES_FOOTER_COL_COMMENT_9', zen_image(DIR_WS_TEMPLATE . 'images/' . $_SESSION['language'] . '/payments.gif', 'Payment Methods Excepted'));

The "Payment Methods Excepted" shows fine, I have also removed this and nothing:

I have also tried:

define('EZPAGES_FOOTER_COL_COMMENT_9', '<a href="https://www.xxx.com/xxx/xxx/xxx" target="_blank"><img src="<?php echo DIR_WS_TEMPLATE  ?>images/payments.gif" border="0" /></a>');

_9 being the ez_page_id that I want the image to appear under.

What could I be doing wrong?

21 Apr 2011, 2:44 AM
#39
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Ezpages Footer Columns support

I got this working!

21 Apr 2011, 5:24 AM
#40
gjh42 avatar

gjh42

Black Belt

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

Re: Ezpages Footer Columns support

Glad to hear it! Can you let me see the site? It's good to have examples for people to see what can be done.