Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Persistent Site Navigation Help?

6:55 pm on Jul 15, 2010 (gmt 0)

New User

5+ Year Member

joined:July 15, 2010
posts: 2
votes: 0

I don't know that this is the right place to ask but I hope someone can direct me. I'm administrating a game site that has until now just been a set of forums. Recently I was requested to add a statitistics package on to the site which I did. The forums and the stats both use php have their own index files in seperate subdirectories within the root of the site. I created a frameset at the root which is essentially a little navbar in the top frame and the bottom frame for displaying the content. It works well enough but the problem is that anytime an internal link is opened in a new tab or window, no more frameset.

I have seen java script solutions for forcing framesets but that seems to be potentially more problematic. I considered just modifying the headers of the themes to include the navbar but that means changing a lot of themes. Can anyone suggest a solution that won't require me modifying a bunch of existing theme files or some precarious hacked coding? THANKS!

[underworldgaming2.com...] is the site address.
7:17 pm on July 15, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

Hello redjak - welcome to the forums.

Your description of the problem is excellent. We prefer verbal descriptions and code to visiting the site itself, which will change in the near future as you fix things.

I've faced the same issue and IMO some kind of scripted solution is really the best way to deal with all the issues faced by opening a framed URL in its own window or tab. The solution I used is explained here: [webmasterworld.com...] in the post with a blue title FORCE MANY PAGES INTO FRAMES

As far as I know, you need to force the page to have a new frameset built around it somehow and there's no easier way than javascript (although there are some more difficult ways with server-side scripting.)

Maybe someone else has another solution. I've been out of the frameset business for quite a few years ;)
3:06 pm on July 16, 2010 (gmt 0)

New User

5+ Year Member

joined:July 15, 2010
votes: 0

Thanks for your response Tedster! I want to make sure I understand correctly.

With this script I would replace the contents of my frameset (index.htm) with the html and then I would put the passpage piece into the header of my ../Forums/index.php and my ../stats/index.php?