Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

top_menu.tpl option background color Rate Topic   - - - - -

 

Posted 12 November 2007 - 06:11 PM #1

Hello All!

I have tried just about every possible option, but I am having a problem getting the background color of two new options I added into the top_menu.tpl to change to the light blue color when they are selected. I have the following code which is working great for the link:

<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $target == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'"{/if} nowrap>
				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a></td>

I am almost 100% certain that the code I need to manipulate is this section here:

{if $target == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');"

Which is what the other (Home/Catalog/My Cart) options seem to be using to get the color to change. However, I have tried using $target, $current_url, and $page_id with a wide range of combinations, but no luck. Here is the page I am trying to get the code to recognize that it is on, and then change the background color to the light blue like the other options:

http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight

The code I thought would work was the following (what I have above was where I just threw my hands in the air before coming here ;) ):

{if $current_url == "$index_script?$target=pages&page_id=bhbinflight"}

I know that $index_script refers to the main url of the site and the actual link shows that target=pages&page_id=bhbinflight but no luck. So I am here to ask the professionals! :D As always, any help is GREATLY appreciated!

Cheers,
Travis
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1034 posts

Posted 12 November 2007 - 07:01 PM #2

i am using 1.3.4 so i don't know if this well help or not...
try this code to "ID" the page

{if $current_url == "$index_script?$target_name=pages&page_id=bhbinflight"}

please note that this adds xxxxx_name and xxxx_id to your code.
[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 12 November 2007 - 09:03 PM #3

Hey Travis,

Try this:

{if $target == 'pages' && $page_id == 'bhbinflight'}

That might not work because I think $page_id might be part of a larger array of data.

If the above fails let me know because you should be able to use smarty.get.$page_id to access the querystring variable and set your CSS class accordingly.

B
CS Cart 1.3.5 SP1

 

Posted 12 November 2007 - 09:04 PM #4

Mike, thanks for the help. I plugged that in, but still no luck with the background of the option changing. I am wondering if you can do it since it is just a page...I will keep plugging away! :D

Cheers,
Travis
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 

Posted 12 November 2007 - 09:07 PM #5

Hey Travis,

Try this:

{if $target == 'pages' && $page_id == 'bhbinflight'}

That might not work because I think $page_id might be part of a larger array of data.

If the above fails let me know because you should be able to use smarty.get.$page_id to access the querystring variable and set your CSS class accordingly.

B


B, thanks for the reply. I have your code plugged in now, but no luck. Thank you again for taking the time to reply...this is driving me crazy! :D
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1034 posts

Posted 12 November 2007 - 09:52 PM #6

travis,
are you carrying the code all the way through the "if" statement?

{if $current_url == "$index_script?$target_name=pages&page_id=bhbinflight"} {assign var="tab_active" value="active_"}{else}{assign var="tab_active" value=""}{/if}
	{include file="common_templates/top_tab.tpl" caption_tab=$lang.[COLOR="Red"]YOUR_LANGUAGE[/COLOR] href_tab="$index_script?$target_name=pages&page_id=bhbinflight" width_tab=$tab_width active_tab=$tab_active}
	<td width="1"><img src="{$images_dir}/spacer.gif" width="1" height="1" border="0" alt=""></td>

just making sure, because it needs to be changed in 2 instances...
[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 12 November 2007 - 10:11 PM #7

Hey Travis,

Try this code and then give me the link so we can see where the issue is:

 {assign var="current" value=$smarty.get.page_id}
 <p>This: {$current}<p>
 
 {if $target == 'pages' && $page_id == 'bhbinflight'}
 	 {assign var="class" value='selected'}
 	 
	<td width="2">
		<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="">
	</td>
	<td width="{$tab_width}" align="center" {if $target == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="{$selected|default:'empty'}" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'"{/if} nowrap>
		<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a>
	</td>

CS Cart 1.3.5 SP1

 

Posted 12 November 2007 - 10:42 PM #8

travis,
are you carrying the code all the way through the "if" statement?

{if $current_url == "$index_script?$target_name=pages&page_id=bhbinflight"} {assign var="tab_active" value="active_"}{else}{assign var="tab_active" value=""}{/if}
	{include file="common_templates/top_tab.tpl" caption_tab=$lang.[COLOR="Red"]YOUR_LANGUAGE[/COLOR] href_tab="$index_script?$target_name=pages&page_id=bhbinflight" width_tab=$tab_width active_tab=$tab_active}
	<td width="1"><img src="{$images_dir}/spacer.gif" width="1" height="1" border="0" alt=""></td>

just making sure, because it needs to be changed in 2 instances...


I think that might be it...here is what I have right now:

<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $target == 'pages' && $page_id == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'"{/if} nowrap>
				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a></td>

Let me make the change and see...thanks!!!

Cheers,
Travis
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 

Posted 13 November 2007 - 07:17 PM #9

Hey Travis,

Try this code and then give me the link so we can see where the issue is:

 {assign var="current" value=$smarty.get.page_id}
 <p>This: {$current}<p>
 
 {if $target == 'pages' && $page_id == 'bhbinflight'}
 	 {assign var="class" value='selected'}
 	 
	<td width="2">
		<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="">
	</td>
	<td width="{$tab_width}" align="center" {if $target == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="{$selected|default:'empty'}" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'"{/if} nowrap>
		<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a>
	</td>


B, I tried Mike's code, but no luck. I would like to use this snippet you have here, but have a newbie question for you...where does this go? Can I create a new file/any file and have at it? Sorry, but I try to muck around as little as possible with the code :-)

Cheers,
Travis
:P
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 13 November 2007 - 09:29 PM #10

Hey Travis,

Just stick it at the top of your top_menu.tpl file. It's probably going to show up a little funky because there is a <p> tag in there. I just want to see what variables are being passed so we can isolate the problem.

This is a testing site right? I wouldn't put that code on your live site, but I think you have a dev/upgrade site?? Anyways, if so, please add that code and post the link or just PM it to me and I'll take a look at what's happening. Also, can you post the entire contents of your tom_menu.tpl file? I want to see what else you have going on in there.

B
CS Cart 1.3.5 SP1

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1034 posts

Posted 13 November 2007 - 10:24 PM #11

thanks for stepping up B

can't figure why my code doesn't work for him. Before I took my tabs out, I had 6 tabs, and the active tab color worked on both cms pages and externally linked pages...

strange:confused:
[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 13 November 2007 - 11:10 PM #12

Yeah, I'm going to have to be dealing with a similar problem soon on my own site, so I figured I should learn what's happening...:)
CS Cart 1.3.5 SP1

 

Posted 14 November 2007 - 12:14 AM #13

Hey Travis,

Just stick it at the top of your top_menu.tpl file. It's probably going to show up a little funky because there is a <p> tag in there. I just want to see what variables are being passed so we can isolate the problem.

This is a testing site right? I wouldn't put that code on your live site, but I think you have a dev/upgrade site?? Anyways, if so, please add that code and post the link or just PM it to me and I'll take a look at what's happening. Also, can you post the entire contents of your tom_menu.tpl file? I want to see what else you have going on in there.

B


B, thanks! I do have a test site, but it is internal and you can't get to it...here is my top_menu.tpl file:

{* $Id: top_menu.tpl 1462 2006-03-17 12:39:35Z zeke $ *}
<table cellpadding="0" cellspacing="0" width="100%"	border="0">
<tr>
	<td class="top-menu-border">
		<img src="{$images_dir}/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
{assign var="tab_width" value="130"}
<tr>
	<td height="30" style="background-image: url('{$images_dir}/top_menu_bg.gif');" align="center" class="top-menu-bg">
		<table cellpadding="0" cellspacing="0" border="0">
		<tr>

			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $current_url == "$index_script"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}'"{/if} nowrap>
				<a href="{$index_script}" class="top-menu-title">{$lang.home}</a></td>

			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$mode_name=catalog" or $target == 'products' or $target == 'categories' or $target == 'manufacturers'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=catalog'"{/if} nowrap>
				<a href="{$index_script}?{$mode_name}=catalog" class="top-menu-title">{$lang.catalog}</a></td>

                         <td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $target == "$index_script?$mode_name=bhbinflight"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'"{/if} nowrap>
				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a></td>

                         <td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $current_url == '{$index_script}?{$page_id}=bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbstorelocator'"{/if} nowrap>
				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=store_locator" class="top-menu-title">{$lang.bhbstorelocator}</a></td>

			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			{if $auth.user_id}
			<td width="{$tab_width}" align="center" {if $target == 'profiles' || $target == 'auth'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=profiles&{$mode_name}=update'"{/if} nowrap>
				<a href="{$index_script}?{$target_name}=profiles&{$mode_name}=update" class="top-menu-title">{$lang.my_account}</a></td>

			{else}
			<td width="{$tab_width}" align="center" {if $target == 'profiles' || $target == 'auth'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=auth&{$mode_name}=login_form'"{/if} nowrap>
				<a href="{$index_script}?{$target_name}=auth&{$mode_name}=login_form" class="top-menu-title">{$lang.my_account}</a></td>
			{/if}
			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$target_name=cart"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=cart'"{/if} nowrap>
				<a href="{$index_script}?{$target_name}=cart" class="top-menu-title">{$lang.view_cart}</a></td>
			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			{********* Not implemented yet **************
			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$target_name=help"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=help'"{/if} nowrap>
				<a href="{$index_script}?{$target_name}=help" class="top-menu-title">{$lang.help}</a></td>
			<td width="2">
				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>
			*********************}
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td class="top-menu-border">
		<img src="{$images_dir}/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
	<td style="background-image: url('{$images_dir}/top_menu_bottom_bg.gif');">
		<img src="{$images_dir}/spacer.gif" width="1" height="12" border="0" alt=""></td>
</tr>
</table>

I am trying to figure this out too...this is driving me crazy! Thanks again Mike/B for the help!!!

Cheers,
Travis
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 14 November 2007 - 12:53 AM #14

Hey Travis,

After you add that code in just copy and paste the HTML it outputs so I can take a look.

B

EDIT: Actually, stick in this code:

{assign var="current" value=$smarty.get.page_id}
 <p>This: {$current}<p>
 
 {if $target == 'pages' && $page_id == 'bhbinflight'}
 	 {assign var="class" value='selected'}
 	 
	<td width="2">
		<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="">
	</td>
	<td width="{$tab_width}" align="center" class="{$class|default:'empty'}" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'" nowrap>
		<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a>
	</td>

EDIT AGAIN: I should add that turning on your smarty debug console will show you a lot of these variable you're trying to use in the top_menu.tpl. It will display your $target, $current_url, etc.
CS Cart 1.3.5 SP1

 

Posted 15 November 2007 - 08:29 PM #15

Hey Travis,

After you add that code in just copy and paste the HTML it outputs so I can take a look.

B

EDIT: Actually, stick in this code:

{assign var="current" value=$smarty.get.page_id}
 <p>This: {$current}<p>
 
 {if $target == 'pages' && $page_id == 'bhbinflight'}
 	 {assign var="class" value='selected'}
 	 
	<td width="2">
		<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="">
	</td>
	<td width="{$tab_width}" align="center" class="{$class|default:'empty'}" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'" nowrap>
		<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a>
	</td>

EDIT AGAIN: I should add that turning on your smarty debug console will show you a lot of these variable you're trying to use in the top_menu.tpl. It will display your $target, $current_url, etc.


B/Mike,

I put this code in at the top of the top_menu.tpl file and it just renders a blank white page...no output. I hope I am putting it in the right place (it doesn't go into another file or something?). Okay, I tried some other things and still no luck...hmmm....thanks again for your help!

Cheers,
Travis
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 15 November 2007 - 08:57 PM #16

Whoops, that's because I'm an idiot...Didn't close my "if" statement. Try this:

{assign var="current" value=$smarty.get.page_id}
 <p>This: {$current}<p>
 
 {if $target == 'pages' && $page_id == 'bhbinflight'}
 	 {assign var="class" value='selected'}
 {/if} 
	<td width="2">
		<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt="">
	</td>
	<td width="{$tab_width}" align="center" class="{$class|default:'empty'}" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbinflight'" nowrap>
		<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a>
	</td>


CS Cart 1.3.5 SP1

 

Posted 15 November 2007 - 09:21 PM #17

This is odd...it works now, but just says:

This:

On the main page...when I click on the bhbinflight link, it returns this:

This: bhbinflight

...any ideas?

Cheers,
Travis
:P
cs-cart 1.3.5 sp2!!!! finally!!!!
;)

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 15 November 2007 - 09:40 PM #18

Cool, that's what I wanted to see...I'll give you the rest of the code this afternoon...Have to run to a meeting.

B
CS Cart 1.3.5 SP1

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 16 November 2007 - 12:36 AM #19


	

	{* $Id: top_menu.tpl 1462 2006-03-17 12:39:35Z zeke $ *}

<table cellpadding="0" cellspacing="0" width="100%"	border="0">

<tr>

	<td class="top-menu-border">

		<img src="{$images_dir}/spacer.gif" width="1" height="1" border="0" alt=""></td>

</tr>

{assign var="tab_width" value="130"}

<tr>

	<td height="30" style="background-image: url('{$images_dir}/top_menu_bg.gif');" align="center" class="top-menu-bg">

		<table cellpadding="0" cellspacing="0" border="0">

		<tr>



			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			<td width="{$tab_width}" align="center" {if $current_url == "$index_script"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}'"{/if} nowrap>

				<a href="{$index_script}" class="top-menu-title">{$lang.home}</a></td>



			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$mode_name=catalog" or $target == 'products' or $target == 'categories' or $target == 'manufacturers'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=catalog'"{/if} nowrap>

				<a href="{$index_script}?{$mode_name}=catalog" class="top-menu-title">{$lang.catalog}</a></td>

            

            <td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			<td width="{$tab_width}" align="center" {if $smarty.get.page_id == 'bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=pages&{$mode_name}=bhbinflight'"{/if} nowrap>

				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=bhbinflight" class="top-menu-title">{$lang.bhbinflight}</a></td>



            <td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			<td width="{$tab_width}" align="center" {if $current_url == '{$index_script}?{$page_id}=bhbinflight'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$mode_name}=bhbstorelocator'"{/if} nowrap>

				<a href="http://www.blueheronbags.com/estore/index.php?target=pages&page_id=store_locator" class="top-menu-title">{$lang.bhbstorelocator}</a></td>



			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			{if $auth.user_id}

			<td width="{$tab_width}" align="center" {if $target == 'profiles' || $target == 'auth'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=profiles&{$mode_name}=update'"{/if} nowrap>

				<a href="{$index_script}?{$target_name}=profiles&{$mode_name}=update" class="top-menu-title">{$lang.my_account}</a></td>



			{else}

			<td width="{$tab_width}" align="center" {if $target == 'profiles' || $target == 'auth'}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=auth&{$mode_name}=login_form'"{/if} nowrap>

				<a href="{$index_script}?{$target_name}=auth&{$mode_name}=login_form" class="top-menu-title">{$lang.my_account}</a></td>

			{/if}

			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$target_name=cart"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=cart'"{/if} nowrap>

				<a href="{$index_script}?{$target_name}=cart" class="top-menu-title">{$lang.view_cart}</a></td>

			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			{********* Not implemented yet **************

			<td width="{$tab_width}" align="center" {if $current_url == "$index_script?$target_name=help"}style="background-image: url('{$images_dir}/top_menu_bg_active.gif');" class="top-menu-bg-active"{else}class="hand" onClick="javascript:self.location='{$index_script}?{$target_name}=help'"{/if} nowrap>

				<a href="{$index_script}?{$target_name}=help" class="top-menu-title">{$lang.help}</a></td>

			<td width="2">

				<img src="{$images_dir}/top_menu_delim.gif" width="2" height="30" border="0" alt=""></td>

			*********************}

		</tr>

		</table>


CS Cart 1.3.5 SP1

 

Posted 16 November 2007 - 03:31 AM #20

My props to B for closing out this pain in the butt!!! Just awesome man!!! Works like a champ!!! You can check it out at www.blueheronbags.com Looks awesome man and thanks a million to you too Mike for assisting...great learning experience and just one more reason I love CS-Cart...the community!!!! Thanks guys!!!

Cheers,
Travis
:D
cs-cart 1.3.5 sp2!!!! finally!!!!
;)