View Single Post
  #2  
Old 05-05-2008, 07:15 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Replace category, manufactures, etc text for images...

Quote:
Originally Posted by tarty00
I have searched high and low through the forum and everything I try to do in version 4.1.9 for changing the text into it's own image, it just won't work.

What I am after is to be able to have an image for the Category, Manufactures, Special, Authentication, Your Cart and Help but as their own image like this:


etc....

If anyone has the right file to modify and exactly what the code is to be changed to I would be so greatful. I am almost done modifying my store now and between changing the sidebar to images and the bottons to images I will be done. Thanks heaps guys for your help so far and thanks heaps for looking

1. Back up your site.
2. Upload all images in images dir.

2. Change file skin1/menu.tpl
PHP Code:
<table cellspacing="1" width="100%" class="VertMenuBorder">
<
tr>
<
td class="VertMenuTitle">
<
table cellspacing="0" cellpadding="0" width="100%"><tr>
{if 
$images_src ne ""}
<
td>{if $link_href}<a href="{$link_href}">{/if}<img src="{$ImagesDir}/{$images_src}"  alt="{$menu_title|escape}/>{if $link_href}</a>{/if}</td>
{else}
<
td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}/>{$link_end}</td>
<
td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
{/if}
</
tr></table>
</
td>
</
tr>
<
tr
<
td class="VertMenuBox">
<
table cellpadding="{$cellpadding|default:"5"}cellspacing="0" width="100%">
<
tr><td>{$menu_content}<br /></td></tr>
</
table>
</
td></tr>
</
table

3. Change all templates menu, where the image will be used instead of names menu.

Exm. for "skin1/customer/categories.tpl":

original:
PHP Code:
..........
{ include 
file="menu.tpl"  dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding

After adding one parameter (images_src="categories.gif", where categories.gif - The file name with a name images file for this category):
PHP Code:
{ include file="menu.tpl" images_src="categories.gif" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding


PS. And so for all "menu" by analogy...

Result:

Click image for larger version

Name:	forum.JPG
Views:	235
Size:	56.2 KB
ID:	929
Reply With Quote