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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 495
  • Total: 495

Iframe Automatic resizing

Started by Rocket, November 12, 2005, 01:06:53 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

IchBin

No, you can actually make a php include and include it from another site AFAIK.

Sakuragi

does not work for me 
and i can't edit the article :(

[attachment deleted by admin]

IchBin

Turn off the editor in your TPAdmin panel and try to create your article then.

Maya

I was playing with this code yesterday, and I couldn't get it to work either, (even tried running it through a static page), and nada.

I tried it as an article with the editor toggle on and off, and both times got the same thing..

I have np getting the simple iframe code to work, but this one is kind of wonky, and the auto resize is pretty nifty ..


sc2sick

hmm... i'm having trouble getting this to work, where to i place the code?  the first code worked, but i really would rather not scroll over... the autosize would be nice.  i just don't know how much of the code i have to edit or where to place it.

Rocket

1)  Copy the entire code
2)  Paste the entire code in an article
3)  edit this bit at the bottom of the script.

<body>
<iframe id="myframe" src="/yourfile/myfile.html or .php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>
</body>
</html>


Replace the "/yourfile/myfile.html or .php"  with the path to your file or folder.  For example if your gallery is in the folder "gallery"  your path would be - "/gallery/index.php"

Nothing else needs to be modifiied.  Save the article.

Go to Menu Manager and create a link to the article.

sc2sick

once i create a menu, how do i navigate to it?

sc2sick

i feel tarded....  i'm usually pretty decent @ this kind of stuff.

Rocket

mmmmkkk, You should have a block called content that is installed by default with TP (I think).

When you open TP admin, you will see a link called Menu Manager.  Once inside, type the name for the link, "Gallery" is good :)  and then select Article from the bullet list, choose the gallery article you made hit save and you are done!  Click the link. 

Your gallery will open in the center of your site.

I hope that answers your question.

This website is proudly hosted on Crocweb Cloud Website Hosting.