I'm trying to use a conditional to color code certain forums in the What's New and Search Results.
In search_threadbit I've tried the following, with no success (only the else shows for threads in these forums too.)
Code:
<vb:if condition="in_array($foruminfo[forumid],array(26,29,56,25,27))">
<div class="threadpostedin td alt">
<p>Test Different Color Div will go here For these Forums</p>
</div>
<vb:else />
<div class="threadpostedin td alt">
<p>
{vb:rawphrase forum}: <a href="{vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}" title="{vb:raw thread.forumtitleclean}">{vb:raw thread.forumtitle}</a>
</p>
</div>
</vb:if>
I thought that since forumid is actually in the link, it would be a piece of cake, but it's a no go as above. I must be missing something obvious.
I read here about assigning a variable to a template, so tried creating a new plugin to do so, but can't seem to make that work either. One question is that the template is labeled search_threadbit but that's not a choice in the add plugin screen for a hook location - only search_results_threabit which doesn't seem to exist as a template. So I'm a bit lost there.
Any guidance? Many thanks.
(new to VB4 today)