Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 33 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 07/21/08
Posts: 45
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#69543 - 10/13/02 12:03 AM UBB Inside A Frame?
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
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#69544 - 10/13/02 12:46 AM Re: UBB Inside A Frame?
Anonymous
Unregistered

You can do that without a frame. Check my site out for examples

ubb.classic or ubb.threads



UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69545 - 10/14/02 10:10 AM Re: UBB Inside A Frame?
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!
Top
#69546 - 10/14/02 11:07 AM Re: UBB Inside A Frame?
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.
Top
#69547 - 10/14/02 02:30 PM Re: UBB Inside A Frame?
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..

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?
Anonymous
Unregistered

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?
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...
Top
#69550 - 10/15/02 01:09 AM Re: UBB Inside A Frame?
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?
[/QUOTE]Nope.. SSI won't work in any fashion, unless you create a java setup which ain't worth it.


UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69551 - 10/15/02 08:26 AM Re: UBB Inside A Frame?
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.

--------------------

UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
Top
#69552 - 10/15/02 01:24 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

Thanks LK for offering to help him write this up


UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69553 - 10/15/02 02:18 PM Re: UBB Inside A Frame?
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.

--------------------

UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
Top
#69554 - 10/15/02 02:37 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

What about doing it completely in java, so no extra perl calls?


UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69555 - 10/15/02 02:45 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

But wouldn't that be more difficult than writing it in HTML and using Perl?

--------------------

UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
Top
#69556 - 10/15/02 02:49 PM Re: UBB Inside A Frame?
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>


UBB ™ & UBBT ™ "How to install" the JCTemplates

[This message was edited by J.C. on October 15, 2002 at 11:59 AM.]
Top
#69557 - 10/15/02 03:00 PM Re: UBB Inside A Frame?
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>
Top
#69558 - 10/15/02 03:10 PM Re: UBB Inside A Frame?
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.
Top
#69559 - 10/15/02 03:14 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

here is the one I used.. (didn't create it, just used it for a different purpose).

http://javascript.internet.com/messages/footer-text.html


UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69560 - 10/15/02 03:21 PM Re: UBB Inside A Frame?
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.

--------------------

UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
Top
#69561 - 10/15/02 03:25 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

Actually modifiying your templates is allowed. Thanks for your help LK



UBB ™ & UBBT ™ "How to install" the JCTemplates

[This message was edited by J.C. on October 15, 2002 at 01:07 PM.]
Top
#69562 - 10/16/02 07:01 PM Re: UBB Inside A Frame?
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>
Top
#69563 - 10/17/02 01:52 PM Re: UBB Inside A Frame?
Anonymous
Unregistered

Not really sure what you are asking ?


UBB ™ & UBBT ™ "How to install" the JCTemplates
Top
#69564 - 10/17/02 02:21 PM Re: UBB Inside A Frame?
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~"

--------------------

UBBDev.com - //h3r3 1337 UBB d3v3l0p3rz c0m3 4 4n5w3rz!
Top
#69565 - 12/17/02 07:04 AM Re: UBB Inside A Frame?
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...

[This message was edited by sweetasdude on December 17, 2002 at 05:20 AM.]
Top
#69566 - 01/23/03 11:31 AM Re: UBB Inside A Frame?
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
Top
#69567 - 01/24/03 11:39 AM Re: UBB Inside A Frame?
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.

Jason STIX Buckley
Executive Director / Founder
Stix Fx Network
http://www.StixFx.com
Using: UBB.classicTM 6.4.0
Top
Page 1 of 3 1 2 3 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image