The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Category conditional? Or way to emulate it through plugin?
I was wondering if there was any way at ALL to apply a conditional to all forum id's under a certain category? A long array of $forumid's is really not an option... or I'd be typing out hundreds of $forumid's. There is obviously some way that vBulletin keeps track of what category a forum belongs to, so is there a way to utilize this in a plugin?
|
#2
|
||||
|
||||
parentid or something like that, check in the forum table.
|
#3
|
|||
|
|||
Oh geez.. I'm pretty bad with query stuff... I'll probably butcher the terminology.. so here goes the basic idea:
So I need to write a query to call "parentid" (or whatever it is called) from the forum table, assign it to a variable, and then just say PHP Code:
EDIT: I just found an instance of "$foruminfo[parentid]" in FORUMDISPLAY... So do I even need to go the plugin route? It seems like I could just get by with Code:
<if condition="$foruminfo[parentid] == 1"> code <else /> other code </if> Well, I feel kind of stupid now.. I really need to learn all of my vBulletin variables. Of course watch me not actually be able to use $foruminfo[parentid] how I'd want to. |
#4
|
||||
|
||||
$forum['parentid'] or $foruminfo['parentid'], whichever works.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|