Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    jwitt,
    youre right, and always helpful!

    i gutted and started over...
    it was actually fine based on our previous dialogue, until i added that html in the body/head crap that i got from someone else..

    i AM learning, the best i can, even from a week ago, (comparatively) im a freakin jedi master.. LMAO.... and i do use the w3 site A LOT... its just trial and error for me at this point.

    i appreciate your time, and will try to incorporate a better code then what was obviously CRAP that i got elsewhere...

    THANKS

  2. #2
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    ok, so i dont know when i changed it, but i moved something above that should have been below...

    still not "done" restructuring, but i changed this section:
    Code:
    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul id="bottomMenuStyle">
    <li><a href="http://www.hsus.org" rel="popup console 820 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/humanesociety.gif" alt="Humane Society" width="290" height="55" border="0"/></a></li>
    <li><a href="javascript:void(0);" onclick="window.open('http://www.justhost.com/ecertified?domain='+document.domain+'','JustHost','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=570,height=680,left=300,top=200');"><img style="border:0px;" src="http://www.justhost.com/img/greenbadges/badge4.gif" alt="Green Web Hosting" /></a></li>
    <li><a href="http://www.facebook.com/home.php?#/pages/Custom-K9-Design/72436717447?ref=mf" rel="popup console 975 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/facebook_48.gif" alt="Facebook" width="55" height="55" border="0"/></a></li>
    <li><a href="http://www.mozilla.com/en-US/firefox/organic/?from=sfx&uid=0&t=353570" rel="popup console 950 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/organicfirefox.jpg"width="115" height="55" border="0"/></a></li>
    <li><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/paymentoptions.png" width="115" height="55"></li>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    </ul>
    <?php } ?>
    </div>
    </div>
    <!--eof-navigation display -->
    to this: (much cleaner)
    Code:
    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php } ?>
    </ul>
    </div>
    </div>
    
    <ul id="bottomMenuStyle">
    <li><a href="http://www.hsus.org" rel="popup console 820 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/humanesociety.gif" alt="Humane Society" width="290" height="55" border="0"/></a></li>
    <li><a href="javascript:void(0);" onclick="window.open('http://www.justhost.com/ecertified?domain='+document.domain+'','JustHost','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=570,height=680,left=300,top=200');"><img style="border:0px;" src="http://www.justhost.com/img/greenbadges/badge4.gif" alt="Green Web Hosting" /></a></li>
    <li><a href="http://www.facebook.com/home.php?#/pages/Custom-K9-Design/72436717447?ref=mf" rel="popup console 975 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/facebook_48.gif" alt="Facebook" width="55" height="55" border="0"/></a></li>
    <li><a href="http://www.mozilla.com/en-US/firefox/organic/?from=sfx&uid=0&t=353570" rel="popup console 950 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/organicfirefox.jpg"width="115" height="55" border="0"/></a></li>
    <li><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/paymentoptions.png" width="115" height="55"></li>
    </ul>
    
    <!--eof-navigation display -->
    now my images and links show again... i would like to figure out how to call the "rel=xxxxxx" so that the pop-up part works better... im working on that now...

    but at least the images show again, and the links work.. really have NO idea how all the "li"s got above the "php" script in the nav display... im sure i was copying and pasting at some point and messed it up.

    thanks so far! will post more results..

  3. #3
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    ok, so this popup thing came from here:
    http://accessify.com/features/tutori...perfect-popup/

    basically, i just need to add this syntax in the footer file, to call these javascript instructions: (instead of all that code i had a the top!)

    <script type="text/javascript" src="/path-to/add-event.js"></script>
    <script type="text/javascript" src="/path-to/popup.js"></script>

    how would i correctly insert those scripts into my existing tpl_footer.php file here:

    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 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 $
     */
    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">
    <ul>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php } ?>
    </ul>
    </div>
    </div>
    
    <ul id="bottomMenuStyle">
    <li><a href="http://www.hsus.org" rel="popup console 820 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/humanesociety.gif" alt="Humane Society" width="290" height="55" border="0"/></a></li>
    <li><a href="javascript:void(0);" onclick="window.open('http://www.justhost.com/ecertified?domain='+document.domain+'','JustHost','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=570,height=680,left=300,top=200');"><img style="border:0px;" src="http://www.justhost.com/img/greenbadges/badge4.gif" alt="Green Web Hosting" /></a></li>
    <li><a href="http://www.facebook.com/home.php?#/pages/Custom-K9-Design/72436717447?ref=mf" rel="popup console 975 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/facebook_48.gif" alt="Facebook" width="55" height="55" border="0"/></a></li>
    <li><a href="http://www.mozilla.com/en-US/firefox/organic/?from=sfx&uid=0&t=353570" rel="popup console 950 700 noicon"><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/organicfirefox.jpg"width="115" height="55" border="0"/></a></li>
    <li><img src="http://www.customk9design.com/catalogzen/includes/templates/darkness/images/paymentoptions.png" width="115" height="55"></li>
    </ul>
    
    <!--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 -->
    
    <ul id="bottomMenuStyle2">
    <li><a href='http://customk9design.com/catalogzen/index.php?main_page=page&id=2'>About Us</a></li> &nbsp;&nbsp;
    <li><a href='http://customk9design.com/catalogzen/index.php?main_page=contact_us'>Contact Us</a></li>&nbsp;&nbsp;
    <li><a href='http://customk9design.com/catalogzen/index.php?main_page=page&id=7'>Legal Stuff</a></li>&nbsp;&nbsp;
    <li><a href='http://customk9design.com/catalogzen/index.php?main_page=page&id=8'>Shipping, Returns and Availability</a></li>&nbsp;&nbsp;
    <li><a href='http://customk9design.com/catalogzen/index.php?main_page=site_map'>Site Map</a></li>
    </ul>
    
    
    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
    <!--eof- site copyright display -->
    
    <?php
    } // flag_disable_footer
    ?>

  4. #4
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: part of footer is gone

    If you are going to add that script to your footer, and your footer is used globally on your site, then you may as well use the zen-cart built in method for adding javascript. These instruction can be found in your docs folder.
    All you would have to do is rename the filename.js files to jscript_filename.js and put in your jscript folder.

  5. #5
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    wow.

    i feel so stupid!
    i had NO idea that all that data was there for zencart on "how to"... i had just been using google, wikipedia, tutorials, faq and the forums...

    wow.

    ok, so i understand this just fine now, i have uploaded the files to the correct jscript folder, and have created the correct tags:

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_add-event.js"></script>

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_popup.js"></script>

    what i DO not know, and this is just my lack of basic php knowledge talking here...

    when it says to insert "as if you had inserted the following into an HTML page".... what is the "html" portion of a php page? i know that there are separate areas for <head> and <body> in an html page, but there are no references to this in my existing .php page...

    given that you said this "If that is tpl_footer.php, then you have some serious code issues. First you have <head></head> tags within the <body></body> tags and then you end your html with this </html> before your links can be displayed." last time i tried to put in html... LOL i OBVIOUSLY still have a LOT of learning to do!

    basically, where would tags like above go on the page, so as not to interfere with anything else?

  6. #6
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: part of footer is gone

    If you take your jscript_add-event.js and jscript_popup.js and put them in your jscript folder, then that's all you need to do. You don't need those lines anymore.:

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_add-event.js"></script>

    <script language="javascript" src="includes/templates/darkness/jscript/jscript_popup.js"></script>

    If you added these lines in addition, then you would be trying to load those jscripts twice.

    After you add those files to your jscript folder, look at the source code of your page and you should see them being loaded in your head section. Zen-cart automatically loads any jscript you put in this folder as long as it's appended with "jscript_".

    From that point it's just a matter of formatting the link correctly to use the jscript popups and for that I would suggest going back to reference the source from where you got this jscript.

  7. #7
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: part of footer is gone

    freaking perfect!! :)

    kudos to me for AGAIN making things more complicated than they needed to be! worked just fine, just renamed the files to have the jscript_ prefix.

    (id kiss ya if you wouldnt take it the wrong way !!!!!!!)


 

 

Similar Threads

  1. v150 Footer is gone
    By JDAhlbom in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2013, 07:48 PM
  2. v150 My footer is gone
    By In2Deep in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Oct 2012, 10:13 PM
  3. Contact form gone and footer missing!
    By Lippyme in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Mar 2012, 09:15 PM
  4. Footer problesm's - Its gone!
    By priceys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Nov 2007, 05:33 PM
  5. 2 part question on background and footer
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jun 2006, 05:52 PM

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