-
Re: Sheffield Blue Template Support Thread
I figured it out. When I reset the layout boxes i lost the info. Im god now..
-
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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?
-
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DJLQD
And how would I go about uploading to the right directory?
The override directory of this template is called sheffield_blue
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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
-
Re: Sheffield Blue Template Support Thread
-
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.p...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
-
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 Code:
<?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 -->
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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 Code:
<?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 -->
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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 Code:
<?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 Code:
<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
after
PHP Code:
<br class="clearBoth" />
<label for="enquiry">Message<span class="required"> *</span></label>
<textarea name="enquiry" cols="40" rows="3" id="enquiry"></textarea>
-
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
calfaras
It worked! Thanks!!
I am happy that it worked ;-)
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Design75
Add this line
PHP Code:
<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
after
PHP Code:
<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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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=ht...Inline&group=0
Thanks,
Anne
-
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
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
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
-
Re: Sheffield Blue Template Support Thread
Hi,
When using Google Chrome I am getting a pop-up that says Please stop hotlinking my easing script. Use a real CDN instead. If I click on hotlinking it brings up the following page
jQuery Easing Plugin
What is it? A jQuery plugin from GSGD to give advanced easing options. More info here
For CDN please use CloudFlare http://cdnjs.cloudflare.com/ajax/lib....easing.min.js to help my host. Thank you.
Popup?
If you're coming here because of a popup on your site I'm sorry, but the increased hotlinking has caused me issues with my hosting company so I'm taking steps to try and sort it out. Please upload the script to your own server and update any urls pointing to gsgd.co.uk to use that version of the file or you could try using the above url for CDN (though this currently only has the 1.3 easing script, look at http://cdnjs.com/ for more info and maybe try and add any missing files/versions still in use).
Please also note, I have no problem with anyone's use of the plugin without my knowledge or permission, it's just the hotlinking that's causing me a headache.
If you email me at hotlinking AT gsgd DOT co DOT uk I'm happy to try and exclude your website while you sort this out though I can't guarantee how long it'll take me to get through all the requests. Please follow these two simple steps on how to format your email:
1) please use remove in the subject line
2) please have the domain(s) you want excluded on their own on separate lines without any http/www prefix (eg: domain.com nothttp://www.domain.com)
Still none the wiser?
If you have no idea why your site is hotlinking my script it's likely because a theme or other plugin you're using on your website has included it for you. Your best bet is to ask the person who set up your website to help you remove it. You could also contact the plugin/theme author to ensure they update the plugin (especially if it's not free).
Many thanks
George
Is this anything to do with the template? Do you understand what it means - I'm completely lost!!!
Many thanks
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
vesuvians
Hi,
When using Google Chrome I am getting a pop-up that says Please stop hotlinking my easing script. Use a real CDN instead. If I click on hotlinking it brings up the following page
jQuery Easing Plugin
What is it? A jQuery plugin from GSGD to give advanced easing options. More info here
For CDN please use CloudFlare http://cdnjs.cloudflare.com/ajax/lib....easing.min.js to help my host. Thank you.
Popup?
If you're coming here because of a popup on your site I'm sorry, but the increased hotlinking has caused me issues with my hosting company so I'm taking steps to try and sort it out. Please upload the script to your own server and update any urls pointing to gsgd.co.uk to use that version of the file or you could try using the above url for CDN (though this currently only has the 1.3 easing script, look at http://cdnjs.com/ for more info and maybe try and add any missing files/versions still in use).
Please also note, I have no problem with anyone's use of the plugin without my knowledge or permission, it's just the hotlinking that's causing me a headache.
If you email me at hotlinking AT gsgd DOT co DOT uk I'm happy to try and exclude your website while you sort this out though I can't guarantee how long it'll take me to get through all the requests. Please follow these two simple steps on how to format your email:
1) please use remove in the subject line
2) please have the domain(s) you want excluded on their own on separate lines without any http/www prefix (eg: domain.com nothttp://www.domain.com)
Still none the wiser?
If you have no idea why your site is hotlinking my script it's likely because a theme or other plugin you're using on your website has included it for you. Your best bet is to ask the person who set up your website to help you remove it. You could also contact the plugin/theme author to ensure they update the plugin (especially if it's not free).
Many thanks
George
Is this anything to do with the template? Do you understand what it means - I'm completely lost!!!
Many thanks
See this post for the fix:
http://www.zen-cart.com/showthread.p...+Easing+Plugin
-
1 Attachment(s)
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DivaVocals
I just submitted an updated version of the package which fixes this problem ;-) I have attached a patch that you can upload to your includes/templates/sheffield_blue/jscript folder that will also fix the problem.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
I'm trying to troubleshoot the 'jump' I get when changing pages in this template. Eventually I remembered to try the demo store, where this jump also appears.
http://www.picaflor-azul.com/free-de...ain_page=index
Takes a bit of clicking around but hopefully you'll see it too.
I think I've nailed it down to how the template interacts with the browsers' scrollbars. I'm googling this at the moment. Any help would be welcome.
A site of mine, using a different template doesn't seem to have the same issue.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
simon1066
I'm trying to troubleshoot the 'jump' I get when changing pages in this template. Eventually I remembered to try the demo store, where this jump also appears.
http://www.picaflor-azul.com/free-de...ain_page=index
Takes a bit of clicking around but hopefully you'll see it too.
I think I've nailed it down to how the template interacts with the browsers' scrollbars. I'm googling this at the moment. Any help would be welcome.
A site of mine, using a different template doesn't seem to have the same issue.
Where element, exaclty is "jumping"? What browser are you using?
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hi Anne
At Sheffield Blue demo page and with the browser window at a size larger than the template width. If I click, for example, on the info link in the top nav bar the whole page, on refresh, jumps to the right and back again (5mm ish on a 20inch screen). It might take a few clicks to achieve this and seems to coincide with the disappearance and reappearance of the browser's right scroll bar.
Now I think more about it I wonder if it's due to the speed that my connection is refreshing the page, I guess this might be confirmed if you are not able to replicate it.
Using IE9 (v9.0.8112.16421) and FF (v20.0.1)
thanks
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
simon1066
Hi Anne
At
Sheffield Blue demo page and with the browser window at a size larger than the template width. If I click, for example, on the info link in the top nav bar the whole page, on refresh, jumps to the right and back again (5mm ish on a 20inch screen). It might take a few clicks to achieve this and seems to coincide with the disappearance and reappearance of the browser's right scroll bar.
Now I think more about it I wonder if it's due to the speed that my connection is refreshing the page, I guess this might be confirmed if you are not able to replicate it.
Using IE9 (v9.0.8112.16421) and FF (v20.0.1)
thanks
This is not a bug, just the way the templates load. You can elimate it by applying this:
http://www.zen-cart.com/showthread.p...373#post571373
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hello,
Thanks for this template, good work..
I was wondering if its posible to extend the size the mega menu on column in my case Repair Services.
In another point know if is possible to move the order on first two column, Computer Parts and Repair Services, i want Repair Services and then Computer Parts.
Here is my dev store
Code:
http://compuservicesj.com/store
Thanks for your hard work...
thanks
Jose
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
jabe00
Hello,
Thanks for this template, good work..
I was wondering if its posible to extend the size the mega menu on column in my case Repair Services.
In another point know if is possible to move the order on first two column, Computer Parts and Repair Services, i want Repair Services and then Computer Parts.
Here is my dev store
Code:
http://compuservicesj.com/store
Thanks for your hard work...
thanks
Jose
You can make these changes in the includes/templates/sheffield_blue/common/tpl_mega_menu.php file and the includes/templates/sheffield_blue/css/stylesheet_mega_menu.css file.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
You can make these changes in the includes/templates/sheffield_blue/common/tpl_mega_menu.php file and the includes/templates/sheffield_blue/css/stylesheet_mega_menu.css file.
Thanks,
Anne
Thanks for the answer, already done with the chage necesary on tpl_mega_menu.php, but did not find on stylesheet_mega_menu.css the code to enlarge the size for column...
Thanks....
Jose
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
jabe00
Thanks for the answer, already done with the chage necesary on tpl_mega_menu.php, but did not find on stylesheet_mega_menu.css the code to enlarge the size for column...
Thanks....
Jose
I am happy tha tyou figured it out ;-)
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
I am happy tha tyou figured it out ;-)
Thanks,
Anne
Thanks Anne,
Can you help me identifying line or code to modify for expand the drop-down size for column Repair Services on my site.
I know is in the stylesheet_mega_menu.css and maybe close here:
/* bof column sizes */
.mega-menu .col_1, .mega-menu .col_2 {display:inline;float: left;position: relative;margin-left: 10px;}
.mega-menu .col_1 {width:145px;} /* info store */
.mega-menu .col_2 {width:300px;} /* contact us */
.mega-menu .col_cs {width:605px;} /* about us */
.mega-menu .col_aboutus {width:585px;} /* about us */
.mega-menu .col_3 {width:455px;} /* unknown */
.mega-menu .col_4 {width:610px;} /* unknown */
.mega-menu .col_5 {width:765px;} /* unknown */
.mega-menu .col_6 {width:920px;} /* unknown */
Thanks
Jose
-
1 Attachment(s)
Re: Sheffield Blue Template Support Thread
Hi All,
I'm hoping someone can help me, I have done a fair bit of searching on Google and in this forum, but can't find what I need.
I am using the Sheffield Blue template and it is awesome, however I would like to format the category side menu and remove the "|_" next to sub-categories, when the are dropped down.
Attachment 12520
I have used the Developers Toolbox to search for that string within the php and css files but it found nothing.
I am happy to do the work, but just need someone to point me in the right direction.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
rcbitz
Hi All,
I'm hoping someone can help me, I have done a fair bit of searching on Google and in this forum, but can't find what I need.
I am using the Sheffield Blue template and it is awesome, however I would like to format the category side menu and remove the "|_" next to sub-categories, when the are dropped down.
Attachment 12520
I have used the Developers Toolbox to search for that string within the php and css files but it found nothing.
I am happy to do the work, but just need someone to point me in the right direction.
Hope this can help.
In your Admin go to Configuration - Layout Settings find Categories Separator between the Category Name and Sub Categories and change |_ to anyone you want.
Hope this was what you was looking for...
Thanks,
Jose
-
Re: Sheffield Blue Template Support Thread
Thanks jabe00 - worked a treat.
I never would have thought of or found that!
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
rcbitz
Thanks jabe00 - worked a treat.
I never would have thought of or found that!
I am happy that you figured it out. This info is also up in the FAQ's section of this site.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Is there any way to delete the ' # units in stock' line from the product information?
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DJLQD
Is there any way to delete the ' # units in stock' line from the product information?
Here is the "Easy Help Zen Cart Tutorial™: How to Remove the “X Units In Stock” From the Product Info Page"
HTML Code:
http://www.picaflor-azul.com/blog/?p=1052
Thanks to Picaflor-Azul
Regards,
Jose
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DJLQD
Is there any way to delete the ' # units in stock' line from the product information?
As with any Zen Cart site, go to Admin->Catalog->Product Types->(Product-General)->Edit Layout->Show Quantity in Stock
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DrByte
As with any Zen Cart site, go to Admin->Catalog->Product Types->(Product-General)->Edit Layout->Show Quantity in Stock
Thank You!!
-
Re: Sheffield Blue Template Support Thread
Hi Anne,
I love your template!
I have made some adjustments to your megamenu, but I'm stuck on two issues. This is absolutely not the fault of your lovely template, it is just a result of my desire to customize. But I am hoping you can offer some advice, nonetheless! :)
Here is a link to where I am staging my site (ZC151):
http://2staging.apswittcosales.com/
Customization:
I decided that I wanted to have a "HOME" button on the top left of the megamenu. I managed to do that, but the applied style becomes a bit awkward.
#1 (not super important)
When you hover over "Home", there is a slight movement on the menu items (doesn't occur when you hover over other top menu items; but if you hover over "Home", the others shift left a hair). That's not a huge deal, but the perfectionist in me would love to resolve it.
#2 (more important)
When you hover over home, a box appears. The box has rounded corners on top, but the not at bottom. This is because the css assumes there will be a box below with more stuff. I'd like to round off the bottom, but I can't figure out the css.
I think the solution would be to create a new class in the stylesheet_mega_menu.css file and then apply it in the tpl_mega_menu.php. Home is currently referencing "quicklinks-li". (<li class="quicklinks-li"><a href="/">Home</a></li>)
Any help would be greatly appreciated!
Thanks,
Mike
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Feznizzle
Hi Anne,
I love your template!
I have made some adjustments to your megamenu, but I'm stuck on two issues. This is absolutely not the fault of your lovely template, it is just a result of my desire to customize. But I am hoping you can offer some advice, nonetheless! :)
Here is a link to where I am staging my site (ZC151):
http://2staging.apswittcosales.com/
Customization:
I decided that I wanted to have a "HOME" button on the top left of the megamenu. I managed to do that, but the applied style becomes a bit awkward.
#1 (not super important)
When you hover over "Home", there is a slight movement on the menu items (doesn't occur when you hover over other top menu items; but if you hover over "Home", the others shift left a hair). That's not a huge deal, but the perfectionist in me would love to resolve it.
#2 (more important)
When you hover over home, a box appears. The box has rounded corners on top, but the not at bottom. This is because the css assumes there will be a box below with more stuff. I'd like to round off the bottom, but I can't figure out the css.
I think the solution would be to create a new class in the stylesheet_mega_menu.css file and then apply it in the tpl_mega_menu.php. Home is currently referencing "quicklinks-li". (<li class="quicklinks-li"><a href="/">Home</a></li>)
Any help would be greatly appreciated!
Thanks,
Mike
I am happy that you are using the template for your site ;)
You can add the class=drop to the anchor tag for the home link to stop the jumping.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Thanks for the advice. Unfortunately, I can't seem to do much with it. I'm a beginner with CSS, sorry!
Can you take a look?
Here is my tpl_mega_menu.php:
Code:
<?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="/">Home</a></li>
<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 class="col_aboutus">
<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>
</li><!-- eof about us -->
<li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop">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="/Privacy_Policy">Privacy Policy</a></li>
<?php } ?>
<?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'false') { ?>
<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 == 'false') { ?>
<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 == 'false') { ?>
<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 -->
</ul><!-- eof mega-menu -->
</div><!-- eof mega-wrapper -->
Here is my stylesheet_mega_menu.css:
Code:
#mega-wrapper {width: 1034px;margin:0 auto;display:block;position: relative;z-index:7999;top:-90px;left:-27px;}
#mega-wrapper .mega-menu {background:url(../images/menu-bk.png) no-repeat;list-style:none;width:1034px;margin:30px auto 0px auto;height:65px;padding:0px 20px 0px 20px;}
.mega-menu li {float:left;text-align:center;position:relative;margin-right:20px;margin-top:6px;border:none;}
.mega-menu li.fullwidth {position: static !important;}
.mega-menu li:hover {background: #184b7b;border:1px solid #184b7a;margin-right:18px;-moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 5px 5px 0px 0px;-khtml-border-radius: 5px 5px 0px 0px;border-radius: 5px 5px 0px 0px; }
.mega-menu li a {color: #fff;outline:0;padding: 5px 12px 3px 12px;text-decoration:none;display:block;font-weight:normal;}
.mega-menu li:hover a {color:#fffffe;position:relative;z-index:11;padding: 4px 11px 3px 11px;}
.mega-menu li:hover div a {display:inline;}
.mega-menu li .drop {padding-right:18px;}
.mega-menu li:hover .drop {padding-right:19px;}
/* bof right aligned menu item */
.mega-menu .right {float:right;right:0;margin-right:5px;}
.mega-menu li.right:hover {margin-right:5px;}
/* bof drop down styles */
.mega-menu .dropdown_1column, .mega-menu .dropdown_2columns, .mega-menu .dropdown_3columns, .mega-menu .dropdown_4columns, .mega-menu .dropdown_5columns, .mega-menu .dropdown_customer_service, .mega-menu .dropdown_aboutus, .mega-menu .dropdown_info, .mega-menu .dropdown_fullwidth {margin:4px auto;left:-999em;position:absolute;border:0px solid #494949;background:#3b403a;padding:10px;text-align:left;-moz-border-radius: 0px 5px 5px 5px;-webkit-border-radius: 0px 5px 5px 5px;-khtml-border-radius: 0px 5px 5px 5px;border-radius: 0px 5px 5px 5px;background: #184b7a; /*-moz-linear-gradient(top, #2c2b2a, #191816);background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2c2b2a), to(#191816));background: -o-linear-gradient(top, #2c2b2a, #191816);*/}
.mega-menu .dropdown_1column {width: 145px;}
.mega-menu .dropdown_2columns {width: 300px;}
.mega-menu .dropdown_customer_service {width: 605px;}
.mega-menu .dropdown_aboutus {width: 585px;}
.mega-menu .dropdown_info {width: 470px;}
/* bof drop down on mouse hover left aligned */
.mega-menu li:hover .dropdown_1column, .mega-menu li:hover .dropdown_2columns, .mega-menu li:hover .dropdown_customer_service, .mega-menu li:hover .dropdown_aboutus, .mega-menu li:hover .dropdown_info {left:-1px;top:25px;}
/* bof drop down on mouse hover right aligned */
.mega-menu li .align_right {-moz-border-radius: 5px 0px 5px 5px;-webkit-border-radius: 5px 0px 5px 5px;border-radius: 5px 0px 5px 5px;}
.mega-menu li:hover .align_right {left:auto;right:-1px;top:25px;}
/* bof column sizes */
.mega-menu .col_1, .mega-menu .col_2 {display:inline;float: left;position: relative;margin-left: 10px;}
.mega-menu .col_1 {width:145px;}
.mega-menu .col_2 {width:300px;}
.mega-menu .col_cs {width:605px;}
.mega-menu .col_aboutus {width:585px;}
.mega-menu .col_3 {width:455px;}
.mega-menu .col_4 {width:610px;}
.mega-menu .col_5 {width:765px;}
.mega-menu .col_6 {width:920px;}
/* Use the firstcolumn class for the items that stick to the left edge of the dropdown */
.mega-menu .firstcolumn {margin-left: 0; /* Clearing margin & left */clear: left;}
/*bof content*/
.mega-menu p, .mega-menu ul, .mega-menu li, .mega-menu h2, .mega-menu h3 {font-size:14px;font-family:Arial, Helvetica, sans-serif;line-height:21px;text-align:left;color:#c04524;}
.mega-menu p {font-size:12px;line-height:18px;margin:0; margin-bottom:10px;color:#fffffd;}
.mega-menu h2, .mega-menu h3 {border-bottom:1px solid #000;margin-top:7px;color:#fffffd;}
.mega-menu h2 {font-size:21px;margin-bottom:10px;padding-bottom:11px;font-weight:normal;}
.mega-menu h3 {font-size:14px;margin-bottom:14px;padding-bottom:7px;font-weight:normal;}
.mega-menu li:hover div a {text-decoration:none;border:none;padding:0;}
/* bof images */
.mega-menu .imgshadow_light {padding:4px;border:0px solid #000;margin-top:1px;margin-left:2px;}
/* bof standard lists styles */
.mega-menu li ul {list-style:none;padding:0;margin:0 0 12px 0;}
.mega-menu li ul li {font-size:12px;line-height:24px;position:relative;padding:0;margin:0;float:left;text-align:left;width:145px;}
.mega-menu li ul li a {padding:0;font-weight:normal;}
.mega-menu li ul li:hover {background:none;border:none;padding:0;margin:0;}
/* bof 2 levels drop down */
.mega-menu .levels, .mega-menu .levels ul {/* all lists */padding: 0;margin: 0;list-style: none;}
.mega-menu li:hover .levels a {display:block;}
.mega-menu .levels a {display: block;width: 10em;font-weight:normal;}
.mega-menu .levels a.parent, .mega-menu .levels a.parent:hover {}
.mega-menu .levels li {float: left;width:150px;}
.mega-menu .levels li ul {/* second-level lists*/ position: absolute;border:0px solid #fff;background:#184b7a;/*background: -moz-linear-gradient(top, #2c2b2a, #191816);background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2c2b2a), to(#191816));background: -o-linear-gradient(top, #2c2b2a, #191816);*/top:-23px;margin:15px 0px 0px 4px;padding:6px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;border-radius: 5px;left: -999em;}
.mega-menu .levels li ul ul {top:-23px;}
.mega-menu .levels li:hover ul ul, .mega-menu .levels li:hover ul ul ul {left: -999em;}
.mega-menu .levels li:hover ul, .mega-menu .levels li li:hover ul, .mega-menu .levels li li li:hover ul {left: 142px;}
/*bof contact form*/
#contact_form label, #contact_form legend {font-size: 12px;font-family:Arial, Helvetica, sans-serif;color:#fffffc;}
#contact_form legend {margin-bottom:10px;}
#contact_form {display: block;margin-bottom:10px;}
#contact_form label {display: inline-block;float: left;height: 36px;line-height: 36px;width:80px;font-size:12px;}
#contact_form input, #contact_form textarea, #contact_form select {color:#232323;width:190px;padding: 5px;border:0px solid #58a0af;font-size:12px;}
#contact_form textarea {resize:none;}
#contact_form input:focus, textarea:focus, select:focus {border:0px solid #fff;background-color:#efe8ec;}
#contact_form .required {color:#c00;}
#contact_form .form_buttons {margin:4px 0 0 80px;}
#contact_form .special {display:none;}
#contact_form .error, #contact_form .sent {font-size:11px;padding:2px 5px 2px 5px;text-shadow:none;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius: 3px;}
#contact_form .error {background:#fbe5e2;border:1px solid #f2a197;color:#992213;}
#contact_form .sent {background:#e1f8cc;border:1px solid #c6d880;color:#37620d;}
#contact_form input.button {width: 80px;margin-right:10px;cursor: pointer;background-color:#3a88d5;border:0px solid #0a0a0a;color:#fff;padding: 4px 7px 4px 7px;float:right;}
#contact_form input.button:hover {color:#fffffc;background-color:#000;border:0px solid #000;}
/*bof menu colors*/
.menu_red {background: #fff;/*(url(../images/menu-bk.png) repeat-x;*/height:45px;}
.menu_red li:hover div a {color:#fffffd;}
.menu_red li:hover div a:hover {color:#3a89d6;text-decoration:underline;}
.menu_red li ul li a:hover {color:#7ec3d4;text-decoration:underline;}
/*bof customer service*/
.mega-payments{float:left;}
.mega-confidence{float:right;width:60%;}
.mega-about{float:left;width:60%;}
.mega-right{float:right;position: relative;margin-left: 10px;width:145px;}
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Feznizzle
Thanks for the advice. Unfortunately, I can't seem to do much with it. I'm a beginner with CSS, sorry!
Can you take a look?
Here is my tpl_mega_menu.php:
Code:
<?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="/">Home</a></li>
<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 class="col_aboutus">
<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>
</li><!-- eof about us -->
<li class="information-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop">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="/Privacy_Policy">Privacy Policy</a></li>
<?php } ?>
<?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'false') { ?>
<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 == 'false') { ?>
<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 == 'false') { ?>
<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 -->
</ul><!-- eof mega-menu -->
</div><!-- eof mega-wrapper -->
Here is my stylesheet_mega_menu.css:
Code:
#mega-wrapper {width: 1034px;margin:0 auto;display:block;position: relative;z-index:7999;top:-90px;left:-27px;}
#mega-wrapper .mega-menu {background:url(../images/menu-bk.png) no-repeat;list-style:none;width:1034px;margin:30px auto 0px auto;height:65px;padding:0px 20px 0px 20px;}
.mega-menu li {float:left;text-align:center;position:relative;margin-right:20px;margin-top:6px;border:none;}
.mega-menu li.fullwidth {position: static !important;}
.mega-menu li:hover {background: #184b7b;border:1px solid #184b7a;margin-right:18px;-moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 5px 5px 0px 0px;-khtml-border-radius: 5px 5px 0px 0px;border-radius: 5px 5px 0px 0px; }
.mega-menu li a {color: #fff;outline:0;padding: 5px 12px 3px 12px;text-decoration:none;display:block;font-weight:normal;}
.mega-menu li:hover a {color:#fffffe;position:relative;z-index:11;padding: 4px 11px 3px 11px;}
.mega-menu li:hover div a {display:inline;}
.mega-menu li .drop {padding-right:18px;}
.mega-menu li:hover .drop {padding-right:19px;}
/* bof right aligned menu item */
.mega-menu .right {float:right;right:0;margin-right:5px;}
.mega-menu li.right:hover {margin-right:5px;}
/* bof drop down styles */
.mega-menu .dropdown_1column, .mega-menu .dropdown_2columns, .mega-menu .dropdown_3columns, .mega-menu .dropdown_4columns, .mega-menu .dropdown_5columns, .mega-menu .dropdown_customer_service, .mega-menu .dropdown_aboutus, .mega-menu .dropdown_info, .mega-menu .dropdown_fullwidth {margin:4px auto;left:-999em;position:absolute;border:0px solid #494949;background:#3b403a;padding:10px;text-align:left;-moz-border-radius: 0px 5px 5px 5px;-webkit-border-radius: 0px 5px 5px 5px;-khtml-border-radius: 0px 5px 5px 5px;border-radius: 0px 5px 5px 5px;background: #184b7a; /*-moz-linear-gradient(top, #2c2b2a, #191816);background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2c2b2a), to(#191816));background: -o-linear-gradient(top, #2c2b2a, #191816);*/}
.mega-menu .dropdown_1column {width: 145px;}
.mega-menu .dropdown_2columns {width: 300px;}
.mega-menu .dropdown_customer_service {width: 605px;}
.mega-menu .dropdown_aboutus {width: 585px;}
.mega-menu .dropdown_info {width: 470px;}
/* bof drop down on mouse hover left aligned */
.mega-menu li:hover .dropdown_1column, .mega-menu li:hover .dropdown_2columns, .mega-menu li:hover .dropdown_customer_service, .mega-menu li:hover .dropdown_aboutus, .mega-menu li:hover .dropdown_info {left:-1px;top:25px;}
/* bof drop down on mouse hover right aligned */
.mega-menu li .align_right {-moz-border-radius: 5px 0px 5px 5px;-webkit-border-radius: 5px 0px 5px 5px;border-radius: 5px 0px 5px 5px;}
.mega-menu li:hover .align_right {left:auto;right:-1px;top:25px;}
/* bof column sizes */
.mega-menu .col_1, .mega-menu .col_2 {display:inline;float: left;position: relative;margin-left: 10px;}
.mega-menu .col_1 {width:145px;}
.mega-menu .col_2 {width:300px;}
.mega-menu .col_cs {width:605px;}
.mega-menu .col_aboutus {width:585px;}
.mega-menu .col_3 {width:455px;}
.mega-menu .col_4 {width:610px;}
.mega-menu .col_5 {width:765px;}
.mega-menu .col_6 {width:920px;}
/* Use the firstcolumn class for the items that stick to the left edge of the dropdown */
.mega-menu .firstcolumn {margin-left: 0; /* Clearing margin & left */clear: left;}
/*bof content*/
.mega-menu p, .mega-menu ul, .mega-menu li, .mega-menu h2, .mega-menu h3 {font-size:14px;font-family:Arial, Helvetica, sans-serif;line-height:21px;text-align:left;color:#c04524;}
.mega-menu p {font-size:12px;line-height:18px;margin:0; margin-bottom:10px;color:#fffffd;}
.mega-menu h2, .mega-menu h3 {border-bottom:1px solid #000;margin-top:7px;color:#fffffd;}
.mega-menu h2 {font-size:21px;margin-bottom:10px;padding-bottom:11px;font-weight:normal;}
.mega-menu h3 {font-size:14px;margin-bottom:14px;padding-bottom:7px;font-weight:normal;}
.mega-menu li:hover div a {text-decoration:none;border:none;padding:0;}
/* bof images */
.mega-menu .imgshadow_light {padding:4px;border:0px solid #000;margin-top:1px;margin-left:2px;}
/* bof standard lists styles */
.mega-menu li ul {list-style:none;padding:0;margin:0 0 12px 0;}
.mega-menu li ul li {font-size:12px;line-height:24px;position:relative;padding:0;margin:0;float:left;text-align:left;width:145px;}
.mega-menu li ul li a {padding:0;font-weight:normal;}
.mega-menu li ul li:hover {background:none;border:none;padding:0;margin:0;}
/* bof 2 levels drop down */
.mega-menu .levels, .mega-menu .levels ul {/* all lists */padding: 0;margin: 0;list-style: none;}
.mega-menu li:hover .levels a {display:block;}
.mega-menu .levels a {display: block;width: 10em;font-weight:normal;}
.mega-menu .levels a.parent, .mega-menu .levels a.parent:hover {}
.mega-menu .levels li {float: left;width:150px;}
.mega-menu .levels li ul {/* second-level lists*/ position: absolute;border:0px solid #fff;background:#184b7a;/*background: -moz-linear-gradient(top, #2c2b2a, #191816);background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2c2b2a), to(#191816));background: -o-linear-gradient(top, #2c2b2a, #191816);*/top:-23px;margin:15px 0px 0px 4px;padding:6px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;border-radius: 5px;left: -999em;}
.mega-menu .levels li ul ul {top:-23px;}
.mega-menu .levels li:hover ul ul, .mega-menu .levels li:hover ul ul ul {left: -999em;}
.mega-menu .levels li:hover ul, .mega-menu .levels li li:hover ul, .mega-menu .levels li li li:hover ul {left: 142px;}
/*bof contact form*/
#contact_form label, #contact_form legend {font-size: 12px;font-family:Arial, Helvetica, sans-serif;color:#fffffc;}
#contact_form legend {margin-bottom:10px;}
#contact_form {display: block;margin-bottom:10px;}
#contact_form label {display: inline-block;float: left;height: 36px;line-height: 36px;width:80px;font-size:12px;}
#contact_form input, #contact_form textarea, #contact_form select {color:#232323;width:190px;padding: 5px;border:0px solid #58a0af;font-size:12px;}
#contact_form textarea {resize:none;}
#contact_form input:focus, textarea:focus, select:focus {border:0px solid #fff;background-color:#efe8ec;}
#contact_form .required {color:#c00;}
#contact_form .form_buttons {margin:4px 0 0 80px;}
#contact_form .special {display:none;}
#contact_form .error, #contact_form .sent {font-size:11px;padding:2px 5px 2px 5px;text-shadow:none;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius: 3px;}
#contact_form .error {background:#fbe5e2;border:1px solid #f2a197;color:#992213;}
#contact_form .sent {background:#e1f8cc;border:1px solid #c6d880;color:#37620d;}
#contact_form input.button {width: 80px;margin-right:10px;cursor: pointer;background-color:#3a88d5;border:0px solid #0a0a0a;color:#fff;padding: 4px 7px 4px 7px;float:right;}
#contact_form input.button:hover {color:#fffffc;background-color:#000;border:0px solid #000;}
/*bof menu colors*/
.menu_red {background: #fff;/*(url(../images/menu-bk.png) repeat-x;*/height:45px;}
.menu_red li:hover div a {color:#fffffd;}
.menu_red li:hover div a:hover {color:#3a89d6;text-decoration:underline;}
.menu_red li ul li a:hover {color:#7ec3d4;text-decoration:underline;}
/*bof customer service*/
.mega-payments{float:left;}
.mega-confidence{float:right;width:60%;}
.mega-about{float:left;width:60%;}
.mega-right{float:right;position: relative;margin-left: 10px;width:145px;}
Try changing the xhtml to this:
Code:
<li class="quicklinks-li"><a class="drop" href="/">Home</a></li>
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
lol! I was trying to replace the first class with the second, instead of just adding it. I can be so thick sometimes. :)
That fixes my minor problem (thanks!!!), but I'm still lost about the second (how to round out the bottom corners). What I've done in the past is:
1. Duplicate the base style in css, then rename.
2. Rename my calling tag to match the duplicated style.
3. Then make changes to the new style, knowing it will not effect anything else.
Problem is that this style (set of styles) is a lot more complicated and harder for me to follow than those I've done before.
Thank you so much for the help! Must be tough to support templates, everybody has such different visions and skill levels!
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Feznizzle
lol! I was trying to replace the first class with the second, instead of just adding it. I can be so thick sometimes. :)
That fixes my minor problem (thanks!!!), but I'm still lost about the second (how to round out the bottom corners). What I've done in the past is:
1. Duplicate the base style in css, then rename.
2. Rename my calling tag to match the duplicated style.
3. Then make changes to the new style, knowing it will not effect anything else.
Problem is that this style (set of styles) is a lot more complicated and harder for me to follow than those I've done before.
Thank you so much for the help! Must be tough to support templates, everybody has such different visions and skill levels!
Try adding this:
Code:
.mega-menu .quicklinks-li:hover{-moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Thank you, thank you, thank you!
:hug:
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Feznizzle
Thank you, thank you, thank you!
:hug:
No problem ;)
Thanks,
Anne
-
3 Attachment(s)
Re: Sheffield Blue Template Support Thread
Hello,
This looks like a great template to work with.
I have uploaded it but there seems to be a couple of problems with my layout.
1: The shopping cart is not displaying th correct information
2: The text is out of alignment
3: The images in the right hand colmn are out of alignment.
Any help from anyone would be appreciated.
I am assuming that I have maybe missed a step in the install.
Cheers
Attachment 12793Attachment 12794Attachment 12795
-
Re: Sheffield Blue Template Support Thread
-
Re: Sheffield Blue Template Support Thread
Thanks Anne. I feel so dumb.
It is working now.
But just one thing is now working. It's the cart in the header. What have I missed there?
Steve
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
rocknet
Hello,
This looks like a great template to work with.
I have uploaded it but there seems to be a couple of problems with my layout.
1: The shopping cart is not displaying th correct information
2: The text is out of alignment
3: The images in the right hand colmn are out of alignment.
Any help from anyone would be appreciated.
I am assuming that I have maybe missed a step in the install.
Cheers
Attachment 12793Attachment 12794Attachment 12795
If you post a link to your site I can take a look.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hello Anne, thanks for the awesome template !
I was trying to change the height of the slide show but i cant find the way to do it, your help will be really appreciated.
-
Re: Sheffield Blue Template Support Thread
Here is my site: http://ciscotraining-kherson.com/?language=en
Love this template! I have added the Russian language pack and all is well. Wondering if you could tell me how to fix it so the slider appears in Russian in the Russian language mode. We have created separate graphics in Russian but not sure how to make it display only when on the Russian language side....
Thanks again for a great template!
Amy
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
fjej1970
Hello Anne, thanks for the awesome template !
I was trying to change the height of the slide show but i cant find the way to do it, your help will be really appreciated.
I am happy that you like the template. There are instructions for using slides with different dimensions in the readme.html file included in the template package.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hi anne,
I meant to say that 'only one thing is not working' now. I had mistyped and said 'only one thing is now working'.
My one problem seems to have been raised on post number 13.
I am getting this output in the header...
count_contents();?> item(s) - format($_SESSION['cart']->show_total());?> |
Checkout
I have not yet tried the solution quoted in post number. Just wondering what the correct solution is.
I haven't got my site online yet... Just testing on localhost at the moment.
Steve
Quote:
Originally Posted by
picaflor-azul
If you post a link to your site I can take a look.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
If you see Anne's response, you'll see that the solution in post #13 is right
Quote:
Originally Posted by
rocknet
Hi anne,
I meant to say that 'only one thing is not working' now. I had mistyped and said 'only one thing is now working'.
My one problem seems to have been raised on post number 13.
I am getting this output in the header...
count_contents();?> item(s) - format($_SESSION['cart']->show_total());?> |
Checkout
I have not yet tried the solution quoted in post number. Just wondering what the correct solution is.
I haven't got my site online yet... Just testing on localhost at the moment.
Steve
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
rocknet
Hi anne,
I meant to say that 'only one thing is not working' now. I had mistyped and said 'only one thing is now working'.
My one problem seems to have been raised on post number 13.
I am getting this output in the header...
count_contents();?> item(s) - format($_SESSION['cart']->show_total());?> |
Checkout
I have not yet tried the solution quoted in post number. Just wondering what the correct solution is.
I haven't got my site online yet... Just testing on localhost at the moment.
Steve
I have this on my list for a future update ;) If you follow the instructions in the previous post, all will be well.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
I am happy that you like the template. There are instructions for using slides with different dimensions in the readme.html file included in the template package.
Thanks,
Anne
Thank for our reply, i did follow what the readme file states but the stylesheet.ccs its not the file that has the silder dimensions i found it on stylesheet_slides.ccs but after changing the height nothing happent.
i changed this:
#container {width:980px;padding:10px;margin:0 auto;position:relative;z-index:0;margin-bottom:20px;}
#example {width:980px;height:250px;position:relative;}
#slides {position:absolute;top:0px;left:4px;z-index:100;}
.slides_container {width:980px;overflow:hidden;position:relative;display:none;}
.slides_container a {width:980px;height:250px;display:block;}
into this:
#container {width:400px;padding:10px;margin:0 auto;position:relative;z-index:0;margin-bottom:20px;}
#example {width:400px;height:300px;position:relative;}
#slides {position:absolute;top:0px;left:4px;z-index:100;}
.slides_container {width:400px;overflow:hidden;position:relative;display:none;}
.slides_container a {width:400px;height:300px;display:block;}
and nothing happent.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Doodlebuckets
Here is my site:
http://ciscotraining-kherson.com/?language=en
Love this template! I have added the Russian language pack and all is well. Wondering if you could tell me how to fix it so the slider appears in Russian in the Russian language mode. We have created separate graphics in Russian but not sure how to make it display only when on the Russian language side....
Thanks again for a great template!
Amy
Is this something you can help with? Thanks, Amy
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
fjej1970
Thank for our reply, i did follow what the readme file states but the stylesheet.ccs its not the file that has the silder dimensions i found it on stylesheet_slides.ccs but after changing the height nothing happent.
i changed this:
#container {width:980px;padding:10px;margin:0 auto;position:relative;z-index:0;margin-bottom:20px;}
#example {width:980px;height:250px;position:relative;}
#slides {position:absolute;top:0px;left:4px;z-index:100;}
.slides_container {width:980px;overflow:hidden;position:relative;display:none;}
.slides_container a {width:980px;height:250px;display:block;}
into this:
#container {width:400px;padding:10px;margin:0 auto;position:relative;z-index:0;margin-bottom:20px;}
#example {width:400px;height:300px;position:relative;}
#slides {position:absolute;top:0px;left:4px;z-index:100;}
.slides_container {width:400px;overflow:hidden;position:relative;display:none;}
.slides_container a {width:400px;height:300px;display:block;}
and nothing happent.
If you a link to your site I can take a look ;)
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hello !! i was playing with the Drop Down menu and i found in the readme file that its possible to hide some of them but the one i like to hide/remove its not mentioned in the readme file. I would like to hide/remove the " Service " tab Drop down menu. Is it possible? and if its possible to include a home tab.
Thanks !
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
fjej1970
Hello !! i was playing with the Drop Down menu and i found in the readme file that its possible to hide some of them but the one i like to hide/remove its not mentioned in the readme file. I would like to hide/remove the " Service " tab Drop down menu. Is it possible? and if its possible to include a home tab.
Thanks !
You need to use the .customer-service class to hide this drop down.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hello,
I like your template and am trying to remove the pointers in the side menus.
what is the best way to do this please.
Thanks
Steve
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
rocknet
Hello,
I like your template and am trying to remove the pointers in the side menus.
what is the best way to do this please.
Thanks
Steve
I used the BetterCategoriesEZInfo module for the sideboxes. Take a look at this module for information about removing the bullets. You could also just put a display:none; on the bullet image ;)
Thanks,
Anne
-
product pages dissapeared
setting up my first store with this wonderful template. I've been modifying the look of my store based on this forum. somewhere i messed up - now any of my categories that have products in them show a blank page when clicked on. if i add a new empty category you can click on it and go to a page that says no products, like it should. any ideas what i did?
http://store.fawcettengineering.com/
-
Re: product pages dissapeared
Quote:
Originally Posted by
fawcetteng
setting up my first store with this wonderful template. I've been modifying the look of my store based on this forum. somewhere i messed up - now any of my categories that have products in them show a blank page when clicked on. if i add a new empty category you can click on it and go to a page that says no products, like it should. any ideas what i did?
http://store.fawcettengineering.com/
If you have a blank page or part of a blank page, check your logs folder for error logs and correct the problems you see there ;)
Thanks,
Anne
-
Re: product pages dissapeared
Quote:
Originally Posted by
picaflor-azul
If you have a blank page or part of a blank page, check your logs folder for error logs and correct the problems you see there ;)
Thanks,
Anne
thank you! my first time to use a logs file! worked perfect - told me i had something wrong with the headermenu.php, so i grabbed the original, remodified my text for it, and uploaded it. now it works
-
hide service menu?
where exactly do i put the .customerservice-li{display:none;} to hide the service menu in the blue menu bar? i see several references to hiding this in this thread but no complete answer. i have the following in my stylesheet_mega_menu but it still shows up: (for that matter, the social sidebar also shows up which i have been trying to get rid of):
/*bof customer service*/
.mega-payments{float:left;}
.mega-confidence{float:right;width:60%;}
.mega-about{float:left;width:70%;}
.mega-right{float:right;position: relative;margin-left: 10px;width:145px;}.manufacturers-li{display:none;}
.customerservice-li{display:none;}
.sidebar{display:none;}
-
Re: product pages dissapeared
Quote:
Originally Posted by
fawcetteng
thank you! my first time to use a logs file! worked perfect - told me i had something wrong with the headermenu.php, so i grabbed the original, remodified my text for it, and uploaded it. now it works
I am happy that you figured it out ;)
Thanks,
Anne
-
Re: hide service menu?
Quote:
Originally Posted by
fawcetteng
where exactly do i put the .customerservice-li{display:none;} to hide the service menu in the blue menu bar? i see several references to hiding this in this thread but no complete answer. i have the following in my stylesheet_mega_menu but it still shows up: (for that matter, the social sidebar also shows up which i have been trying to get rid of):
/*bof customer service*/
.mega-payments{float:left;}
.mega-confidence{float:right;width:60%;}
.mega-about{float:left;width:70%;}
.mega-right{float:right;position: relative;margin-left: 10px;width:145px;}.manufacturers-li{display:none;}
.customerservice-li{display:none;}
.sidebar{display:none;}
You can just add it to the bottom of the stylesheet_meag_menu.php file.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
-
Re: hide service menu?
the code sample is my stylesheet_mega_menu.css file, but the menu item still shows. You did mean .css and not .php, correct? Or is that what I am doing wrong?
Quote:
Originally Posted by
picaflor-azul
You can just add it to the bottom of the stylesheet_meag_menu.php file.
Thanks,
Anne
-
Re: hide service menu?
Quote:
Originally Posted by
fawcetteng
the code sample is my stylesheet_mega_menu.css file, but the menu item still shows. You did mean .css and not .php, correct? Or is that what I am doing wrong?
No, I meant .css. If you post a link to your site I can take a look.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
I have IH4 installed and was wondering how I could go about getting my additional images to be under the main product image instead of at the bottom of the page.
Thanks.
-
Re: Sheffield Blue Template Support Thread
Hi Anne
I had a quick question in regards to incorporating rich snippets for the reviews on the products of my website. I Currently use this template and I am having a hard time locating where exactly the products review page is located at in the hierarchy of your template.
Here is a thread related to what I am trying to do..
http://www.zen-cart.com/showthread.p...de-help-needed
My site is thefriendlyvapor.com
Also not a big deal but the tell a friend link disappeared on the product pages maybe in the process of me doing something or it may have never been from the beginning I just noticed it though.
Any help you could give me would be greatly appreciated
Thanks in advanced
Ray :smoke:
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
DJLQD
I have IH4 installed and was wondering how I could go about getting my additional images to be under the main product image instead of at the bottom of the page.
Thanks.
You can edit the includes/templates/sheffield_blue/templates/tpl_product_info_display.php file. You may also need to make some adjustments in the css.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
brebix
Hi Anne
I had a quick question in regards to incorporating rich snippets for the reviews on the products of my website. I Currently use this template and I am having a hard time locating where exactly the products review page is located at in the hierarchy of your template.
Here is a thread related to what I am trying to do..
http://www.zen-cart.com/showthread.p...de-help-needed
My site is
thefriendlyvapor.com
Also not a big deal but the tell a friend link disappeared on the product pages maybe in the process of me doing something or it may have never been from the beginning I just noticed it though.
Any help you could give me would be greatly appreciated
Thanks in advanced
Ray :smoke:
You can locate any file that you need to edit by doing a search in the admin--tools--developers toolkit.
The tell a friend feature has been removed in version 1.5x.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Can you point me to where the date format string is set please? On my default template I can register fine, but when using sheffield blue I get an error that the DOB is in the wrong format, but it suggests the format I want :)
I've obviously changed the define texts but missed where the actual date format string is set.
I need it to be in UK format dd/mm/yyyy
Thanks. Great template!
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
CunningStunt
Can you point me to where the date format string is set please? On my default template I can register fine, but when using sheffield blue I get an error that the DOB is in the wrong format, but it suggests the format I want :)
I've obviously changed the define texts but missed where the actual date format string is set.
I need it to be in UK format dd/mm/yyyy
Thanks. Great template!
If you do a search of the faqs section you will see a tutorial for how to do this ;)
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
You can edit the includes/templates/sheffield_blue/templates/tpl_product_info_display.php file. You may also need to make some adjustments in the css.
Thanks,
Anne
Thanks for the quick response however I am only able to locate the review code in the default template using the method you recommend. Where is the reviews defined in your template?
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
brebix
Thanks for the quick response however I am only able to locate the review code in the default template using the method you recommend. Where is the reviews defined in your template?
never mind thanks
-
Re: Sheffield Blue Template Support Thread
Hi,
How do I remove the Home Page Slider Show and the media logos from my store? I found your help pages for adding and reducing the number of images but not how to remove the complete feature which is not appropriate for my store. Your help would be appreciated.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
brebix
never mind thanks
I am happy that you figured it out ;) The sections in the tpl_product_info_display.php are well commented by the core deveolopers to make it easier to locate which code controls which element.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
vesuvians
Hi,
How do I remove the Home Page Slider Show and the media logos from my store? I found your help pages for adding and reducing the number of images but not how to remove the complete feature which is not appropriate for my store. Your help would be appreciated.
One way is to remove the call for the slide show in the tpl_main_page.php file:
Code:
<?php
if ($this_is_home_page) {
?>
<div id="home-banner"><?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_home_slider.php');?></div>
<?php
}
?>
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
One way is to remove the call for the slide show in the tpl_main_page.php file:
Code:
<?php
if ($this_is_home_page) {
?>
<div id="home-banner"><?php require($template->get_template_dir('tpl_home_slider.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_home_slider.php');?></div>
<?php
}
?>
Thanks,
Anne
Hi Anne,
I removed the code from the /common/tpl__main_page.php file but the Mega Menu now sits under the top of the main page - please see http://www.phillumeny.eu How can I resolve this new problem please?
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
vesuvians
Hi Anne,
I removed the code from the /common/tpl__main_page.php file but the Mega Menu now sits under the top of the main page - please see
http://www.phillumeny.eu How can I resolve this new problem please?
Additional Info: It appears that this problem only affects the Home Page - The other pages load in the correct manner!
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
vesuvians
Additional Info: It appears that this problem only affects the Home Page - The other pages load in the correct manner!
In the index_home.css file change to this:
Code:
#content-container {margin-top: 40px;}
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
vesuvians
Thanks Anne - Looks Good
I am happy that it worked ;)
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Hi Anne
I hope you are well? The website is slowly picking up now that we are advertising in national 'enthusiast' magazines here in the UK. Feedback from everyone is that they love the template and design.
Are you able to help me as to where I'd need to put the code (or similar code if you know a better way) for putting a live date/time ideally alongside 'Contact Us' and 'Service' on the menu bar on the site?
http://www.dynamicdrive.com/dynamicindex6/clock3.htm
I look forward to hearing from you.
Mark
www.johnwoodsmotorcare.net
-
Re: Sheffield Blue Template Support Thread
Thanks for the template...I am installing for someone else. Is there a way to have the actual "new products" etc show products without having to click the module tab? Like it opens with products automatically.
Thanks.
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Purecarsound
Hi Anne
I hope you are well? The website is slowly picking up now that we are advertising in national 'enthusiast' magazines here in the UK. Feedback from everyone is that they love the template and design.
Are you able to help me as to where I'd need to put the code (or similar code if you know a better way) for putting a live date/time ideally alongside 'Contact Us' and 'Service' on the menu bar on the site?
http://www.dynamicdrive.com/dynamicindex6/clock3.htm
I look forward to hearing from you.
Mark
www.johnwoodsmotorcare.net
This should help get you started http://www.zen-cart.com/downloads.php?do=file&id=1734
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
Purecarsound
Hi Anne
I hope you are well? The website is slowly picking up now that we are advertising in national 'enthusiast' magazines here in the UK. Feedback from everyone is that they love the template and design.
Are you able to help me as to where I'd need to put the code (or similar code if you know a better way) for putting a live date/time ideally alongside 'Contact Us' and 'Service' on the menu bar on the site?
http://www.dynamicdrive.com/dynamicindex6/clock3.htm
I look forward to hearing from you.
Mark
www.johnwoodsmotorcare.net
If you want to add things to the mega menu, you can edit the includes/templates/sheffield_blue/common/tpl_mega_menu.css.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
amandavz
Thanks for the template...I am installing for someone else. Is there a way to have the actual "new products" etc show products without having to click the module tab? Like it opens with products automatically.
Thanks.
See this:
http://www.zen-cart.com/showthread.p...72#post1134272
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picandnix
Great idea! Thank you for posting the link to the plugin.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
picaflor-azul
Great idea! Thank you for posting the link to the plugin.
Thanks,
Anne
Simple but 'smart' I thought, glad you like :smile:
-
2 Attachment(s)
Re: Sheffield Blue Template Support Thread
I just established a new site with 1.5.1, and am having a wierd display problem with Internet Explorer. In some versions, (1) part of the header becomes transparent (i.e. blue rather than white), (2) the headings on the side bars (categories/reviews/etc.) overlap the content below so you can't click on the link or object below the header, and (3) if you go to any of the product pages on the site, the menu bar and whole page moves up and covers a portion of the header.
It seems to work properly in IE 8.0, but if I enter compatibilty mode or use IE 9, the header and menus appear to break.
I have included some pictures. My site is bp-games.com.
Do you have any idea what could be causing this (or what I did to break it)?
Attachment 13040
Attachment 13041
Thanks in advance!
-
Re: Sheffield Blue Template Support Thread
Quote:
Originally Posted by
bpryor1
I just established a new site with 1.5.1, and am having a wierd display problem with Internet Explorer. In some versions, (1) part of the header becomes transparent (i.e. blue rather than white), (2) the headings on the side bars (categories/reviews/etc.) overlap the content below so you can't click on the link or object below the header, and (3) if you go to any of the product pages on the site, the menu bar and whole page moves up and covers a portion of the header.
It seems to work properly in IE 8.0, but if I enter compatibilty mode or use IE 9, the header and menus appear to break.
I have included some pictures. My site is bp-games.com.
Do you have any idea what could be causing this (or what I did to break it)?
Attachment 13040
Attachment 13041
Thanks in advance!
I have no idea why compatibility mode is breaking. As far as I am aware, there is no way to isolate for compatibility mode. The template is not cross browser tested in ie compatibility mode.
Thanks,
Anne
-
Re: Sheffield Blue Template Support Thread
Thanks for the quick reply, Anne! My issue isn't as much compatibility mode as it is IE9. I mentioned compatibility mode only because I thought it was interesting/possibly relevant that on IE 8 everything worked but went wonky when I entered compatibility mode.
At one point, I had everything working in IE9. Then, all of a sudden, it started displaying like you can see in the pictures. I assume that I did something to cause that, but I don't recall changing anything of note around the time it started happening.
When you load the site in IE, does it display properly for you? Do you know what might cause the heading and title blocks to overlap like that?