 |
 |
 |
 |
Registered: 07/21/08
Posts: 45
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69547 - 10/14/02 02:30 PM
Re: UBB Inside A Frame?
|
|
|
As JC is running a beta version, I can guarantee there are no hacks involved. To create a sidebar, the basic idea is that you put the entire UBB in a two-celled table. In the left cell goes the sidebar, and in the right cell goes the rest of the UBB. You accomplish this by setting up the table in the header, including the side bar (like this): <table> <tr> <td> <!-- sidebar code goes here --> </td> <td> And closing it in the footer: </td> </tr> </table> More or less.. I'll let JC comment further if necessary. Graeme Moderator: UBB.classic Assistance Forum NOTE: Due to time constraints, I am unable to respond to personal email. Please post on the boards instead."The ships hung in the sky in much the same way that bricks don't." --Douglas Adams
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69548 - 10/14/02 07:50 PM
Re: UBB Inside A Frame?
|
|
|
Thanks Grame is correct, here is one with a header and sidepanel: Put this (after adding links etc) into the header: <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="center"> <td colspan="2"> <!-- Header --></td> </tr> <tr> <td width="16%"> <!-- sidebar --></td> <td width="84%"> And this in the footer: <!-- ubb --></td> </tr> </table> UBB ™ & UBBT ™ "How to install" the JCTemplates
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69549 - 10/14/02 10:13 PM
Re: UBB Inside A Frame?
|
|
|
Eeexxxcelent! Ok, before i go do this thing just one more question. Is it possible to build that header, footer, and sidebar in its own html file to the correct size, say in a correctly sized table, and then just put a URL reference to that in the UBB header table you are showing me? Or, do I have to go copying and pasting through my comtrol panel every time I make a change. I think the answer is yes but what would that code look like? For example like: my header, footer, and side panels are in their own html files on my site like this: www.mysite.com/ubb/panels/leftside.htmlwww.mysite.com/ubb/panels/header.htmlwww.mysite.com/ubb/panels/footer.htmlwhat does the references to this look like when used with the sample code you just laid down here. I'm not going to attempt it in this post because it would surely be wrong. I'm OK with html, but not really used to making this move here and would be smarter to just ask the pros advice, just one more time. TIA. You guys have been so nice to assist me and I'll pay it forward somehow...
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69553 - 10/15/02 02:18 PM
Re: UBB Inside A Frame?
|
|
|
Something like:<pre>#!/usr/bin/perl if ($ENV{QUERY_STRING} == 1) { open(FILE, "</path/to/ubb/panels/leftside.html"); } elsif ($ENV{QUERY_STRING} == 2) { open(FILE, "</path/to/ubb/panels/header.html"); } elsif ($ENV{QUERY_STRING} == 3) { open(FILE, "</path/to/ubb/panels/footer.html"); } #ofcourse it would make more sense to combine header and footer, I'm just doing the basic things chmod(FILE, LOCK_SH); $file = join('', <FILE>); chmod(FILE, LOCK_UN); close(FILE); print "document.write(unescape('".escape($file)."'));"; exit; 1;</pre>It's untested, but should work. -------------------- UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69556 - 10/15/02 02:49 PM
Re: UBB Inside A Frame?
|
|
|
Well, java is client side and not as much server side, so it would be less load. The perl solution is fine for low traffic sites, but high traffic sites wouldn't want 2 more perl calls for each pageload (header tag and footer tag). That would decrease the benefit of the cache right? I modified a free javascript I found that was used to add a "ssi" ability to put the same footer on each page. BUT you have to put docwrite etc in front of each line and the ending syntax as well ... Example: <pre> document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%">'); document.write('<tr>'); document.write('<td width="75" align="center">'); </pre> UBB ™ & UBBT ™ "How to install" the JCTemplates[This message was edited by J.C. on October 15, 2002 at 11:59 AM.]
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69559 - 10/15/02 03:14 PM
Re: UBB Inside A Frame?
|
|
|
|
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69560 - 10/15/02 03:21 PM
Re: UBB Inside A Frame?
|
|
|
JC, first of all I can just put the script link to Perl in the END of the page, and use <span> for header and footer -> 1 call instead of 2. Also it's not just what you said. You also have to change all ' to ', to , etc... I also wouldn't give any credit to internet.com for that, it's a very simple thing that doesn't require any effort from them. Oh, and yeah, if you agree to modify your UBB you can add to public_common.pl:<pre>my $file = &OpenFileAsString("/path/to/ubb/whatever.html"); my $file2 = &OpenFileAsString("/path/to/ubb/whatever2.html"); my $file3 = &OpenFileAsString("/path/to/ubb/whatever3.html"); $vars_style{Header} = &Template($vars_style{Header}, { LEFT => $file, HEAD => $file2 }); $vars_style{Footer} = &Template($vars_style{Footer}, { FOOTER = $file3 });</pre>Put that right before $Header = qq~ Then in your header/footer use %%LEFT%%, %%HEAD%% for header and %%FOOTER%% for footer to use these htmls. -------------------- UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69562 - 10/16/02 07:01 PM
Re: UBB Inside A Frame?
|
|
|
Hi LK, JC, I got into a dogfight with netscape screwing up my header & sidebar, still fighting the sidebar a little, it doesn't want to float to the top & scale out. Here's the code I'm using for the header & side bar. If I use what you are discussing here, what does it look like together with this. Also, I think we are all agreeing on Java Now? Thanks. http://publishingcommunitycom.powweb.com/cgi-bin/ultimatebb.cgi --- Header Section --- <center> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2">Put Your Header Code Here</td> </tr> <tr> <td width="177">Put your Left Menu Code Here</td> <td> --- Footer Section --- </td> </tr> <tr> <td colspan="2">Put Your Footer Code Here</td> </tr> </table> </center>
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69563 - 10/17/02 01:52 PM
Re: UBB Inside A Frame?
|
|
|
|
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69564 - 10/17/02 02:21 PM
Re: UBB Inside A Frame?
|
|
|
My latest suggestion (template modifying) doesn't use JavaScript (note- it's JavaSCRIPT, not Java, Java is a scripting language which uses applets) Try to make it: --- Header Section --- <center> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2">%%HEAD%%</td> </tr> <tr> <td width="177">%%LEFT%%</td> <td> --- Footer Section --- </td> </tr> <tr> <td colspan="2">%%FOOTER%%</td> </tr> </table> </center> Then add what I said to public_common.pl, right before "$Header = qq~" -------------------- UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#69567 - 01/24/03 11:39 AM
Re: UBB Inside A Frame?
|
|
|
I as well use headers and footers ... http://www.MotorsportsLounge.com If you go into some specific forums, I have them color matched: - Mike Wallace Official Forum- Mike McLaughlin Official ForumAll mine is hand coded html without any scripting. It is a pain since if I have a menu change, I need to edit each seperate style template. But, that is ok. In the end, it is all about the user's view, not our time. Jason STIX Buckley Executive Director / Founder Stix Fx Network http://www.StixFx.com Using: UBB.classicTM 6.4.0
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|