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
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).
Re: Ezpages Footer Columns support
PHP Code:
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.
Re: Ezpages Footer Columns support
Thanks! I have to rush off now but I'll try this later today and report back.
Rob
Re: Ezpages Footer Columns support
Quote:
Originally Posted by
gjh42
PHP Code:
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.
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
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 Code:
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.
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
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:
Code:
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:
Code:
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?
Re: Ezpages Footer Columns support
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.