View Full Version : Adding html to forum index or what ever.
PostMaster
07-20-2008, 08:29 PM
to seprate a forum index like the one I see here and add those images for lobby and ect... http://www.technutopia.com/forum/forums.php?
Does anyone know what mod help aid in this or how to go about doing this?
RLShare
07-21-2008, 02:27 AM
Well I have 2 guesses about how it can be done. Never tested either so I don't know for sure.
1. Use a bunch of conditionals to check which forum id it is and show the image for that forum ID
ex.
<if condition="$forum['forumid']==2">
//show image for forum with the id 2
</if>
With an if statement for each main category forum.
2. Use a naming convention on the images so you can use the forumId as a replacement variable in the image name.
For example name all your images with the naming convention of 'forumhead_2.png' where 2 is the forum ID that image belongs to. Then in the template try something like this.
<img src='forumhead_$forum[forumid].png' />
--------------- Added 1216611484 at 1216611484 ---------------
BTW you would want to add another row to the part of the table in the template 'forumhome_forumbit_level1_nopost' to achieve this as well.
PostMaster
07-21-2008, 03:39 AM
Much thanks I will test this out and post back.
PGAmerica
07-21-2008, 02:53 PM
To make this work, I would need to know which template to edit (problably FORUMHOME), what to look for, what do I replace with this code?
RLShare
07-23-2008, 09:48 PM
I already gave that answer 2 posts up when I posted code.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.