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

Dawn Howard 05-19-2006 11:50 AM

Tabs
 
This seems so stupid, but I can't figure out why this is happening. I edited tabs.tpl to make my own top menu, very simple html image links, but the results repeat the image links 3 times. help?

salsabeel 05-19-2006 12:07 PM

Dawn, I'm sure someone can help you better if you can provide us with a screenshot, URL, or even the code you have written in tabs.tpl and any other template file you have edited.

Dawn Howard 05-19-2006 12:19 PM

tab.tpl


Thanks!

salsabeel 05-19-2006 12:22 PM

Glancing at the code I think the problem is you are not putting the image in quotes on the IMG SRC.

So, for example, try to replace it with this:

Code:

<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>

<TD>[img]http://www.duffystric.com/Demo/home.jpg[/img]
</TD>
<TD>
[img]http://www.duffystric.com/Demo/onlinecatalog.jpg[/img]
</TD>
<TD>
[img]http://www.duffystric.com/Demo/contactus.jpg[/img]
</TD>
</TR>
</TABLE>


Let me know if that fixes it!

Dawn Howard 05-19-2006 12:30 PM

I don't have " the begining of the IMG SRC tag either, but I corrected all my opening and closes, even thought that isn't a problem normally

Code:

<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>

<TD>[img]http://www.duffystric.com/Demo/home.jpg[/img]
</TD>
<TD>
[img]http://www.duffystric.com/Demo/onlinecatalog.jpg[/img]
</TD>
<TD>
[img]http://www.duffystric.com/Demo/contactus.jpg[/img]
</TD>
</TR>
</TABLE>


I really don't think the tab.tpl fiel is the issue, but I don't know what file is.

Dawn Howard 05-22-2006 07:26 AM

It's a little hard to post a screen shot because this issue stretches my store out, but here we go.


http://www.duffystric.com/screen1.jpg


http://www.duffystric.com/screen2.jpg

The speedbar repeats it's self 3 times. Any ideas?

amy2203 05-22-2006 10:52 PM

The tab.tpl is called each time there is an item in the speedbar.

In your case you have 3 items, Home, Online Store, Contact Us and tab.tpl is being called each time and displaying all three each time.

I hope this makes sense...

I don't know a way to replace the tabs with images completely as they are dynamically generated by the speedbar settings. I expect most people use either css styled links (I do) or a generic background image that has the dynamic text applied over the top.

hth

Dawn Howard 05-23-2006 05:30 AM

That was it - thanks! I removed all but one item on the speedbar, even though the link isn't being used, and it works.

amy2203 05-23-2006 06:17 AM

You could also create a new tpl and call that instead of the tab.tpl,

mffowler 05-23-2006 01:35 PM

I know that one of the X-Cart skin sets (fashion mosaic) uses code to call little icons next to a link. Basically, it's a code that says "if this is a link to X, then show this icon" and it displays it next to the link.

Anything is possible, but I reckon you'd be better off just coding your own tabs and ditch the XC code.

- Mike


All times are GMT -8. The time now is 10:29 AM.

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