The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Header
Hey, sorry for not searching in case this has been answered before but I had no idea how to search for something like this.
Iam currently wrapping my forum inside a custom design with the use of plugins for the top and bottom part of my design. What I want to know if somebody knows is how I can detect in which category Iam because I want to use custom header images depending on the category the user is in. for example lets say I have ->MAIN CATEGORY ------> Starcraft ------------> General ------------> Strategies When I am browsing inside the main category I want it to show the "default" image but when I browse inside the NICE CATEGORY or deeper inside that category I want to be able to change my "default" header image to a starcraft image for example. Does anybody know to do something like this? Thanks Leo |
#2
|
|||
|
|||
It should be simple, first of all you need a way to identify the categories, if they are forums you should have a look at some of the vbulletin code and search for a variable storing the forumid for example. You can then use that variable for template conditionals like this:
<if condition="$forumid == 1">current category image<else />standard category image</if> The hard part might be finding that variable, I'm not sure how you intend to do the categories, if you're using forums look at forumdisplay.php or something like that. You can always show the content of variables on a certain page using var_dump($var), add a conditional to display it to admins only and in that way you can easily find the variable you need and test it without anyone noticing it except you. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|