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

Replace category, manufactures, etc text for images...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-02-2008, 10:54 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

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

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:

http://i73.photobucket.com/albums/i210/tarty00/categories.gif

http://i73.photobucket.com/albums/i210/tarty00/manufactures.gif

http://i73.photobucket.com/albums/i210/tarty00/special.gif

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
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
Reply With Quote
  #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:	234
Size:	56.2 KB
ID:	929
Reply With Quote
  #3  
Old 05-05-2008, 07:26 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

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

Yurij you are a legend!! Thank you so so VERY much. I have it all done now and this worked a total treat!

Check it out HERE if you would like to see my end result. Again thank you SO very much Mate!!
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
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 03:22 PM.

   

 
X-Cart forums © 2001-2020