| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Graphic menu title | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi.
I'm newbie in here. Just started building site with x-cart a few weeks ago. Could anyone help me to change menu title from text to graphic? Here is what I want to do: http://www.powerxusa.com/x-cartforum/wish.gif --------- v.3.5.9 Linux |
|||||||
#2
|
|||||||
|
|||||||
![]() Do you want this to be for the Category one only... or for all menus?
If you want to do it for all of the menus that display then it is a pretty easy mod... unfortunately I do not have time to post it right now but I will be back around later tonight and can throw it up here.... Let me know...
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#3
|
|||||||
|
|||||||
![]() Hello Mike.
I would love to know how to do this for all menus. But if I would like to have some menu has graphic menu title, others don't later on, is your mod able to do this? |
|||||||
#4
|
|||||||
|
|||||||
![]() Well I threw together the mod this evening and tested it out and was unable to get it to work. It was a simple mod... and I am not understanding why it did not work... so I will have to go back to the drawing board...
All I did in the mod was comment out the following line: Code:
and replace it with: Code:
So basically what it would do is for each header it would look for a graphical GIF file in the images directory with the same name as the TITLE of the box... so for authentication it would look in the images directory for authentication.gif ... In theory this should work but when testing it I was unable to make it happen... It was a quick simple hack to get what you wanted done... nothing fancy.. Ill try and work on this some more....
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#5
|
|||||||
|
|||||||
![]() Hello.
I finally figured how this menu template(menu.tpl) and other menu tpls are built and tied up ![]() For example, I'm going to create new help menu. Firstly, I made totally new menu template (named mymenu.tpl). Code look something like this: Quote:
I created graphic for menu title in jpg(named mm_help.jpg) for $menutitle and put it in images folder(in my case:{$ImagesDir}/myskin/"). Secondally, I create new help menu template(named myhelp.tpl). Quote:
Finally, I put myhelp.tpl in home.tpl. I don't know what's gonna happen when upgrade of x-cart comes. But just for now, it works fine for me. |
|||||||
|
|||
X-Cart forums © 2001-2020
|