Log in

View Full Version : Forum specific templates (under navbar)


Maddogz420
01-01-2008, 06:43 PM
I would like a specific template to be pulled and placed under my navbar in specific forums. This is going to be a secondary navbar, but im sure thats really irrelivant to what i'm asking. I seen in another thread (https://vborg.vbsupport.ru/showthread.php?t=130378)where this code (below) was used to place text on specific forums, but im not sure how to make it pull a template from the style.


<if condition="in_array($GLOBALS[forumid], array(1))">
<td class="vbmenu_control"><a href="mylink.php">test</a></td>
</if>

Opserty
01-01-2008, 08:27 PM
If you want to include another template inside an exsisting one then you need to create a plugin to "eval()" the template and assign it to a variable and then you can use that variable in the "main" template.