View Full Version : How To: Forum Link to New Window?
interfx
12-23-2009, 04:02 PM
How do I have a forum link open a new browser window? (instead of redirecting my users away from my site?)
Thanks -
Seven Skins
12-23-2009, 04:07 PM
Add target="_blank" in the code.
e.g.
<a href="index.php" target="_blank"></a>
.
interfx
12-23-2009, 05:23 PM
I know that part, where do I set this in the styles? templates, etc...
Seven Skins
12-23-2009, 06:03 PM
For "Forum" tab edit navbar template.
This line:
<li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
interfx
12-23-2009, 06:28 PM
Let me try again...
I made a forum which is set as a link type, which redirects to an external site (link). ie. like the Vbulletin.com, vBulletin Customization @ vBulletin.org (which opens up an external link)
My question is simply, how/what do I need to do to cause that link to open in a new window. I know the right code, just not where to set...
Thanks in advance -
Seven Skins
12-23-2009, 06:47 PM
Now we getting somewhere you need to edit two templates:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
Find this line and edit it:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
.
interfx
12-23-2009, 07:00 PM
Awesome, thanks! It worked great!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.