vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How To: Forum Link to New Window? (https://vborg.vbsupport.ru/showthread.php?t=230974)

interfx 12-23-2009 04:02 PM

How To: Forum Link to New Window?
 
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.

Code:

<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:
HTML Code:

<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:
HTML Code:

<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!


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete