X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Menu Dingbats (https://forum.x-cart.com/showthread.php?t=46418)

Xel 03-20-2009 08:43 AM

Menu Dingbats
 
Ok, so I've been customizing my menu (left column) of my site and everything is fine except one oddity:

The dingbat for my Help section is the same as my authentication / affiliate section (I.e green), when the actual image it should pull is orange.

Steps I have taken and relevant info:
-The actual image file (dingbats_Help.gif) is correct; i.e. orange.

skin1/customer/help/menu.tpl looks like this:
Code:

{*
$Id: menu.tpl,v 1.4 2008/11/14 12:32:21 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}
{strip}
  <ul>
    <li><a href="help.php?section=contactus&mode=update">{$lng.lbl_contact_us}</a></li>
    {foreach from=$pages_menu item=p}
      {if $p.show_in_menu eq 'Y'}
        <li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp}</a></li>
      {/if}
    {/foreach}
  </ul>
{/strip}
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_help content=$smarty.capture.menu link_href="help.php" additional_class="menu-help"}


skin1/customer/menu_dialog.tpl looks like this:
Code:

{*
$Id: menu_dialog.tpl,v 1.4 2008/11/24 09:23:19 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{*** Added If menu-auth and if login to space auth box ***}
<div class="menu-dialog{if $additional_class} {$additional_class}{/if}">
        <div class="title-bar valign-middle">
    {strip}
    <img class="icon" src="{$ImagesDir}/spacer.gif" alt="{$title|escape}" />
    {$title}
    {if $link_href}
      <a href="{$link_href}"><img src="{$ImagesDir}/spacer.gif" alt=""  /></a>
    {/if}
    {/strip}
        </div>
{if $additional_class eq "menu-auth"}
{if $login eq ""}
<div><br /></div>
{/if}
<div class="content2">
    {$content}
  </div>
{else}
  <div class="content">
    {$content}
  </div>
</div>
{/if}


skin1/main.css snippet:
Code:

/*
help menu
*/
.menu-help .title-bar img.icon { background: url(images/dingbats_help.gif) no-repeat; }
/*


Code:

/*        menu Box title        */
.menu-dialog { padding: 0; margin: 0; }
.menu-dialog .title-bar { width: 100%; white-space: nowrap; border-bottom: 1px solid #fff; color: #fff; background: #2F3440; font-weight: bold; padding: 2px 5px 2px 0; overflow: hidden; position: relative; }
.menu-dialog .title-bar img.icon { margin: 2px 7px 2px 7px; width: 21px; vertical-align: middle; height: 20px; }
.menu-dialog .title-bar a:link,
.menu-dialog .title-bar a:visited,
.menu-dialog .title-bar a:hover,
.menu-dialog .title-bar a:active { display: block; text-decoration: none; position: absolute; top: 7px; right: 7px; }
.rtl .menu-dialog .title-bar a:link,
.rtl .menu-dialog .title-bar a:visited,
.rtl .menu-dialog .title-bar a:hover,
.rtl .menu-dialog .title-bar a:active { right: auto; left: 7px; }
.menu-dialog .title-bar a:link img,
.menu-dialog .title-bar a:visited img,
.menu-dialog .title-bar a:hover img,
.menu-dialog .title-bar a:active img { width: 7px; background: transparent url(images/menu_arrow.gif) no-repeat left top; height: 11px; }
.rtl .menu-dialog .title-bar a:link img,
.rtl .menu-dialog .title-bar a:visited img,
.rtl .menu-dialog .title-bar a:hover img,
.rtl .menu-dialog .title-bar a:active img { background: transparent url(images/menu_arrow_invert.gif) no-repeat left top; }


Any ideas?

Victor D 03-23-2009 12:56 AM

Re: Menu Dingbats
 
do you have both dingbats_Help.gif and dingbats_help.gif?

according to this
.menu-help .title-bar img.icon { background: url(images/dingbats_help.gif) no-repeat; }

this image name should be written in lowercase
Also I believe that for 4.2.0 Templates editing there is a separate forum.

Xel 03-23-2009 02:57 AM

Re: Menu Dingbats
 
It is dingbats_help, no caps. Sorry. If this is in the wrong forum I apologize, didn't know.

balinor 03-23-2009 02:58 AM

Re: Menu Dingbats
 
Moved to 4.2 forum

Victor D 03-23-2009 03:25 AM

Re: Menu Dingbats
 
So entering in browser URL your_domain/skin1/images/dingbats_help.gif you see correct image?

Xel 03-24-2009 03:29 AM

Re: Menu Dingbats
 
Quote:

Originally Posted by Victor D
So entering in browser URL your_domain/skin1/images/dingbats_help.gif you see correct image?


Yep. Which of course leads me to believe it is referencing a different image somewhere, but I can't for the life of me discern where :lol:

Victor D 03-24-2009 03:41 AM

Re: Menu Dingbats
 
It is possible due to overriding CSS rule for menu-help with more specific one.

Try to change
Code:

.menu-help .title-bar img.icon { background: url(images/dingbats_help.gif) no-repeat; }

to
Code:

#left-bar .menu-help .title-bar img.icon { background: url(images/dingbats_help.gif) no-repeat; }

Xel 03-24-2009 06:04 AM

Re: Menu Dingbats
 
Didn't help =/ thanks anyways.

I have bigger issues at this point anyways, I plan to move my site from one domain to another, so i switched the ssl to the new site. Unfortunately now I cannot log into the admin side (was using secure login) :lol:
***EDIT***
Found the correct DB entry, I'm back in my own store :lol:

Victor D 03-24-2009 06:29 AM

Re: Menu Dingbats
 
Please PM me your store URL or post it here I'll try to investigate this right in place.

Xel 03-24-2009 07:18 AM

Re: Menu Dingbats
 
Thanks for taking an interest in it.

www.speartech.net/shop/home.php?shopkey=testing

you'll see it on the left there (green when it should be red)


All times are GMT -8. The time now is 03:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.