The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi.
I'm trying to set different layouts for the listing of all the forums. Some forums should be displayed in one way, the others in a different matter. But how do I change the $forumbits so that I can create custom templates and then call only the forums that belong to a certain parent? Thanks in advance. // Frozt |
#2
|
|||
|
|||
![]()
You could use template conditionals if you wanted to do it that way.
Code:
<if condition="$forum['forumid'] == X"> THIS CODE <else /> ANOTHER CODE </if> |
#3
|
||||
|
||||
![]()
Thanks Gray Matter. That will do just fine. But in this case I need to filter by the forums parent ID, not the forums ID itself. Any ideas?
--------------- Added [DATE]1193702900[/DATE] at [TIME]1193702900[/TIME] --------------- Oh, I found the function $foruminfo['parentid']. So I did the following: Code:
<if condition="$foruminfo['parentid'] == 17"> Show forums like this <else /> Show forums like this </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|