View Full Version : change module title to images
workedout
04-30-2009, 05:57 AM
Hello,
I wish to remove the text module titles and add my own image based titles in the module header.
What files do I need to edit to do this?
Thanks in advance,
David.
DrewVT6
05-01-2009, 10:50 PM
You can change the adv_portal_navigationbits template. Right now it's set up to display the title or a linked title. You could essentially change it to display a picture of your choosing.
workedout
05-02-2009, 07:08 AM
Ive looked into that template but it appears that it uses the variable $title, therefore if I replace that ill just get the same image on each heading? Is there anyway around this?
workedout
05-06-2009, 11:43 AM
any further help with this?
Brian
05-06-2009, 12:49 PM
You could create unique images based on the modid for each module, and then link to the images something like this:
<img src="$vboptions[bburl]/images/modules/mod$mods[modid].gif" />
workedout
05-06-2009, 01:05 PM
Thanks Brian thats just what I need.
workedout
05-07-2009, 05:07 AM
Just tried this and it appears to change the news titles too :(
Is there any other way to do it?
Brian
05-08-2009, 11:28 AM
You can wrap an <if> tag around the image to disable it on your news module.
<if condition="$mods['identifier'] != 'news'">
<img />
</if>
DrewVT6
05-08-2009, 11:30 AM
Just tried this and it appears to change the news titles too :(
Is there any other way to do it?
Can you post a link to your forum? I'd love to see how you implemented this.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.