Previous Thread
Next Thread
Print Thread
Rate Thread
#183977 12/27/2004 1:55 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
I tried to put IFRAME coding into the general announcement area, so it would show right above the forum topics. When I tested it out, all I received was a blank box, and the rest of the forum itself was gone.

It worked fine on a test webpage, but not the UBB board itself.

Is this something that can't be done, or??

I am not real savvy when it comes to this stuff so you will likely lose me easily.

smile Just a warning.....

Sponsored Links
#183978 12/27/2004 1:59 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
I guess I should say I tried doing this via the control panel and the general display area. I am using classic 6.50

#183979 12/27/2004 3:32 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Did you remember the close-iframe tag?

What's the URL to your board?


UBB.classic: Love it or hate it, it was mine.
#183980 12/27/2004 10:45 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
http://www.freaksforum.com/cgi-bin/ultimatebb.cgi

I think I got it now, however if you set it to NCAA Football, you can't scroll all the way down, and the scroll bar disappears.

Again, I don't know much, I tried to resize the height, and had to set it to 200% instead of 100%, because you couldn't see the info properly.

Not sure if I have it right or not, but I doubt it.

Thanks for your reply.

#183981 12/28/2004 12:54 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
iframe is a tag like any other. setting it's height property will be based on it's container, not what it contains

Sponsored Links
#183982 12/28/2004 6:46 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
Ian thanks for the reply, can you clarify what exactly you mean.

I tried setting the height to 300%, but then there wasn't a scroll bar, and you still couldn't see all the info.

Thanks for your reply.

#183983 12/28/2004 8:30 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ok


Assume a div 5px tall
Code
<div style="height: 5px;">
</div>
now, set the iframe height to 100%, enclose it into div

Code
<div style="height: 5px;">
<iframe height="100%" src="..."></iframe>
</div>
iframe will take 100% of its container, being 5px.

Setting its height to something like 200px would be best

#183984 12/29/2004 8:39 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
Ian

Please look at:

http://www.freaksforum.com/cgi-bin/ultimatebb.cgi

Tell me if that looks better, and is correct.

If you have any suggestions let me know.

I added in the very first line of what you put above, right in front of the iframe coding and it seems to have worked !!

smile

#183985 12/29/2004 8:46 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Works in IE, doesn't work in Firefox.

You should define the iframe height in pixels instead of using a percentage rather than use a div to enclose it.


UBB.classic: Love it or hate it, it was mine.
#183986 12/29/2004 9:17 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
what CC said, also, I was using 5px as an exxageration to emphasize a point. more than 5px is highly reccomended

Sponsored Links
#183987 12/30/2004 8:39 PM
Joined: Jul 2003
Posts: 46
User
User
Offline
Joined: Jul 2003
Posts: 46
To be honest, I have no clue what either of you are talking about. I appreciate the help 110%.

#183988 12/30/2004 8:41 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Code
<iframe height="200"></iframe>
I was just making up words to make myself look smart, but CC was saying it'd be best to define an absolute height for the iframe, not using percentages


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)