PDA

View Full Version : How To Open Forum Link In New Windows ? (Subforum With Link)


BUDIMAN
08-08-2010, 07:22 PM
hi, I'm using vb4.0.5

i have a question here about subforum that redirect to another link

so, my question is, how to make it opens in new windows when we click it ?

i know there is a modification for vb3

but in vb4, which one template that I need to edit ?

please see my photo attachment

please guys :-(

borbole
08-08-2010, 08:14 PM
hi, I'm using vb4.0.5


i have a question here about subforum that redirect to another link


so, my question is, how to make it opens in new windows when we click it ?

i know there is a modification for vb3


but in vb4, which one template that I need to edit ?


please see my photo attachment


please guys :-(



At forumhome_forumbit_level2_post template, find the following code:

<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>


and change it to:

<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" target="_blank">{vb:raw forum.title}</a></h2>

BUDIMAN
08-08-2010, 11:46 PM
hi borbole ... do you understand my question ? that's the wrong way.. i dont want to open in new windows for all..but sub-forum that contain redirect link only

the html code should be in condition. (<vb:if></vb:if> condition)

argghhh..why vb4 is so different..in vb3, i can do this easily...

borbole
08-09-2010, 01:26 PM
hi borbole ... do you understand my question ? that's the wrong way.. i dont want to open in new windows for all..but sub-forum that contain redirect link only

the html code should be in condition. (<vb:if></vb:if> condition)


argghhh..why vb4 is so different..in vb3, i can do this easily...



Sorry for the misunderstanding. I thought you wanted to open all the forums. Try this. It should do what you want

Same template, find the same code

<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>

And replace it with this code:

<vb:if condition="$forum['link']">
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" target="_blank">{vb:raw forum.title}</a></h2>
<vb:else />
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
</vb:if>

thedvs
08-10-2011, 04:19 PM
works great in 4.1.5pl1 thanks borbole