![]() |
Header(s) based on forum categories
Hi,
I would like to have different header templates within a style based on the forum categories! for example Xbox category and child-forums have different header template, PS2, PC etc and their child-forums can have their own different header template.. can we can do such sort of thing? :o |
You could replace this in your header template
HTML Code:
<img src="$stylevar[titleimage] HTML Code:
<img src="./board/images/logo/logo-$forum[forumid].jpg" /> logo-1.jpg (for forum id 1) logo-2.jpg (for forum id 2) etc I'm just wondering if there would be an easy way of adding a template conditional to show the default header if a customized one wasn't available but I think that would require adding a field to the db and marking it off to determine if one is available or not. |
Thanks "Reeve of shinra"! actually I had this in my mind already but as I said I want kind of modification which also change the header of the child-forums as well without creating lots of images..for example:
I want the Xbox header for: - Xbox Section - sub forum 1 - sub forum 2 - PS2 - sub forum 1 - sub forum 2 see..I if a user is browsing Xbox then I want that he/she will see xbox header in xbox forum as well as in its child forum etc...same goes with PS2 and other forums :) Thanks, |
Oh, ... we'll something like this might work. You may need to tweak the sytnax a bit.
HTML Code:
<if condition="$forum[forumid] = 1 OR $forum[forumid] = 3 OR $forum[forumid] = 5"> |
Now that's much better..I will give it a try and thanks a lot for your idea/help! :)
|
Hi,
I've been looking for something to do this, and tried out the suggestion in this post. However it's not working for me. The path to the images is correct, I've verified this by taking out the call to $forum[forumid] and putting in a number. Unfortunately switching back to the $forum[forumid] just yields a no-show. The code I'm using is below. Code:
<a href="index.php"><img src="http://www.hybrid-gamers.com/forums/images/headers/mxo/header-$forum[forumid].jpg" alt="" width="100%" height="150" border="0" /></a> |
^ ^
try using relative paths like in the example, e.g. Code:
/images/headers/mxo/header-$forum[forumid].jpg" alt="" width="100%" height="150" border="0" /></a> |
Still no luck I'm afraid :(
A sunday /bump I'm tempted to try out the Code:
<if condition="$forum[forumid] = 1 OR $forum[forumid] = 3 OR $forum[forumid] = 5"> |
Well I tried to use the if else version, but it still won't work.
Beware, it's long! HTML Code:
<if condition="$forum[forumid] = 7 OR $forum[forumid] = 43 OR $forum[forumid] = 44 OR $forum[forumid] = 26 OR $forum[forumid] = 31"> HTML Code:
<!-- logo --> |
HTML Code:
<if condition="$forum[forumid] = 7 OR $forum[forumid] = 43 OR $forum[forumid] = 44 OR $forum[forumid] = 26 OR $forum[forumid] = 31"> HTML Code:
<img src="http://hybrid-gamers.com/forums/images/headers/mxo/header-$forum[forumid].jpg" /> Thanks, Mat |
All times are GMT. The time now is 02:41 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|