The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Request: Custom Forum Headers?
Hah.. Another request. Thanks loads to the people who've already helped me, btw
Okay, this one is for each individual forum to have a custom header file.. Im guessing it'd be an IF statement in the headerfile directing towards different templates for different forumid's, but a) im not sure if thats right, and b) i have no idea how to go about it. So.. any help? Pretty please with sugar on top? |
#2
|
||||
|
||||
Quote:
<if condition="$_GET[forumid]==1"> yourheaderhere </if> <if condition="$_GET[forumid]==2"> yourheaderhere </if> <if condition="$_GET[forumid]==3"> yourheaderhere </if> |
#3
|
|||
|
|||
I'm looking for the same thing, actually, I am just looking to have specific advertising banner code to be in specific forums for targeting reasons, I don't not necessarily the entire header.
Any suggestions for that? I'm new to this whole conditional thing? |
#4
|
|||
|
|||
Thats what i thought it'd be like Kentaurus, i just dont know php very well.. heh..
Anyway, i'll test that and get back to ya. Thanks. EDIT: Works perfectly, thanks mate. ^Heynurse, this works for that too.. Just put the if condition in a certain part of the header itself. Then it'll show the header in every forum, but only whats in the if conditions in the forum specified (hope you understood that) |
#5
|
||||
|
||||
Quote:
<if condition="$_GET[forumid]==1"> yourheaderhere </if> compares the forumid and in this case if the id is '1' whatever you have in "yourheaderhere" (html code probably) will appear only when you enter the forum 1. You can put as many conditions as you want only changing the forumid for different headers. |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
<if condition="$forumid == 6">
do <else /> <if condition="$forumid == 1"> do <else /> <if condition="$forumid == 7"> do <else /> <if condition="$forumid == 9"> do <else /> <if condition="$forumid == 20"> do <else /> <if condition="$forumid == 21"> do <else /> <if condition="$forumid == 22"> do <else /> do the main thing </if></if></if></if></if></if></if><br /> There are probably six different ways to do this, but I'm a hacker and I got it done. |
#8
|
||||
|
||||
Check for Forum Home Annoucment hack from Logician one of his posts carries a good solution about same
Regards, |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|