TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 02:05:06 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 71
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 106
  • Total: 106

100% Height Iframe

Started by Lord Anubis, January 17, 2008, 01:06:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lord Anubis

Can you post your original untouched index.template.php and I will add the code for ya ;)

Hairy

Here is the one currently being used, it's not the original because I changed a few little things to suit my current theme, I didn't touch <head> tags  :-\

*added arcade button
*changed image names to show my new images
*some footer changes for copyright/images

Cheers

Hairy

That's strange, last attachment is larger then the previous  :o

Lord Anubis

Okay I figured out my mistake on the code (didn't need to use echo in the code between the head tags :uglystupid2: )

Here is a fixed copy with the Iframe intact, give the iframe code I posted a try and let me know if it does it correctly ;)

Hairy

Thanks for that, no errors and I now see how it works.

Is there anyway of getting it to resize when the page inside the IFrame changes size instead/also when you resize your own browser?

To see what I mean check this out http://www.samclan.com/index.php?page=60

This IFrame is for someone to put in a gameserver IP and then it loads pictures within the IFrame from that gameserver.

But it doesn't resize by itself, I need to keep resizing my browser to be able to see the new pictures loaded since last resize.

Put our gameserver IP (8.3.7.120) in there and you can see what I mean (there is ~500 pictures that will eventually load)

Cheers
Hairy  :up:


PS. here's the one we currently use http://www.samclan.com/index.php?page=59 but I was hoping to get rid of the scrollbar for the IFrame  ^-^

Lord Anubis

If you could automatically have your game servers IP in there I think it would auto resize to all to the content, but I have yet to get this to resize it dynamically to content that isn't there on the initial page load...I am sure there might be a way, but I haven't figured that yet :'(

Ken.

LA, have you looked at whats available on DynamicDrive to see if any of their code will help you?

There are several threads here on TP where their code has worked well for auto-resizing iframes for the Coppermine gallery and other things.

Heres one example of the DD iframe code:
http://www.dynamicdrive.com/dynamicindex17/dowiframe.htm
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Lord Anubis

Hmmm, I might have to mess with that :up:

Hairy

Quote from: Lord Anubis on February 07, 2008, 04:32:46 PM
If you could automatically have your game servers IP in there I think it would auto resize to all to the content, but I have yet to get this to resize it dynamically to content that isn't there on the initial page load...I am sure there might be a way, but I haven't figured that yet :'(

The site I'm linking to is provided externally by our anti-cheat friends so I don't know how I can get the IP to load by itself, also if it was mainly for our server I could just set a size that would cover our pics, other servers can have several thousand pics instead so that wouldn't be good.

Good luck  8)