The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How To Open Forum Link In New Windows ? (Subforum With Link)
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 :-( |
#2
|
||||
|
||||
Quote:
At forumhome_forumbit_level2_post template, find the following code: HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> and change it to: HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" target="_blank">{vb:raw forum.title}</a></h2> |
#3
|
|||
|
|||
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... |
#4
|
||||
|
||||
Quote:
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 HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> HTML 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> |
#5
|
|||
|
|||
works great in 4.1.5pl1 thanks borbole
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|