Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Speedbar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-31-2007, 07:37 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Speedbar

Is there any way to make the Speedbar invisible? I don't want it gone altogether, but a Mod I'm wanting to use copies the links from it, so there's no point having two of them.

Cheers.
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #2  
Old 01-31-2007, 08:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Speedbar

Just comment out the code in your head.tpl or whatever template controls it in the 4.1 branch...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-31-2007, 08:35 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Speedbar

Looks like it's customer/speed_bar.tpl
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #4  
Old 11-13-2007, 03:24 AM
 
SRD SRD is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 88
 

Default Re: Speedbar

Bump.

My speedbar is not displaying at all.

I wanted to change how it displays, so I've edited customer\top_menu.tpl.

After making this change, the speedbar failed to display at all. Restoring a backup fails to fix this (which escapes any logic that I can see).

customer\home.tpl correctly includes customer\top_menu.tpl, and the debug console shows the file as being included properly also.

the problem is that the smarty code below is not working

{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "YN"}
<TD width="14"><IMG src="{$ImagesDir}/speedbar_dividers.gif" width="14" height="14" border="0" alt=""></TD>
<TD valign="top"><A href="{$speed_bar[sb].link}"><strong><font color="#FFFFFF">{$speed_bar[sb].title}</font></strong></A></TD>
<TD width="8"><IMG src="{$ImagesDir}/spacer.gif" width="8" height="14" border="0" alt=""></TD>
{/if}

It generates nothing if I place it directly in customer/home.tpl.

Ideas?
__________________
X-Cart version 4.4
PHP 5.2.5
MySQL 5.0.27
Reply With Quote
  #5  
Old 11-13-2007, 03:50 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Speedbar

{if $speed_bar[sb].active eq "YN"} is not valid. "YN" is not an option. This should be "Y" (for YES).
Reply With Quote
  #6  
Old 11-13-2007, 06:11 AM
 
SRD SRD is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 88
 

Default Re: Speedbar

Pure Genius. Thanks.
__________________
X-Cart version 4.4
PHP 5.2.5
MySQL 5.0.27
Reply With Quote
  #7  
Old 11-13-2007, 06:20 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Speedbar

Quote:
Originally Posted by SRD
the problem is that the smarty code below is not working

{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "YN"}
<TD width="14"><IMG src="{$ImagesDir}/speedbar_dividers.gif" width="14" height="14" border="0" alt=""></TD>
<TD valign="top"><A href="{$speed_bar[sb].link}"><strong><font color="#FFFFFF">{$speed_bar[sb].title}</font></strong></A></TD>
<TD width="8"><IMG src="{$ImagesDir}/spacer.gif" width="8" height="14" border="0" alt=""></TD>
{/if}

Where did you get this code? It's not 4.1.9 code. It's not xhtml.

1. There is no such tag as <TD> -- in 4.1.x (xhtml) all td tags should be: <td> (lowercase)

2. IMG -- same thing. lowercase. AND all images must have a closing />

Your first line should read:
Code:
<td width="14"><img src="{$ImagesDir}/speedbar_dividers.gif" width="14" height="14" border="0" alt="" /></td>

If this is a mod form version 4.0.x, you should update it. If this is 3rd party COMMERCIAL code, please name the person./company that sold it to you, since they have no business selling this code for 4.1.x
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 11-13-2007, 06:51 AM
 
SRD SRD is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 88
 

Default Re: Speedbar

Quote:
Originally Posted by carpeperdiem
Where did you get this code? It's not 4.1.9 code. It's not xhtml.

If this is 3rd party COMMERCIAL code, please name the person./company that sold it to you, since they have no business selling this code for 4.1.x

No problems.
__________________
X-Cart version 4.4
PHP 5.2.5
MySQL 5.0.27
Reply With Quote
  #9  
Old 11-13-2007, 08:09 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Speedbar

Wow. Did you buy the product while you owned 4.1 (and download the 4.1 version)? If so, open a ticket with xcart and ask them to fix this (product warranty).

Your entire skin is probably defective. I would return it and buy an xhtml compliant skin. But that's me.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:13 AM.

   

 
X-Cart forums © 2001-2020