Thread: Adding Links

Results 1 to 10 of 23

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    Ahh i see ok i will try the default template and see what happens.

    Will i lose anything changing between the templates? Also, yes i did try each interger 1 to 5 :)

    Many thanks

  2. #2
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    Ok with the default template the link does come up but not in the place i expected it to lol

    I wanted the more information link to be next to the categories at the top of the custom template, where as on the default template the more information link isnt located next to the category link.

    Does that make sense? If not, i will take screenshots

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Adding Links

    No, it won't work that way. The EzPagesTop menu and the navCatTabs menu are two separate things.

    My original suggestion was to just use the EZ pages menu in the header, with EZ pages using internal links to the category URLs you have in the Category tabs links now, in addition to the ones you want to add, and turning off the header category menu.

    In other words, you would have EZ pages titled Virtual Offices, Business Centres, etc.

    We'll also need to figure out why the EZ page menu doesn't work in your custom template.

  4. #4
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    Ok that makes sense :) But, if i add an EZ Page and remove the category header links, the EZ Page link doesnt show up with the template that i have....

    So removing all the category links and having only EZ Page links isnt going to work either As far as i can see/imagine

    Hope that makes sense and thanks again for the suggestion! :)

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

    Default Re: Adding Links

    on the default template the more information link isnt located next to the category link.
    Where are you seeing the link in the classic template? According to the view source of your custom template, if the ez-pages headerbar was showing, it would be just above your categories-tabs menu.

    What do you have for Configuration > EZ-Pages Settings > EZ-Pages Display Status - HeaderBar ?

  6. #6
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    At the moment that is set to '1'

  7. #7
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    In the classic template the link comes below the category links in a green bar

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

    Default Re: Adding Links

    You apparently do have the ez-page and header link set correctly, then. So your template must be interfering with it.

    Can you post the content of your /includes/templates/your_template/common/tpl_header.php here?

  9. #9
    Join Date
    Sep 2011
    Posts
    58
    Plugin Contributions
    0

    Default Re: Adding Links

    Code:
    <?php
    /**
     * Common Template - tpl_header.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_header.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_header = true;<br />
     *
     * @package templateSystem
     * @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
     * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $
     */
    ?>
    
    <?php
      // Display all header alerts via messageStack:
      if ($messageStack->size('header') > 0) {
        echo $messageStack->output('header');
      }
      if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
      echo htmlspecialchars(urldecode($_GET['error_message']));
      }
      if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
       echo htmlspecialchars($_GET['info_message']);
    } else {
    
    }
    ?>
    
    
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    
    </div><br /><div class="navMainSearch forward">    <a href='index.php?main_page=contact_us&zenid=uuqnuqtjsbmgt1gfenscph8lm7'>Contact Us</a> | Telephone : 0800 019 6769 or 0115 827 7208
    </div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    
    <!--bof-branding display-->
    <div id="headerContent">
    <div id="nameWrapper"></div>
       
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
    
    <?php
                  }
    ?>
    
    
    
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    
    <!--eof-header logo and navigation display-->
    
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    
    
    </div>
    <?php } ?>
    
    <?php
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
    ?>
          <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    	  
    	 <?php } } ?>
    Hope that helps, i have edited 1 line
    Code:
     <a href='index.php?main_page=contact_us&zenid=uuqnuqtjsbmgt1gfenscph8lm7'>Contact Us</a> | Telephone : 0800 019 6769 or 0115 827 7208
    Which removed the standard search bar and replaced it with the above. I doubt that has modified the EZ-Pages section

    Anyways, thanks for your time :)

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

    Default Re: Adding Links

    PHP Code:
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
    <?php 
    require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php 
    ?>
    <!--eof-header ezpage links-->
    This shows that the ez-pages menu is being called correctly. The other possibility is that the file called (/includes/templates/your_template/templates/tpl_ezpages_bar_header.php) is disabled or corrupt. If there is not one under /your_template/, there should be a stock copy under /template_default/.

    ...?main_page=contact_us&zenid=uuqnuqtjsbmgt1gfenscph8lm7'>Contact Us</a>...
    You should NEVER have the zenid hard-coded in a link, either on your site or published in an ad somewhere. That will put anyone who uses it into the same session and could cause confusion and customer problems.

 

 

Similar Threads

  1. v150 Adding links to footer 'Important Links' box
    By gwyllion in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2012, 05:29 PM
  2. Adding images to links
    By mighty midget in forum General Questions
    Replies: 3
    Last Post: 27 Oct 2011, 05:08 PM
  3. Adding EZ Page Links
    By ljdream00 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Mar 2009, 11:00 AM

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