Page 4 of 16 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 152
  1. #31
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default 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

  2. #32
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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).

  3. #33
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  4. #34
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Ezpages Footer Columns support

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

    Rob

  5. #35
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Ezpages Footer Columns support

    Quote Originally Posted by gjh42 View Post
    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
    Last edited by rstevenson; 18 Apr 2011 at 03:10 AM.

  6. #36
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 18 Apr 2011 at 04:26 AM.

  7. #37
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Ezpages Footer Columns support

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

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

    Thanks very much for the mod and the help.

    Rob

  8. #38
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default 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?

  9. #39
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Ezpages Footer Columns support

    I got this working!

  10. #40
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

 

 
Page 4 of 16 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. Ezpages Improved Menus support
    By gjh42 in forum Addon Sideboxes
    Replies: 65
    Last Post: 17 Jul 2023, 09:55 PM
  2. ezpages footer nav
    By buildingblocks in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jun 2011, 01:51 PM
  3. footer ezpages
    By alexdog1805 in forum Basic Configuration
    Replies: 1
    Last Post: 6 Mar 2011, 03:19 PM
  4. Center footer EZpages
    By mrtwelvevolts in forum General Questions
    Replies: 2
    Last Post: 4 Feb 2011, 11:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR