| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  Custom query for forums 
			
			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 | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |