Zen Cart Logo
Forums / Addon Templates / Sheffield Blue Template Support Thread

Sheffield Blue Template Support Thread

Views: 123,049

Results 201 to 220 of 842
21 Apr 2013, 15:04
#201
calfaras avatar

calfaras

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Sheffield Blue Template Support Thread

I figured it out. When I reset the layout boxes i lost the info. Im god now..

21 Apr 2013, 15:57
#202
djlqd avatar

djlqd

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

I have changed the information in the social defines file to my URLs, but still has the default Picaflor URLs after uploading. Tried several times.

/bof social urls/
define('FACEBOOK','http://www.facebook.com/lhalsportscards');
define('TWITTER', 'http://www.twitter.com/LHAL_Sportscard');
define('YOUTUBE', 'http://www.youtube.com/user/ZenCartEasyHelp');
define('PINTEREST', 'http://www.pinterest.com/lhalsportscards');
define('GOOGLE', 'https://plus.google.com/115003196314390337282/posts');
define('BLOG', 'http://cardsandcollectibles.wordpress.com');

Any help would be appreciated.

www.lhalsportscards.com

21 Apr 2013, 18:34
#203
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

calfaras:

I figured it out. When I reset the layout boxes i lost the info. Im god now..

I am happy that you figured it out ;-)

Thanks,

Anne

21 Apr 2013, 18:35
#204
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

DJLQD:

I have changed the information in the social defines file to my URLs, but still has the default Picaflor URLs after uploading. Tried several times.

/bof social urls/
define('FACEBOOK','http://www.facebook.com/lhalsportscards');
define('TWITTER', 'http://www.twitter.com/LHAL_Sportscard');
define('YOUTUBE', 'http://www.youtube.com/user/ZenCartEasyHelp');
define('PINTEREST', 'http://www.pinterest.com/lhalsportscards');
define('GOOGLE', 'https://plus.google.com/115003196314390337282/posts');
define('BLOG', 'http://cardsandcollectibles.wordpress.com');

Any help would be appreciated.

www.lhalsportscards.com

Sounds like you are not uploading to the override directory.

Thanks,

Anne

21 Apr 2013, 19:14
#205
djlqd avatar

djlqd

New Zenner

Join Date:
Dec 2008
Posts:
55
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

picaflor-azul:

Sounds like you are not uploading to the override directory.

Thanks,

Anne

And how would I go about uploading to the right directory?

21 Apr 2013, 21:37
#206
calfaras avatar

calfaras

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Maybe there is a solution for this. If I want to show the Categories on the Index page by turning on "Categories - Always Show on Main Page" in the Config-Layout Settings section it shows the Categories like I want but the problem is that the New - Featured - Specials Ribbon disappears. Is there a way of having both of these display?

Thx

22 Apr 2013, 21:21
#207
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

DJLQD:

And how would I go about uploading to the right directory?

The override directory of this template is called sheffield_blue

Thanks,

Anne

22 Apr 2013, 21:34
#208
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

calfaras:

Maybe there is a solution for this. If I want to show the Categories on the Index page by turning on "Categories - Always Show on Main Page" in the Config-Layout Settings section it shows the Categories like I want but the problem is that the New - Featured - Specials Ribbon disappears. Is there a way of having both of these display?

Thx

If you want the tabbed home page modules to show when you have the categories showing on the main page, you will have to add the tabbed home page modules code from tpl_index_default.php to tpl_index_categories.php.

Thanks,

Anne

23 Apr 2013, 00:20
#209
calfaras avatar

calfaras

New Zenner

Join Date:
Apr 2013
Posts:
5
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

It worked! Thanks!!

23 Apr 2013, 20:30
#210
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi Anne, hope you are well?

When you manage to get a spare moment would you be able to look into the following re Anti-Spam on the Sheffield Blue Template?

http://www.zen-cart.com/showthread.php?207593-Anyone-Try-AreYouHuman-anti-Spam-code

Is there any code that can be put in somewhere to stop Spambots sending messages via the Hoverbox Contact Us part of the template?

Many thanks

Mark

23 Apr 2013, 20:48
#211
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Sheffield Blue Template Support Thread

This is one of my version of the menu, It has some additions to the quicklinks part. Like the new product link, which only shows when there are any new products, but also the antis-pam fields in the contact box

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: tpl_drop_menu.php  2005/06/15 15:39:05 DrByte Exp $
//

?>


<div id="mega-wrapper"><!-- bof mega-wrapper -->
  <ul class="mega-menu menu_red"><!-- bof mega-menu -->
    <li class="quicklinks-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_QUICK_LINKS; ?></a><!-- bof quick links  -->
      <div class="dropdown_1column">
        <div class="col_1 firstcolumn">
          <ul class="levels">
            <li><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
            <?php
              if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
              // display limits
              //  $display_limit = zen_get_products_new_timelimit();
                $display_limit = zen_get_new_date_range();
                $show_this = $db->Execute("select p.products_id
                                 from " . TABLE_PRODUCTS . " p
                                 where p.products_status = 1 " . $display_limit . " limit 1");
                if ($show_this->RecordCount() > 0) {
                  echo '<li><a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . HEADER_TITLE_NEW_PRODUCTS . '</a></li>';
                }
              }
            ?>
            <?php
              if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
                $show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
                if ($show_this->RecordCount() > 0) {
                  echo '<li><a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . TABLE_HEADING_FEATURED_PRODUCTS . '</a></li>';
                }
              }
            ?>
            <?php
              if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
                echo '<li><a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . HEADER_TITLE_ALL_PRODUCTS . '</a></li>';
              }
            ?>
            <?php
              if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
                $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
                if ($show_this->RecordCount() > 0) {
                  echo '<li><a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . HEADER_TITLE_SPECIALS . '</a></li>';
                }
              }
            ?>
            <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
          </ul>
        </div>
      </div>
    </li><!-- eof quick links -->
    <li class="categories-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_CATEGORIES; ?></a><!-- bof cateories    -->
      <div class="dropdown_1column">
        <div class="col_1 firstcolumn">
          <div class="levels">
            <?php
              // load the UL-generator class and produce the menu list dynamically from there
              require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
              $zen_CategoriesUL = new zen_categories_ul_generator;
              $menulist = $zen_CategoriesUL->buildTree(true);
              $menulist = str_replace('"level4"','"level5"',$menulist);
              $menulist = str_replace('"level3"','"level4"',$menulist);
              $menulist = str_replace('"level2"','"level3"',$menulist);
              $menulist = str_replace('"level1"','"level2"',$menulist);
              $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
              $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
              echo $menulist;
            ?>
          </div>
        </div>
      </div>
    </li><!-- eof categories  -->
    <li class="manufacturers-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand   -->
      <div class="dropdown_1column">
        <div class="col_1 firstcolumn">
          <ul>
            <?php
              $show_manufacturers= true;
              // for large lists of manufacturers uncomment this section
              /*
                if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or  ($request_type == 'SSL')) {
                  $show_manufacturers= false;
                } else {
                  $show_manufacturers= true;
                }
              */

              // Set to true to display manufacturers images in place of names
              define('DISPLAY_MANUFACTURERS_IMAGES',false);

              if ($show_manufacturers) {

              // only check products if requested - this may slow down the processing of the manufacturers sidebox
                if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
                  $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                                          from " . TABLE_MANUFACTURERS . " m
                                          left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
                                          where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
                                          order by manufacturers_name";
                } else {
                  $manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                                          from " . TABLE_MANUFACTURERS . " m
                                          order by manufacturers_name";
                }

                $manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);

                if ($manufacturer_sidebox->RecordCount()>0) {
                  $number_of_rows = $manufacturer_sidebox->RecordCount()+1;

              // Display a list
                  $manufacturer_sidebox_array = array();
              //    kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
              //    if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
              //      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
              //    } else {
              //      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
              //    }

                  while (!$manufacturer_sidebox->EOF) {
                    $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
                  $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
                    $manufacturer_sidebox_array[] =
                  array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
                      'text' => DISPLAY_MANUFACTURERS_IMAGES ?
                      zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
                      $manufacturer_sidebox_name);
                    $manufacturer_sidebox->MoveNext();
                  }

                }
              } // $show_manufacturers
                      for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
                    $content = '';
                  $content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
                    $content .= $manufacturer_sidebox_array[$i]['text'];
                    $content .= '</a></li>' . "\n";
                    echo $content;
                }
            ?>
          </ul>
        </div>
      </div>
    </li><!-- eof shop by brand    -->
    <li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->
      <div class="dropdown_info">
        <div class="col_1">
          <h3><?php echo TITLE_GENERAL; ?></h3>
          <ul>
            <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo BOX_INFORMATION_ABOUT_US; ?></a></li>
          <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo BOX_INFORMATION_SITE_MAP; ?></a></li>
          <?php } ?>
          <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_GV; ?></a></li>
          <?php } ?>
          <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_DISCOUNT_COUPONS; ?></a></li>
          <?php } ?>
          <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_UNSUBSCRIBE; ?></a></li>
          <?php } ?>
          </ul>
        </div>
        <div class="col_1">
          <h3><?php echo TITLE_CUSTOMERS; ?></h3>
          <ul>
          <?php if ($_SESSION['customer_id']) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
            <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
            <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo TITLE_NEWSLETTERS; ?></a></li>
          <?php } else { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
            <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
          <?php } ?>
            <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
          <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo BOX_INFORMATION_SHIPPING; ?></a></li>
          <?php } ?>
          <?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo BOX_INFORMATION_PRIVACY; ?></a></li>
          <?php } ?>
          <?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo BOX_INFORMATION_CONDITIONS; ?></a></li>
          <?php } ?>
          </ul>
        </div>
        <div class="col_1">
          <h3><?php echo TITLE_EZ_PAGES; ?></h3>
          <ul>
            <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
          </ul>
        </div>
      </div>
    </li><!-- eof information -->
    <li class="contactus-li"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="drop"><?php echo HEADER_TITLE_CONTACT_US;?></a><!-- bof contact form -->
      <div class="dropdown_2columns">
        <div class="col_2 firstcolumn">
          <h2><?php echo TITLE_CONTACT_US;?></h2>
          <p><?php echo TEXT_CONTACT_US;?></p>
          <div id="contact_form">
            <div class="message">
              <div id="alert"></div>
            </div>
            <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
              <label class="inputLabel" for="contactname"><?php echo HEADER_MENU_ENTRY_NAME . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
              <?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"'); ?>
              <br class="clearBoth" />
              <label for="email-address"><?php echo HEADER_MENU_ENTRY_EMAIL . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
              <?php echo zen_draw_input_field('email', ($email_address), ' size="30" id="email-address"'); ?>
              <br class="clearBoth" />
              <label for="enquiry"><?php echo HEADER_MENU_ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
              <?php echo zen_draw_textarea_field('enquiry', '40', '3', $enquiry, 'id="enquiry"'); ?>
              <?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
              <div class="form_buttons">
                <input type="submit" class="button" id="submit" value="Submit" />
              </div>
            </form>
          </div>
        </div>
      </div>
    </li><!-- eof contact form -->
    <li class="customer_service"><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>" class="drop"><?php echo HEADER_TITLE_CUSTOMER_SERVICE; ?></a><!-- bof customer service -->
      <div class="dropdown_customer_service align_right">
        <div class="col_cs">
          <h2><?php echo TITLE_SHIPPING;?></h2>
        </div>
        <div class="col_cs">
          <p><?php echo TEXT_SHIPPING_INFO;?></p>
        </div>
        <div class="col_cs">
          <h2><?php echo TITLE_CONFIDENCE;?></h2>
        </div>
        <div class="col_cs">
          <img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.PAYMENT_ICON ?>"   alt="payments we accept" />
          <p class="mega-confidence"><?php echo TEXT_CONFIDENCE;?></p>
        </div>
      </div><!-- eof customer service -->
    </li>
  </ul><!-- eof mega-menu -->
</div><!-- eof mega-wrapper -->
23 Apr 2013, 21:54
#212
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Design75:

This is one of my version of the menu, It has some additions to the quicklinks part. Like the new product link, which only shows when there are any new products, but also the antis-pam fields in the contact box

Hi, thanks for the quick response. I checked your code against the original file using WinMerge as a direct replacement of the code in the original file loses the 'About us' and also messes up the titles on 'contact us'. Are you able to show where the antispam needs to be in my original file below?

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: tpl_drop_menu.php  2005/06/15 15:39:05 DrByte Exp $
//

?>


<div id="mega-wrapper"><!-- bof mega-wrapper -->

    <ul class="mega-menu menu_red"><!-- bof mega-menu -->
       
       <li class="quicklinks-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_QUICK_LINKS; ?></a><!-- bof quick links  -->
             <div class="dropdown_1column">
                <div class="col_1 firstcolumn">
                   <ul class="levels">
                       <li><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
                       <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
                       <li><a href="<?php echo zen_href_link(FILENAME_FEATURED_PRODUCTS); ?>"><?php echo TABLE_HEADING_FEATURED_PRODUCTS; ?></a></li>
                       <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
                       <li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
                       <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>                        
                   </ul>   
                </div>
               </div>
        </li><!-- eof quick links -->


        <li class="categories-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_CATEGORIES; ?></a><!-- bof cateories    -->
     
            <div class="dropdown_1column">
                <div class="col_1 firstcolumn">
                   <div class="levels">
                       <?php

 // load the UL-generator class and produce the menu list dynamically from there
 require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
 $zen_CategoriesUL = new zen_categories_ul_generator;
 $menulist = $zen_CategoriesUL->buildTree(true);
 $menulist = str_replace('"level4"','"level5"',$menulist);
 $menulist = str_replace('"level3"','"level4"',$menulist);
 $menulist = str_replace('"level2"','"level3"',$menulist);
 $menulist = str_replace('"level1"','"level2"',$menulist);
 $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
 $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
 echo $menulist;
?>                        
                   </div>   
                </div>
               </div>
        </li><!-- eof categories  -->
        

     <li class="manufacturers-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand   -->
            <div class="dropdown_1column">
                <div class="col_1 firstcolumn">

              <ul >
               <?php
        
  $show_manufacturers= true;

// for large lists of manufacturers uncomment this section
/*
  if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or  ($request_type == 'SSL')) {
    $show_manufacturers= false;
  } else {
    $show_manufacturers= true;
  }
*/

// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',true);

if ($show_manufacturers) {

// only check products if requested - this may slow down the processing of the manufacturers sidebox
  if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
    $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                            from " . TABLE_MANUFACTURERS . " m
                            left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
                            where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
                            order by manufacturers_name";
  } else {
    $manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                            from " . TABLE_MANUFACTURERS . " m
                            order by manufacturers_name";
  }

  $manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);

  if ($manufacturer_sidebox->RecordCount()>0) {
    $number_of_rows = $manufacturer_sidebox->RecordCount()+1;

// Display a list
    $manufacturer_sidebox_array = array();
//        kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
//    if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
//      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
//    } else {
//      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
//    }

    while (!$manufacturer_sidebox->EOF) {
      $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
      $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
      $manufacturer_sidebox_array[] =
        array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
              'text' => DISPLAY_MANUFACTURERS_IMAGES ?
                zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
                $manufacturer_sidebox_name);
      $manufacturer_sidebox->MoveNext();
    }
      
  }
} // $show_manufacturers
                for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
      $content = '';
      $content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
      $content .= $manufacturer_sidebox_array[$i]['text'];
      $content .= '</a></li>' . "\n";
      echo $content;
    }
  ?>
            </ul>
        </div>
            </div>
        </li><!-- eof shop by brand    -->
        
    <li class="aboutus-li"><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>" class="drop"><?php echo HEADER_TITLE_ABOUT_US; ?></a><!-- bof about us -->
                
            <div class="dropdown_aboutus">
                    
                <div class="col_aboutus">
                    <h2><?php echo TITLE_ABOUT_US;?></h2>
                </div>
 
        <div class="col_cs">
                     <p class="mega-about"><?php echo TEXT_ABOUT_US;?></p>             
                         <img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.ABOUT_US_IMAGE ?>"   class="imgshadow_light aboutus-image" alt="about us"  />    
                 </div>
            </div>
        </li><!-- eof about us -->

        

          <li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->
 
        <div class="dropdown_info">
        
        <div class="col_1">
                    <h3><?php echo TITLE_GENERAL; ?></h3>
                    <ul>
            <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo BOX_INFORMATION_ABOUT_US; ?></a></li>
                    <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo BOX_INFORMATION_SITE_MAP; ?></a></li>
                    <?php } ?>
                      <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_GV; ?></a></li>
                    <?php } ?>
                    <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_DISCOUNT_COUPONS; ?></a></li>
                    <?php } ?>
                       <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_UNSUBSCRIBE; ?></a></li>
                    <?php } ?>
                     </ul>   
                 </div>
    
        <div class="col_1">
                     <h3><?php echo TITLE_CUSTOMERS; ?></h3>
                     <ul>
            <?php if ($_SESSION['customer_id']) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
                    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
                    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo TITLE_NEWSLETTERS; ?></a></li>
                    <?php } else { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
                    <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
                    <?php } ?>
                        <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
                        <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo BOX_INFORMATION_SHIPPING; ?></a></li>
                        <?php } ?>
                        <?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo BOX_INFORMATION_PRIVACY; ?></a></li>
                        <?php } ?>
                        <?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo BOX_INFORMATION_CONDITIONS; ?></a></li>
                        <?php } ?>
                     </ul>   
                 </div>

                 <div class="col_1">
                      <h3><?php echo TITLE_EZ_PAGES; ?></h3>
              <ul> 
              <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
              </ul>
                 </div>
           </div>

      </li><!-- eof information -->
 
    
     
              <li class="contactus-li"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="drop"><?php echo HEADER_TITLE_CONTACT_US;?></a><!-- bof contact form -->
                       
            <div class="dropdown_2columns">
                
                <div class="col_2 firstcolumn">
   
           <h2><?php echo TITLE_CONTACT_US;?></h2>

           <p><?php echo TEXT_CONTACT_US;?></p>
    
                    <div id="contact_form">
                    
                        <div class="message">
                            <div id="alert"></div>
                        </div>
                  <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
                        
                        <label for="contactname">Name<span class="required"> *</span></label>
                        <input name="contactname" type="text" id="contactname" size="30" value=""/>

            <br class="clearBoth" />
                        <label for="email">Email<span class="required"> *</span></label>
                        <input name="email" type="text" id="email" size="30" value="" />

            <br class="clearBoth" />
                        <label for="enquiry">Message<span class="required"> *</span></label>
                        <textarea name="enquiry" cols="40" rows="3"  id="enquiry"></textarea>
                        
                        

                           <div class="form_buttons">
                            <input type="submit" class="button" id="submit" value="Submit" />
                            </div>

                        </form>
                    
                    </div>

                </div>
            
            </div>
</li><!-- eof contact form -->

    
    <li class="customer_service"><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>" class="drop"><?php echo HEADER_TITLE_CUSTOMER_SERVICE; ?></a><!-- bof customer service -->
        
            <div class="dropdown_customer_service align_right">
           
                <div class="col_cs">
                    <h2><?php echo TITLE_SHIPPING;?></h2>
                </div>

                <div class="col_cs">
                   <p><?php echo TEXT_SHIPPING_INFO;?></p>             
                </div>
       
                <div class="col_cs">
                      <h2><?php echo TITLE_CONFIDENCE;?></h2>
        </div>

        <div class="col_cs">
                      <img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.PAYMENT_ICON ?>"   alt="payments we accept" /> 
              <p class="mega-confidence"><?php echo TEXT_CONFIDENCE;?></p>             
                </div>
      
            </div><!-- eof customer service -->

     </li>



    </ul><!-- eof mega-menu -->

</div><!-- eof mega-wrapper -->
23 Apr 2013, 22:47
#213
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Sheffield Blue Template Support Thread

Purecarsound:

Hi, thanks for the quick response. I checked your code against the original file using WinMerge as a direct replacement of the code in the original file loses the 'About us' and also messes up the titles on 'contact us'. Are you able to show where the antispam needs to be in my original file below?

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | http://www.zen-cart.com/index.php | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: tpl_drop_menu.php 2005/06/15 15:39:05 DrByte Exp $ // ?> <div id="mega-wrapper"><!-- bof mega-wrapper -->
<ul class="mega-menu menu_red"><!-- bof mega-menu -->
   
   <li class="quicklinks-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_QUICK_LINKS; ?></a><!-- bof quick links  -->
         <div class="dropdown_1column">
            <div class="col_1 firstcolumn">
               <ul class="levels">
                   <li><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
                   <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
                   <li><a href="<?php echo zen_href_link(FILENAME_FEATURED_PRODUCTS); ?>"><?php echo TABLE_HEADING_FEATURED_PRODUCTS; ?></a></li>
                   <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
                   <li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
                   <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>                        
               </ul>   
            </div>
           </div>
    </li><!-- eof quick links -->


    <li class="categories-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_CATEGORIES; ?></a><!-- bof cateories    -->
 
        <div class="dropdown_1column">
            <div class="col_1 firstcolumn">
               <div class="levels">
                   <?php

// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist;
?>
</div>
</div>
</div>
</li><!-- eof categories -->

 <li class="manufacturers-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand   -->
        <div class="dropdown_1column">
            <div class="col_1 firstcolumn">

          <ul >
           <?php

$show_manufacturers= true;

// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/

// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',true);

if ($show_manufacturers) {

// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}

$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);

if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;

// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }

while (!$manufacturer_sidebox->EOF) {
  $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
  $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
  $manufacturer_sidebox_array[] =
    array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
          'text' => DISPLAY_MANUFACTURERS_IMAGES ?
            zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
            $manufacturer_sidebox_name);
  $manufacturer_sidebox->MoveNext();
}

}
} // $show_manufacturers
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
?>
</ul>
</div>
</div>
</li><!-- eof shop by brand -->

<li class="aboutus-li"><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>" class="drop"><?php echo HEADER_TITLE_ABOUT_US; ?></a><!-- bof about us -->
            
        <div class="dropdown_aboutus">
                
            <div class="col_aboutus">
                <h2><?php echo TITLE_ABOUT_US;?></h2>
            </div>

    <div class="col_cs">
                 <p class="mega-about"><?php echo TEXT_ABOUT_US;?></p>             
                     <img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.ABOUT_US_IMAGE ?>"   class="imgshadow_light aboutus-image" alt="about us"  />    
             </div>
        </div>
    </li><!-- eof about us -->

    

      <li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->

    <div class="dropdown_info">
    
    <div class="col_1">
                <h3><?php echo TITLE_GENERAL; ?></h3>
                <ul>
        <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo BOX_INFORMATION_ABOUT_US; ?></a></li>
                <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo BOX_INFORMATION_SITE_MAP; ?></a></li>
                <?php } ?>
                  <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_GV; ?></a></li>
                <?php } ?>
                <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_DISCOUNT_COUPONS; ?></a></li>
                <?php } ?>
                   <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_UNSUBSCRIBE; ?></a></li>
                <?php } ?>
                 </ul>   
             </div>

    <div class="col_1">
                 <h3><?php echo TITLE_CUSTOMERS; ?></h3>
                 <ul>
        <?php if ($_SESSION['customer_id']) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo TITLE_NEWSLETTERS; ?></a></li>
                <?php } else { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
                <?php } ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
                    <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo BOX_INFORMATION_SHIPPING; ?></a></li>
                    <?php } ?>
                    <?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo BOX_INFORMATION_PRIVACY; ?></a></li>
                    <?php } ?>
                    <?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo BOX_INFORMATION_CONDITIONS; ?></a></li>
                    <?php } ?>
                 </ul>   
             </div>

             <div class="col_1">
                  <h3><?php echo TITLE_EZ_PAGES; ?></h3>
          <ul> 
          <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
          </ul>
             </div>
       </div>

  </li><!-- eof information -->


 
          <li class="contactus-li"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>" class="drop"><?php echo HEADER_TITLE_CONTACT_US;?></a><!-- bof contact form -->
                   
        <div class="dropdown_2columns">
            
            <div class="col_2 firstcolumn">

       <h2><?php echo TITLE_CONTACT_US;?></h2>

       <p><?php echo TEXT_CONTACT_US;?></p>

                <div id="contact_form">
                
                    <div class="message">
                        <div id="alert"></div>
                    </div>
              <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
                    
                    <label for="contactname">Name<span class="required"> *</span></label>
                    <input name="contactname" type="text" id="contactname" size="30" value=""/>

        <br class="clearBoth" />
                    <label for="email">Email<span class="required"> *</span></label>
                    <input name="email" type="text" id="email" size="30" value="" />

        <br class="clearBoth" />
                    <label for="enquiry">Message<span class="required"> *</span></label>
                    <textarea name="enquiry" cols="40" rows="3"  id="enquiry"></textarea>
                    
                    

                       <div class="form_buttons">
                        <input type="submit" class="button" id="submit" value="Submit" />
                        </div>

                    </form>
                
                </div>

            </div>
        
        </div>
</li><!-- eof contact form -->
<li class="customer_service"><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>" class="drop"><?php echo HEADER_TITLE_CUSTOMER_SERVICE; ?></a><!-- bof customer service -->
    
        <div class="dropdown_customer_service align_right">
       
            <div class="col_cs">
                <h2><?php echo TITLE_SHIPPING;?></h2>
            </div>

            <div class="col_cs">
               <p><?php echo TEXT_SHIPPING_INFO;?></p>             
            </div>
   
            <div class="col_cs">
                  <h2><?php echo TITLE_CONFIDENCE;?></h2>
    </div>

    <div class="col_cs">
                  <img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.PAYMENT_ICON ?>"   alt="payments we accept" /> 
          <p class="mega-confidence"><?php echo TEXT_CONFIDENCE;?></p>             
            </div>
  
        </div><!-- eof customer service -->

 </li>



</ul><!-- eof mega-menu -->
</div><!-- eof mega-wrapper --> ```

Add this line ```php

<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
after```php
<br class="clearBoth" />
                        <label for="enquiry">Message<span class="required"> *</span></label>
                        <textarea name="enquiry" cols="40" rows="3"  id="enquiry"></textarea>
24 Apr 2013, 15:55
#214
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Re: Sheffield Blue Template Support Thread

Hi Design75, many thanks for the quick response. I've updated the relevant file and will wait now to see if the spam messages stop! Once again, many thanks for you help.

Mark

24 Apr 2013, 16:46
#215
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

calfaras:

It worked! Thanks!!

I am happy that it worked ;-)

Thanks,

Anne

24 Apr 2013, 16:54
#216
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

Design75:

Add this line ```php

<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
> after```php
<br class="clearBoth" />
                        <label for="enquiry">Message<span class="required"> *</span></label>
                        <textarea name="enquiry" cols="40" rows="3"  id="enquiry"></textarea>

Thanks for posting this code. I just want to point out that adding this code will cause the template to fail w3c xhtml validation. This is one reason why I have not included this code in the template package.

Thanks,

Anne

24 Apr 2013, 17:01
#217
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Sheffield Blue Template Support Thread

picaflor-azul:

Thanks for posting this code. I just want to point out that adding this code will cause the template to fail w3c xhtml validation. This is one reason why I have not included this code in the template package.

Thanks,

Anne

It only fails on the contact page, because of the id "enquiry" is used two times. Normally it doesn't fail for me. I haven't bothered changing the id name, but that shouldn't be a problem.

24 Apr 2013, 17:20
#218
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

Design75:

It only fails on the contact page, because of the id "enquiry" is used two times. Normally it doesn't fail for me. I haven't bothered changing the id name, but that shouldn't be a problem.

No, even on the home page or any page it throws this error:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.picaflor-azul.com%2Ffree-demos%2Findex.php%3Fmain_page%3Dindex%26template_switch_id%3Dsheffield_blue&charset=%28detect+automatically%29&doctype=Inline&group=0

Thanks,

Anne

24 Apr 2013, 17:35
#219
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Sheffield Blue Template Support Thread

Ahh the autocomplete error :) That is one of those error I ignore completely, like the ones thrown at us about id's facebook uses

24 Apr 2013, 17:52
#220
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Sheffield Blue Template Support Thread

Design75:

Ahh the autocomplete error :) That is one of those error I ignore completely, like the ones thrown at us about id's facebook uses

I understand ;-) I just wanted to point it out for those who want their sites to validate 100%.

Thanks,

Anne