View Single Post
  #2  
Old 06-01-2005, 06:52 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Try this, instead of editing the menu.tpl file change the way that you call it from other templates. For example, in your /customer/home.tpl file there are a few calls to templates that use the menu.tpl file. Lets take for example the Users Online module.

Code:
[color=olive]{if $active_modules.Users_online ne ""} { include file="modules/Users_online/menu_users_online.tpl" }[/color]

The content that the file above produces is inserted into the menu.tpl file with this line at the bottom of the file:

Code:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_users_online menu_content=$smarty.capture.menu }

If you would like to use an image as the title just pass that code as the title variable. Something like this:

Code:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title="<img border=\"0\" src=\"$ImagesDir/my_image.gif\" alt=\"$alt\" width=\"200\" height=\"15\">" menu_content=$smarty.capture.menu }

...of course changing the image name to your image, and the width and height to your width and height.
Reply With Quote