
11-25-2012, 01:50 AM
|
 |
|
|
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Chani
I'm trying to get link forum links to open in a new window or tab, so here's what I have in forumhome_forumbit_level2_nopost
This is the code for the forum title link, and I've added a vb:if condition:
PHP Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" class="forumtitle"<vb:if condition="in_array($forum['forumid'], array(22))"> target="_blank"</vb:if>>{vb:raw .title}</a></h2>
.
vB is telling me I have a malformed conditional and the code is not working, but damned if I can figure out why.
|
You need to tell us *exactly* where you are adding this so we may try it ourselves and see what is going on.
|