Quote:
Originally Posted by craiovaforum
I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement
|
You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.
Try this:
header template:
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>
</if>
</if>
</if>
This will place a default image in place when not in a forum w/ an image.
Now I have also done this added this hack to "Add Extra Header / Footer"
Add Extra Header / Footer
https://vborg.vbsupport.ru/showthrea...threadid=99544
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else />$vboptions[fhx2h]
</if>
</if>
</if>
</if>
This only says use the Add Extra Header when there is no image for a forum. There still is a "footer to place", but you may have a need somewere.