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

Adjust speed bar

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-20-2004, 03:51 AM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default Adjust speed bar

Hi,

I think the links in my speed bar are each in a different cell, centered. But i want them in one cell with a | to divide them. This way I can put them 20pix from border and they will look like this:
Home | Shopping cart | Contact us

Now they look like:
http://hobbyhandig.webfontein.nl

Can anyone help me out?
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #2  
Old 10-27-2004, 12:19 AM
 
SonnyZ SonnyZ is offline
 

Member
  
Join Date: Oct 2004
Posts: 14
 

Default

yes, i've looked for this info eveywhere and cat find it. I want mine were the search button is at but cant seem to figure it out.
__________________
X-Cart - 4.1.8
Apache/1.3.33 (Unix)
Reply With Quote
  #3  
Old 10-27-2004, 12:41 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default

checkout the following templates in V. 4.0.5

customer/tab.tpl
customer/top_menu.tpl
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote
  #4  
Old 10-27-2004, 10:30 PM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

I've looked at thoose and made changes before I posted here, but nothing seems te work... I don't know much of HTML but I'm sure I've tried the right settings. I now fooled around with blank space and left alignment, but I can't get them out of thoose 3 seperate cells.
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #5  
Old 10-30-2004, 10:57 PM
 
Yang Xu Yang Xu is offline
 

Senior Member
  
Join Date: May 2004
Location: Portland, Oregon
Posts: 175
 

Default

You may have a look at my site CartsnTools.com, I believe my speed bars look like the way you like.
__________________
Carts n Tools.com
- New Root HTML Generator
- Templates | Add-Ons | Services
- XCart 4.0.x
Reply With Quote
  #6  
Old 10-31-2004, 01:59 PM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Yes! That's what I'm talking about, how did you do this?
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #7  
Old 10-31-2004, 03:39 PM
 
Yang Xu Yang Xu is offline
 

Senior Member
  
Join Date: May 2004
Location: Portland, Oregon
Posts: 175
 

Default

1. Create a file: customer/speed_menu.tpl


{if $printable ne ''}
{include file="customer/top_menu_printable.tpl"}
{else}
<TABLE border="0" cellpadding="0" cellspacing="0">
{if $speed_bar}
<TR>
<td height="22" valign="middle" class="TabBar">|</td>
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<TD>{include file="customer/tab.tpl" tab_title="<A href=\"`$speed_bar[sb].link`\"><font class=TabFo\
nt>`$speed_bar[sb].title`</font></A>"}</TD>
{/if}
{/section}
</TR>
{/if}
</TABLE>
{/if}


2. modify your customer/tab.tpl file:


<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="TabBar" align=center>{$tab_title}|</td>
</tr>
</table>


3. in the head.tpl file


{if $usertype eq "C"}
{include file="customer/speed_menu.tpl"}

{/if}


3. in your skin1.css file


.TabBar {
COLOR: # any color you want;
.TabFont {
COLOR: # any color you want;
FONT-SIZE: 11px;
}
__________________
Carts n Tools.com
- New Root HTML Generator
- Templates | Add-Ons | Services
- XCart 4.0.x
Reply With Quote
  #8  
Old 10-31-2004, 11:11 PM
 
hobbyhandig hobbyhandig is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 76
 

Default

Yep!

Almost there. I can't seem to get it 20 pix from border, do you know how this is done?
__________________
Karin Horton
X-Cart Gold 4.1.11
Reply With Quote
  #9  
Old 02-19-2007, 02:43 PM
 
Xeen Xeen is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 60
 

Unhappy Re: Adjust speed bar

Quote:
Originally Posted by Yang Xu
1. Create a file: customer/speed_menu.tpl


{if $printable ne ''}
{include file="customer/top_menu_printable.tpl"}
{else}
<TABLE border="0" cellpadding="0" cellspacing="0">
{if $speed_bar}
<TR>
<td height="22" valign="middle" class="TabBar">|</td>
{section name=sb loop=$speed_bar}
{if $speed_bar[sb].active eq "Y"}
<TD>{include file="customer/tab.tpl" tab_title="<A href=\"`$speed_bar[sb].link`\"><font class=TabFo\
nt>`$speed_bar[sb].title`</font></A>"}</TD>
{/if}
{/section}
</TR>
{/if}
</TABLE>
{/if}



Hello Yang Xu

I tried this and now have nothing on my page but this error message:

Fatal error: Smarty error: [in customer/speed_menu.tpl line 10]: syntax error: invalid attribute name: '`$speed_bar[sb].link`\' (Smarty_Compiler.class.php, line 1524) in /home/naturesp/public_html/store/Smarty-2.6.9/Smarty.class.php on line 1088



I copied and pasted the text directly into the newly created file so I'm very puzzled by the error message.

I look forward to your response as I'm a newby with plenty to learn, and eager to get on with perfecting my site.

With thanks in advance,

Xeen
__________________
X-cart Gold V4.1
www.naturesparlour.co.uk (Under Construction)
Reply With Quote
  #10  
Old 02-19-2007, 04:25 PM
  BizzyB's Avatar 
BizzyB BizzyB is offline
 

Senior Member
  
Join Date: Sep 2006
Location: Australia
Posts: 102
 

Default Re: Adjust speed bar

This may be a case of the blind leading the blind as I am also learning, However I think the following code:
.TabBar {
COLOR: # any color you want;
.TabFont {
COLOR: # any color you want;
FONT-SIZE: 11px;
}


should be:
.TabBar {
COLOR: # any color you want;}
.TabFont {
COLOR: # any color you want;
FONT-SIZE: 11px;

}

This may, or may not, be significant. Or may, or may not, have an impact on the customer/speed_menu.tpl.

As I understand it, another thing to watch out for when you are cutting and pasting is that you don't end up with superfluous spacing at the end of the tpl code.

Just a couple of thoughts.

I don't have the mod - just an interested onlooker with food for thought!
__________________
Version = X-Cart 4.1.3 Gold
Status - Closed
Addon: Magnifier
OS = Windows
Western Australia
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 02:42 AM.

   

 
X-Cart forums © 2001-2020