Is there any examples of UBB running inside of a frame that I could look at? Is there a way to do this that anyone knows of. I would like for users to be able to navigate through the BB with my links at left and my variable banners & links at top of page. TIA
Warning: Running your site in a frame may lead users running IE6 to be unable to properly log in due to "security" settings within the browser. We do NOT advise using frames.
-- Charles Capps UBB.classic™ Developer Having problems? Open up a support ticket!
Looked at your site, does one of your templates have that sidebar or do I have to use a hack or what? That is what I want, I can put a header in, figured that out last night but where do i go for info on how to get this sidebar left? I found another site that had it on both sides... I just need left and top, that would be great! BTW, damn that's rich, your site design is really good, nice work dude.
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.. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />
I'll let JC comment further if necessary. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />
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
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:
what 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...
Originally posted by Joe Postscript . . .: 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?
Nope.. SSI won't work in any fashion, unless you create a java setup which ain't worth it.
Actually, it is possible. Make a Perl script that loads a file, and outputs the result to JavaScript. Then use <script type="text/javascript" src="url"></script> in your header/footer and it will use it.
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
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 ...
So far so good, you guys are stretching my brain here but I'm keeping up. I'm using go live and image ready mainly and the copy and paste seems already a pain cuz I'll be updating those links and features very regularly. My old lady will be assisting so that scares me thinking of her copying and pasting all that stuff together.
If I could just let her edit a file in go live and run a little perl script, that would make more sense. So, I'll attempt this and don't bail on me if i get in a jam man. I've only done one perl script from scratch. I'm a long time tech and programmer but this is not my area of expertise and I am enjoying doing some new stuff. Take it easy, I'm like a techno puppet here so go easy on my old strings eh. <grin>
the perl, maybe more familiar, in terms of understanding what's going on (for me) But, the java looks elegant and my site will be very busy and is already laden with perl.
If we go java, I'm going to need more explicit direction cause I'm totally lost in where to put it, how to hack it, etc. Is there a browser linitation on this java, cause that's one reason I work in go live and image ready, I hate to have incompatible stuff and there's allot of my customers running netscape 4.7 which chokes on some java and flash stuff etc. I have used ssi to get ip adress displayed on the page etc. that is a little familiar.
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.
Actually modifiying your templates is allowed. Thanks for your help LK <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />
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.
The site I administer successfully uses UBB 6.3.1.1 inside a frame and has for some time. You can visit us and view the HTML source to determine how it is done. I don't own the site, but help keep it running.
All 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. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />
Jason STIX Buckley Executive Director / Founder Stix Fx Network http://www.StixFx.com Using: UBB.classicTM 6.4.0