vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Opening Forum page in new window (https://vborg.vbsupport.ru/showthread.php?t=281987)

Disco_Stu 04-24-2012 02:55 PM

Opening Forum page in new window
 
Anyone know how to open the Forum page as a new tab on the browser without closing the CMS page?

kh99 04-24-2012 03:56 PM

You could do something like edit the navbar template and find:

Code:

<a href="{vb:link forumhome}">

(which seems to occur three times for some reason) and replace it with

Code:

<a href="{vb:link forumhome}" target="vbforum">

This has one flaw (that I know of) - if you arrive on the forum page from somewhere other than the CMS page then press the Forum button, it will open another window/tab on the same page. Maybe someone can figure out how to get around that. (I'm not sure why the forum button is even active when you're already there).

Disco_Stu 04-24-2012 04:21 PM

That worked great! But now when I press Home from the forum screen it opens another home page in the current forum tab instead of returning to the original home page.

--------------- Added [DATE]1335292028[/DATE] at [TIME]1335292028[/TIME] ---------------

I guess this isn't going to work because every article I click on in CMS refreshes the CMS page and that restarts the MP3 player.

I think I'll create a new nav tab and put the player on a separate page

Thanks

kh99 04-24-2012 05:26 PM

I guess that last comment was intended for your mp3 player thread? Anyway, I didn't think of the problem with going back to the CMS page. I don't really know how to handle that. Maybe there's some way to set the window name so you could set it depending on whether it's a CMS page or a forum page, then set the button links to target the right window.

Hopefully someone else will know if this can be done.


All times are GMT. The time now is 07:41 PM.

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.01723 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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