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)
-   -   Speedbar (https://forum.x-cart.com/showthread.php?t=28464)

just wondering 01-31-2007 07:37 AM

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.

balinor 01-31-2007 08:10 AM

Re: Speedbar
 
Just comment out the code in your head.tpl or whatever template controls it in the 4.1 branch...

just wondering 01-31-2007 08:35 AM

Re: Speedbar
 
Looks like it's customer/speed_bar.tpl

SRD 11-13-2007 03:24 AM

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?

TelaFirma 11-13-2007 03:50 AM

Re: Speedbar
 
{if $speed_bar[sb].active eq "YN"} is not valid. "YN" is not an option. This should be "Y" (for YES).

SRD 11-13-2007 06:11 AM

Re: Speedbar
 
Pure Genius. Thanks.

carpeperdiem 11-13-2007 06:20 AM

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

SRD 11-13-2007 06:51 AM

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.

carpeperdiem 11-13-2007 08:09 AM

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.


All times are GMT -8. The time now is 06:57 AM.

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