I'm sorry, I thought it was pretty obvious. It's within the forum title link and the conditional I added is the only one in the statement, but here's my whole code for forumhome_forumbit_level2_nopost
PHP Code:
--------------- Added 24 Nov 2012 at 23:09 --------------- The conditional I added was this: PHP Code:
|
Not that it should make a difference but did you try putting spaces outside the conditional?
Code:
"forumtitle" <vb:if condition="in_array($forum['forumid'], array(22,24))"> target="_blank"</vb:if> >{vb:raw .title}</a></h2> |
This worked fine for me:
HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" class="forumtitle" <vb:if condition="in_array($forum['forumid'], array('22','24'))"> target="_blank"</vb:if> >{vb:raw forum.title}</a></h2> |
Thank you both. :)
I got it to work by posting the same code in forumhome_forumbit_level2_post For some reason I was thinking it was using forumhome_forumbit_level2_nopost Thanks again! :) |
How to Usergroups able to view but can not use ?
Code:
<vb:if condition="is_member_of($bbuserinfo, 6,7,9,10,16)"> |
How do I get these two conditional work properly in a single task. I can not make it work.
Can someone help me? PHP Code:
|
You just use AND to join two conditions that both must be true.
Code:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7,42,43) AND $post['currentactivity']"> |
Quote:
|
Do you mean a widget template? Because template conditionals won't work in widget PHP code.
My guess is regardless, $post is a variable only available inside posts (the postbit template) and would not be available in any CMS template, so it would always return FALSE. |
Quote:
|
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|