Previous Thread
Next Thread
Print Thread
Hop To
#69543 10/13/2002 12:03 AM
Anonymous
Unregistered
Anonymous
Unregistered
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

#69544 10/13/2002 12:46 AM
Anonymous
Unregistered
Anonymous
Unregistered
You can do that without a frame. Check my site out for examples <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

ubb.classic or ubb.threads


[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

#69545 10/14/2002 10:10 AM
Anonymous
Unregistered
Anonymous
Unregistered
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!

#69546 10/14/2002 11:07 AM
Anonymous
Unregistered
Anonymous
Unregistered
Hi JC,

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.

#69547 10/14/2002 2:30 PM
Anonymous
Unregistered
Anonymous
Unregistered
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

#69548 10/14/2002 7:50 PM
Anonymous
Unregistered
Anonymous
Unregistered
Thanks <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

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>

[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

#69549 10/14/2002 10:13 PM
Anonymous
Unregistered
Anonymous
Unregistered
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.html
www.mysite.com/ubb/panels/header.html
www.mysite.com/ubb/panels/footer.html

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...

#69550 10/15/2002 1:09 AM
Anonymous
Unregistered
Anonymous
Unregistered
Quote
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.

[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

#69551 10/15/2002 8:26 AM
Anonymous
Unregistered
Anonymous
Unregistered
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.

--------------------
[]https://www.ubbdev.com/columns/lk/lkavatar.jpg[/]
UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!

#69552 10/15/2002 1:24 PM
Anonymous
Unregistered
Anonymous
Unregistered
Thanks LK for offering to help him write this up <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

#69553 10/15/2002 2:18 PM
Anonymous
Unregistered
Anonymous
Unregistered
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.

--------------------
[]https://www.ubbdev.com/columns/lk/lkavatar.jpg[/]
UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!

#69554 10/15/2002 2:37 PM
Anonymous
Unregistered
Anonymous
Unregistered
What about doing it completely in java, so no extra perl calls?

[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

#69555 10/15/2002 2:45 PM
Anonymous
Unregistered
Anonymous
Unregistered
But wouldn't that be more difficult than writing it in HTML and using Perl?

--------------------
[]https://www.ubbdev.com/columns/lk/lkavatar.jpg[/]
UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!

#69556 10/15/2002 2:49 PM
Anonymous
Unregistered
Anonymous
Unregistered
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>

[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

[This message was edited by J.C. on October 15, 2002 at 11:59 AM.]

#69557 10/15/2002 3:00 PM
Anonymous
Unregistered
Anonymous
Unregistered
Ok,

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>

#69558 10/15/2002 3:10 PM
Anonymous
Unregistered
Anonymous
Unregistered
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.

#69559 10/15/2002 3:14 PM
Anonymous
Unregistered
Anonymous
Unregistered

#69560 10/15/2002 3:21 PM
Anonymous
Unregistered
Anonymous
Unregistered
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.

--------------------
[]https://www.ubbdev.com/columns/lk/lkavatar.jpg[/]
UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!

#69561 10/15/2002 3:25 PM
Anonymous
Unregistered
Anonymous
Unregistered
Actually modifiying your templates is allowed. Thanks for your help LK <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


[]http://www.ubbdesign.com/sigfile.gif[/]
UBB â„¢ & UBBT â„¢ "How to install" the JCTemplates

[This message was edited by J.C. on October 15, 2002 at 01:07 PM.]

#69562 10/16/2002 7:01 PM
Anonymous
Unregistered
Anonymous
Unregistered
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>

#69563 10/17/2002 1:52 PM
Anonymous
Unregistered
Anonymous
Unregistered

#69564 10/17/2002 2:21 PM
Anonymous
Unregistered
Anonymous
Unregistered
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~"

--------------------
[]https://www.ubbdev.com/columns/lk/lkavatar.jpg[/]
UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!

#69565 12/17/2002 8:04 AM
Anonymous
Unregistered
Anonymous
Unregistered
Some someone please clarify which files to modify?

That would be a helpful start for me.

Edit - Duh I just checked the admin screen and its all in there... <img src="https://www.ubbcentral.com/boards/images/graemlins/tongue.gif" alt="" />

[This message was edited by sweetasdude on December 17, 2002 at 05:20 AM.]

#69566 01/23/2003 12:31 PM
Anonymous
Unregistered
Anonymous
Unregistered
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.

http://www.lugerforum.com

Regards, biometrics

#69567 01/24/2003 12:39 PM
Anonymous
Unregistered
Anonymous
Unregistered
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 Forum

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


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 1,165 guests, and 234 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)