The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How would I put a specific image at the top of each forum (one different one for each forum)?
I assume I'd go to the forum template and put the code where I want the banner to show...the code would be like, if frm 50, show this image, if frm30, show this page, etc... I'd assume the php for this would be pretty easy, but I'm clueless. ![]() |
#2
|
||||
|
||||
![]()
you can do that with template conditionals:
<if condition="forumid == 30"> //code for forum 30 </else><if condition="forumid == 31"> //code for forum 31 </if></if> just do that for all the forums you have. |
#3
|
||||
|
||||
![]()
Easier still create a new directory in your images /misc/ folder and name the images based on the forumid. E.g. 1.gif (for forumid1) etc...
Then in the templates put: Code:
<img src="$stylevar[imgdir_misc]/forumicons/$forumid.gif" border="0" alt="" /> ![]() |
#4
|
||||
|
||||
![]()
You can avoid the broken image if you put the following as .htaccess in your forumicons directory (only for Apache):
Code:
ErrorDocument 404 http://www.yoursite.tld/forums/clear.gif ![]() |
#5
|
||||
|
||||
![]()
Nice workaround
![]() |
#6
|
|||
|
|||
![]()
nice tip Kirby :up:
Will be using that one ![]() |
#7
|
||||
|
||||
![]()
Thanks, everyone.
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|