Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

February 03, 2023, 10:06:24 PM

Login with username, password and session length
Members
  • Total Members: 3856
  • Latest: Bixby
Stats
  • Total Posts: 193937
  • Total Topics: 21130
  • Online today: 73
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 47
Total: 47

Author Topic: Using Iframes [TIP]  (Read 24569 times)

0 Members and 1 Guest are viewing this topic.

Kiwitje

  • Guest
Re: Using Iframes [TIP]
« Reply #50 on: October 18, 2006, 08:40:10 AM »
Hmmm, my Iframes doesn't autoresize :( I Iframed my Coppermine gallery, but when opening, the sizes aint any good :( You have to scroll. What can I do about it?!

Try this

in the code do u see this part?

var mAdjust=0

its right near the top - a bit after the credits for the script

set it to something like 4 or 10 or 20 - whichever one solves ur problem ;)

goddamn, you're the best :) Thanks!

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3175
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Using Iframes [TIP]
« Reply #51 on: October 18, 2006, 08:50:38 AM »

Try this

in the code do u see this part?

var mAdjust=0

its right near the top - a bit after the credits for the script

set it to something like 4 or 10 or 20 - whichever one solves ur problem ;)

Tried that too but it dont work :( but only on one I use ??? The others I use work OK without
Please don't PM me for support without an invitation.


akulion

  • Guest
Re: Using Iframes [TIP]
« Reply #52 on: October 18, 2006, 08:55:07 AM »
hhmm try setting it really high

on one of mine i had to set it to 54 to get it working

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3175
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Using Iframes [TIP]
« Reply #53 on: October 18, 2006, 09:04:10 AM »
I have set from 4 to 100 but it still stays the same :(
* Lesmond goes to try 1000
:)
Please don't PM me for support without an invitation.


akulion

  • Guest
Re: Using Iframes [TIP]
« Reply #54 on: October 18, 2006, 09:12:46 AM »
loool

whats the page ur using?

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3175
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Using Iframes [TIP]
« Reply #55 on: October 18, 2006, 09:29:03 AM »
This one
I have it in a custom action, but I have my Gallery in that too using the same script and that works fine
« Last Edit: October 18, 2006, 10:54:40 AM by Lesmond »
Please don't PM me for support without an invitation.


akulion

  • Guest
Re: Using Iframes [TIP]
« Reply #56 on: October 18, 2006, 09:39:03 AM »
yup i think we have hit a limitation on the script

a lot of iframe scripts using Ajax or js seem to not work with 'externally based' sites (sites not on your own domain) - why? something to do with security or something, dont know exactly

the best option for you is to use a normal iframe in this case:

Code: [Select]
<iframe name="I3" src="http://astore.amazon.co.uk/lesmondsplace-21/202-8298719-1476605?%5Fencoding=UTF8&node=1" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" height="1050" width="100%"></iframe>

the above code will show ur page properly sized :up:

cyberbillp

  • Guest
Re: Using Iframes [TIP]
« Reply #57 on: October 18, 2006, 10:28:13 AM »
How do I get the content of the iframe to use the current theme?

akulion

  • Guest
Re: Using Iframes [TIP]
« Reply #58 on: October 18, 2006, 10:36:22 AM »
u cant by default since the frame is getting a page which is not part of the SMF or TP

but u can try and include the CSS for the theme i the page code manually and it wil somewhat resemble the theme as long as the same ID's are used

technodragon73

  • Guest
Re: Using Iframes [TIP]
« Reply #59 on: October 18, 2006, 09:37:06 PM »
How would you add this to a php file?  I tried using it to change the template files I use to show a variety of pages I have that I use an iframe but I keep getting parse errors because the php in there confuses some of the javascript with php code and errors out.  I have put it within an echo tag (basically just replaced the iframe line with this code...

Code: [Select]
        echo '<iframe width="100%" height="1200" src="http://dragontalk.net/coppermine/"></iframe>';

that is the line i was replacing...thanks in advance for any help.

try this it may work...

First manually edit the code and REPLACE ALL " (double quotes) with ' (single quotes)

Then use this echo statement:

echo " all the code here ";

just put all the code where it says above :)



You are awesome Akul!  That worked perfectly!  I had thought about doing that, but I wasn't sure if you could use quotes to encase an echo statement

Thanks a bunch!