PDA

View Full Version : Opening Forum page in new window


Disco_Stu
04-24-2012, 03:55 PM
Anyone know how to open the Forum page as a new tab on the browser without closing the CMS page?

kh99
04-24-2012, 04:56 PM
You could do something like edit the navbar template and find:

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


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

<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, 05: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 1335292028 at 1335292028 ---------------

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, 06: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.