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

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 07:56:27 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 127
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 82
  • Total: 82

iframe in article

Started by scotte44, November 13, 2005, 05:15:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scotte44

I am trying to pull in an external page to the middle of my site when a menu link to an article is clicked. All I get is the original iframe html. Here is what I am using:
echo '<IFRAME src="http://www.mbdguild.com/roster.php" width="100%" height="3600" marginwidth=0 marginheight=0 frameborder=0 scrolling=no></IFRAME>' ;

gerrymo

Try it without the php tags Just..


<IFRAME src="http://www.mbdguild.com/roster.php" width="100%" height="3600" marginwidth=0 marginheight=0 frameborder=0 scrolling=no></IFRAME>

snork13

http://www.mbdguild.com/roster.php

doesn't appear to be anything there, it pulls the 404 in for me

gerrymo

I got a whole page of errors on your link snork.

scotte44

I fixed the errors. Took out the php tags and it still just gives me text.

gerrymo

Try it in an html center block (no php tags), or a php block (with Tags). If that shows OK then it shouln't be too hard to get it into an article.

scotte44

Im stumped, it works fine as an html or php center block, but since I dont want the content on my homepage I need an article.

tattooedpierre

Quote from: scotte44 on November 13, 2005, 07:34:52 PM
Im stumped, it works fine as an html or php center block, but since I dont want the content on my homepage I need an article.

Your implementation of overlib.. I've been trying to get that to work myself. There is a package called itemStats that allows you to link items in BB Code and display the mouseover data pulled from Allakhazam, but just now its only implemented for phpBB :(ÂÃ, 

http://forums.eqdkp.com/index.php?showtopic=1768&st=225

.. anyways, i'm just interested as to how you got overlib working :( .. and if so, does it work anywhere on your site?


Leviathan

Scotte44, it works on my test site. That is what your looking for, right?

Just insert the iframe line as PHP code (so with the echo command) in a PHP article, go to the TPAdmin menu manager and add a new article item, activate it and it should show up as a link in the menubox block (assuming you have one). That is how I do it and worked for me so far!

scotte44

Im an idiot, didnt try using a php article, just regular. Worked like a charm, thanks. :)

iowamf

A regular article works OK too though ...

I use mostly regular articles for iframes so I can have a bunch of them in one category and use the "intro" text fetaure - the PHP articles don't have the "intro" feature.

scotte44

I tried the regular article, but it wouldnt display the iframe.

iowamf

Understood, but a PHP article is not required.

This is one of my non-PHP articles to pull up help in an iframe - its only one line of code.

<iframe src="http://mysite.com/portal/Themes/default/help/index.english.html"  width="100%" height="1800"></iframe>

scotte44

I used the code you have above in a non php block and got the same result. All I get back is the exact html iframe code. The page doesnt show up.

Leviathan

scotte44 is right, that does NOT work (tested myself).  :coolsmiley:

iowamf, you're not pulling our leg are you  :knuppel2:

If not than you're either using a different or hacked version of TP (I'm using 0.75) or you're using php-articles and just don't know it  :idiot2:

Please enlighten us brother iowamf? ;D

iowamf

I bet I know what the issue is ... it's that crappy editor Bloc hates so much.

There is an issue when you use the WYSIWG editor to enter raw html into an article - especially when the article  *STARTS* with raw HTML - as in my example.  Note, the "toggle" mode of that editor doesn't work too well either - it toggles your text ;-)

Make sure you go into the General Settings of TPADMIN and turn that editor off if you want to enter raw html into an article. Where it says - Use the WYSIWYG editor?:   Make sure it says NO.

Nokonium

I don't use the editor and that code works fine.

Leviathan

Quote from: iowamf on November 14, 2005, 11:17:21 PM
I bet I know what the issue is ... it's that crappy editor Bloc hates so much.

Your absolutely right, it's the WYSIWYG editor. I turned it off and the iframe code now also works in a normal non-php article. Cheers  :)

KBkustoms

OK...I'm getting frustrated now. :(

And I may be wrong, but, from what I gather by reading through this thread, by using the Iframe code :
<iframe src="http://www.kbkustoms.com/2003/index.html"
height="100%" width="100%" Scrolling="yes"></iframe>

into a regular article...it "should" display the linked page within my TP (075) enabled  forum/site (SMF 1.05)...correct??

Ive tried PHP (with and w/o the "echo" tags) and Regular articles...turned off the WYSIWYG editor...activated article, but still do not see anything (no code, no text, nothing but "no articles in this section").

I dont believe I have quite "grasped" the hierarchy or structure either...is there a good "basic guide" as to how the category/article/menu functions relate to one another?
Everytime I think I'm getting the hang of it...I run into something like this and take two steps back...so to speak. ???
THANKS and Im sure I will feel like an idiot, :idiot2: but, at this point, thats better than getting nowhere fast! ;)

gerrymo

height="100% needs to be changed to a fixed height. % only works for width. You need to turn off the editor before you make the new article, not after. Then try it as php, and as html and see if that works.

Ray

Quote from: gerrymo on December 12, 2005, 11:25:58 AM
height="100% needs to be changed to a fixed height. % only works for width. You need to turn off the editor before you make the new article, not after. Then try it as php, and as html and see if that works.

Thanks I have myself been trying to get Iframes to work
height="100% needs to be changed to a fixed height worked

thanks

KBkustoms

THANKS gerrymo!!!! ;D

"Ultimately" .... that did the trick!!!

On the WYSIWYG editor...trust me...I tried the Iframe code many times after I disabled the editor and before posting...sorry if I led you to another conclusion :)

As I mention above...ultimately removing the "%" in height did work...but, it took a few tries before anything changed.

  • First I tried editing an existing article with just the html ..... no change.
  • Then I edited an existing php article...no change (and I made sure to activate them after edits...just in case)

So gettting frustrated again..but not ready to give up yet...lol...I created a NEW php article and inserted the corrected code .... Activated.... and BOOM!!  There it was!!!
Subsequently, I created a new reg. article, inserted the html and it worked too!!

Now why it didnt work until I created a new article...I dunno...but at least its working now!!! 
THANKS AGAIN for the info!!!

phocas

very cool... had to read the whole thread, but this rox.  i'm using it for my "back issues"

if anyone knows of a way to force a redirect to the new site upon someone accessing one of the old html pages ... i'm all ears... otherwise... love this little snippet

coppermine... you're next!