![]() |
Modify header/nav of specific forums ie: forumdisplay.php?f=32
What I am looking to do is this... Let's say I have three different categories on my board. Of course each category has it's own forums. I would like to modify the header or navbar area of each category's forum to contain category specific links back to my main site.
Example: Category 1 deals with Linux, Cat 2 is Sun OS and Cat 3 MS Headers or navbar area of cat 1 forums would contain links to Linux pages in my main site. Cat 2 forums would have Sun OS links and cat 3 would have MS links. While I'm not a coder, I'm comfortable editing board files. My problem is, I'm not sure which to modify. Any help would be greatly appreciated! Thanks in advance. eta: And if it is needed... I'm running 3.6.0 |
Sure, this can be done with a condition in the navbar template, here's an example:
Let's say your category is forumid 1, wrap the condition around the link you want to add like this: Code:
<if condition="in_array($GLOBALS[forumid], array(1))"> Code:
<if condition="in_array($GLOBALS[forumid], array(1,3,5))"> |
Sweet! I'll give it a shot. Thanks so much for the quick reply. :up:
eta: Very cool. I had to do a bit of tweaking for proper placement, but I got exactly what I was looking for. Thanks again, ericgtr! |
Hey, would something like this work?
(current header) HTML Code:
<div id="headermenu"> HTML Code:
<div id="headermenu"> To the tabular navbar in http://www.mylaasp.com/forum/index.php |
I'm not sure about the code you posted (haven't tried it out) but I am sure this can be achieved with the same process.
|
All times are GMT. The time now is 08:07 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:
|