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

Speed Bar: Get rid of quote signs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-10-2008, 04:37 AM
 
byte_eater byte_eater is offline
 

Member
  
Join Date: Nov 2007
Posts: 13
 

Default SOLVED! Speed Bar: Get rid of quote signs

Hello to Everyone!

I had a problem lately with speed bar text display. It's including the text of the button in quotes like: "Contact Us" or "About Us"... How do I get rid of this "" signs?

thank you for you time!
__________________
-
X-Cart Gold v4.1.9
Reply With Quote
  #2  
Old 02-10-2008, 10:15 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Speed Bar: Get rid of quote signs

Hmm odd...

Have you tried going into admin and looking at the speed bar page (admin/speed_bar.php). Do they have quotes or html-encoded wrapping surrounding the link titles in there?

If you have modified the link yourself outside of x-cart then the .tpl to look at is skin1/customer/top_menu.tpl ...

And this is the original 4.1.9 stock code for the speed bar that affects that point...
<td valign="top">{include file="customer/tab.tpl" tab_title="<a href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</a>"}</td>

If the latter is involved then you may have added an extra " by accident around the <a href=\" part.

Not sure if this helps & Remember to back up.
Regards,
Doms
__________________
Doms
kube v4.1.9
Reply With Quote
  #3  
Old 02-10-2008, 10:49 AM
 
byte_eater byte_eater is offline
 

Member
  
Join Date: Nov 2007
Posts: 13
 

Default Re: Speed Bar: Get rid of quote signs

everything is clean, and still confused...
you know, this weird quote signs aren't even inside the link.... only the text is linkable....

any other ideas why it could be so? pleeeaaassssse.
__________________
-
X-Cart Gold v4.1.9
Reply With Quote
  #4  
Old 02-10-2008, 11:02 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Speed Bar: Get rid of quote signs

Can you show us the resulting source from your site (directly from your browser), please. Something like this (include all TDs pertaining to the one link say, Contact Us link)...

<td class="TabLeftSide"><img src="/skin1/images/spacer.gif" class="TabSide" alt="" /></td>
<td class="Tab"><a href="help.php?section=contactus&amp;mode=update"> Contact Us</a></td>
<td class="TabRightSide"><img src="/skin1/images/spacer.gif" class="TabSide" alt="" /></td>

Also have you modified the cart in any way? Have you purchased a skin, for example? Or a URL modifier?

Regards,
Doms
__________________
Doms
kube v4.1.9
Reply With Quote
  #5  
Old 02-10-2008, 11:24 AM
 
byte_eater byte_eater is offline
 

Member
  
Join Date: Nov 2007
Posts: 13
 

Default Re: Speed Bar: Get rid of quote signs

Yes I modified it but tryied to be carefull. I'm transforming the code into a table-less layout design.

So, here is the part of html generated for speed_bar

Code:
<div id="quick_links"> <ul> <li>"<a href=\"#\" class="speed">About Exuma</a>"</li> <li>"<a href=\"#\" class="speed">Articles</a>"</li> <li>"<a href=\"help.php?section=contactus&amp;mode=update\" class="speed">Contact Us</a>"</li> </ul> <br class="clear" /> </div>



This is from top_menu.tpl

Code:
{if $printable ne ''} {include file="customer/top_menu_printable.tpl"} {else} <ul> {if $speed_bar} {section name=sb loop=$speed_bar} {if $speed_bar[sb].active eq "Y"} <li> {include file="customer/tab.tpl" tab_title="<a href=\"`$speed_bar[sb].link`\" class="speed">`$speed_bar[sb].title`</a>"} </li> {/if} {/section} {/if} </ul> {/if} <br class="clear" />


and this is from tab.tpl
Code:
{$tab_title}
__________________
-
X-Cart Gold v4.1.9
Reply With Quote
  #6  
Old 02-10-2008, 11:34 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Speed Bar: Get rid of quote signs

Ah okay you haven't escaped the "" from parsing. As the link is going through to customer/tab.tpl as $tab_title...

where you have
class="speed"

it should be class=\"speed\"

Hope this helps.
Regards,
Doms
__________________
Doms
kube v4.1.9
Reply With Quote
  #7  
Old 02-10-2008, 11:53 AM
 
byte_eater byte_eater is offline
 

Member
  
Join Date: Nov 2007
Posts: 13
 

Default Re: Speed Bar: Get rid of quote signs

Thank you soo much! So much effort lost.... but I'm not very familiar with x-cart!
Thanks one again! It was the unescaped ""
__________________
-
X-Cart Gold v4.1.9
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:57 AM.

   

 
X-Cart forums © 2001-2020