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)
-   -   Speed Bar: Get rid of quote signs (https://forum.x-cart.com/showthread.php?t=37473)

byte_eater 02-10-2008 04:37 AM

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!

kube 02-10-2008 10:15 AM

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

byte_eater 02-10-2008 10:49 AM

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.

kube 02-10-2008 11:02 AM

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

byte_eater 02-10-2008 11:24 AM

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}

kube 02-10-2008 11:34 AM

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

byte_eater 02-10-2008 11:53 AM

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 "" :)


All times are GMT -8. The time now is 05:44 PM.

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