Custom Header Mod to use separate HTML file instead of var $Header - 01/24/2002 5:15 AM
Issue:
(Was frames, now custom style mod. See update below)
Getting UBB to display output in a specific frame of a frameset, with multiple framesets.
I would like to retain the use of frames for a portion of my website, with the UBB displayed in the main frame. However, each forum needs to display in a different frameset, as there are different header and sidebar frames for different forums. I want to keep the separate html files for the frames so that users can modify their own forum frame's content without having access to the CP (with a simple CGI html editor).
If you could set a style so that the requested UBB link became the SRC value of a frameset template, that would solve the problem. Instead of using the header and footer html to wrap the UBB output, you would tell UBB to use a specific frameset page, and put the summary or thread in the "main" frame.
That way, if a user clicks a link to the latest topic from my home page (using Latest Threads), UBB would look at the style for that forum, and sent them to the correct frameset. If a user is looking at a thread in a particular framed forum and clicks a link for a forum with a different frameset, UBB would send them the new frameset for that forum.
Example:
Forum A uses framesetA with headerA.htm and sidebarA.htm.
Forum B uses framesetB with headerB.htm and sidebarB.htm.
Both framesets use UBB output in the frame called "main".
User clicks LT link for forum A on homepage, and gets framesetA.
User in framesetA clicks link for forum B, and gets framesetB (instead of forumB in framesetA)
The frameset would look something like this:
[code][/code]You'd have to have an "if" statement to tell UBB to use target=main within one forum or target=_top if another forum is requested. I'm sure there may be other target conflicts to consider, but I can only think of a few...
Links out of the UBB, but in my domain would be target=_top.
Links out of my domain would be target=_blank
This mod would allow you to use regular styles for some forums, and frames for others. Currently, if you have one forum in a frame and click a link to a non-framed forum, you get the whole page layout within one frame.
Has anybody tried this and/or how hard would it be to mod the style setup to accomplish this?
Thanks,
Getagrip Greg
(Was frames, now custom style mod. See update below)
Getting UBB to display output in a specific frame of a frameset, with multiple framesets.
I would like to retain the use of frames for a portion of my website, with the UBB displayed in the main frame. However, each forum needs to display in a different frameset, as there are different header and sidebar frames for different forums. I want to keep the separate html files for the frames so that users can modify their own forum frame's content without having access to the CP (with a simple CGI html editor).
If you could set a style so that the requested UBB link became the SRC value of a frameset template, that would solve the problem. Instead of using the header and footer html to wrap the UBB output, you would tell UBB to use a specific frameset page, and put the summary or thread in the "main" frame.
That way, if a user clicks a link to the latest topic from my home page (using Latest Threads), UBB would look at the style for that forum, and sent them to the correct frameset. If a user is looking at a thread in a particular framed forum and clicks a link for a forum with a different frameset, UBB would send them the new frameset for that forum.
Example:
Forum A uses framesetA with headerA.htm and sidebarA.htm.
Forum B uses framesetB with headerB.htm and sidebarB.htm.
Both framesets use UBB output in the frame called "main".
User clicks LT link for forum A on homepage, and gets framesetA.
User in framesetA clicks link for forum B, and gets framesetB (instead of forumB in framesetA)
The frameset would look something like this:
[code][/code]You'd have to have an "if" statement to tell UBB to use target=main within one forum or target=_top if another forum is requested. I'm sure there may be other target conflicts to consider, but I can only think of a few...
Links out of the UBB, but in my domain would be target=_top.
Links out of my domain would be target=_blank
This mod would allow you to use regular styles for some forums, and frames for others. Currently, if you have one forum in a frame and click a link to a non-framed forum, you get the whole page layout within one frame.
Has anybody tried this and/or how hard would it be to mod the style setup to accomplish this?
Thanks,
Getagrip Greg