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)
-   -   insert an image over a menu (https://forum.x-cart.com/showthread.php?t=15819)

mmoskva 08-10-2005 11:42 AM

insert an image over a menu
 
I would like to insert an image over my current menu background; so the background image displays and the buttons appear on top of them?

Appreciate help?

balinor 08-10-2005 12:17 PM

Use CSS...take a look at menu.tpl and edit the class that references the table cell that has the menu contents. Take a look at the .button class for reference.

mmoskva 08-10-2005 12:59 PM

when you referance the button class you mean button.tpl?

I tried coding inserting an image tag but I got a smarty error unrecognized syntax.

Here was the original code I used and I'll past what I insertend into the menu tpl file.

Original menu.tpl file

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" >

<TR>
<TD>{$menu_content}
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>



My modication is located at the bottom

<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" >

<{$img_type} src="{$ImagesDir}/files/images/loginbglarge.gif">
<TR>
<TD>{$menu_content=}[img]{$ImagesDir}/files/images/loginbglarge.gif[/img]</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>

balinor 08-10-2005 01:27 PM

No, not html...you need to use CSS. Take a look at skin1.css. the .button class in particular. It uses a background image, so you would need to do something similar for the .vertmenubox class.

Sounds like you need yourself a good CSS book :)

mmoskva 08-10-2005 02:04 PM

I posted a background image tag in like you mentioned in css and it should be right over the username,password area but i cannot see nothing. Is their some background that needs to be transparent?
Location - Vertmenubox.


<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD class="VertMenuBorder">
<TABLE border="0" cellpadding="1" cellspacing="1" width="100%">
<TR>

<TD class="VertMenuTitle">{$link_begin}[img]{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}[/img]{$link_end}
{if $link_href}
<FONT class="VertMenuTitle">{$menu_title}</FONT>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>
</TR>
<TR>
<TD class="VertMenuBox">
<TABLE border="0" cellpadding="5" cellspacing="0" width="100%" background-image: url("file/images/loginbglarge.gif")>
<TR>
<TD>{$menu_content}
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>
</TD></TR>
</TABLE>


mmoskva 08-10-2005 08:11 PM

I keyed background: instead of background-inage: but that didn't help any.

mmoskva 08-15-2005 07:09 AM

Can anyone help me on how to insert a background images in my menu.tpl?

balinor 08-15-2005 08:12 AM

Ok, you aren't listening to me :) This needs to be done in CSS, not html in the template. In skin1.css, in the .vertmenubox class, add this:

background-image: url(images/loginbglarge.gif)


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

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