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,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 148
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 148
  • Total: 148

Article Problem (php)

Started by steinar, February 22, 2007, 07:29:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

steinar

Hi there.
I tried to make an article (php version) that would integrate eqdkp... made an <IFRAME marginWidth=0 marginHeight=0 src="http://domain.to/dkp" frameBorder=0 vspace="0" hspace="0" style="overflow:novisible scrolling="no" height=500 width=100%?></IFRAME>
but when i try to preview or view the article i get an error
Parse error: syntax error, unexpected '<' in /path/to/www/nf2/Sources/Load.php(1733) : eval()'d code(231) : eval()'d code on line 1


sorry for obscuring the links and stuff but theres some other links there that aren't secured properly yet so...

anyone have any clues to what is wrong ?
if i run a normal .html page with that iframe it appears correctly, so the problem is in the validator somewhere...

JPDeni

Try wrapping your IFRAME tag in a php echo statement. IOW


echo '<IFRAME ... ></IFRAME>';


steinar

hmm.. that easy... and it worked..

thanks for the quick reply

JPDeni

No problem. :)

Just remember that if you have any html to print out from a php article or block, you need to echo it. You'll be fine.

steinar

could i have chucked in a normal article (not php one) or wouldn't that work since the stuff inside the iframe is php ?

i'm kinda new to this system so thats the reason for my noobish questions =p

JPDeni

Quotecould i have chucked in a normal article (not php one) or wouldn't that work since the stuff inside the iframe is php ?
I don't know. I've never used an iframe, to tell you the truth. I think a normal article would work. You have to be sure not to use the html editor for something like that, though.

Don't apologize for noobish questions. That's how you learn. There's lots of good stuff here, but I don't think that's been asked before.

5thmsstech

#6
Since the only stupid question is the one that you dont ask. Here comes another noob for ya.
Before i throw it out there i would just like to say thanks to all that take the time to help us noobs out.

Ok when i post the code below into an article as php i get a parse error
Parse error: syntax error, unexpected '<' in /home/qtffjkqw/public_html/forums/Sources/Load.php(1733) : eval()'d code(245) : eval()'d code on line 1
When i post it as html nothing shows up. and ofcourse if i access the php directly it shows up fine.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>

<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<TITLE>testpage</TITLE>

<META name="GENERATOR" content="Created by BlueVoda">

<STYLE type="text/css">

div#container

{

   width: 600px;

   position: relative;

   margin-top: 0px;

   margin-left: auto;

   margin-right: auto;

   text-align: left;

}

body

{

   text-align: center;

   margin: 0;

}

</STYLE>

</HEAD>

<BODY bgcolor="#000000" text="#000000">

<DIV id="container">

<IMG src="5thbannerbest.gif" alt="" align="top" border="0" width="575" height="200" style="position:absolute;left:13px;top:9px;width:575px;height:200px;z-index:0">

<IMG src="bearnamemem.gif" alt="" align="top" border="0" width="282" height="32" style="position:absolute;left:16px;top:224px;width:282px;height:32px;z-index:1">

<IMG src="backdownnamemem.gif" alt="" align="top" border="0" width="282" height="32" style="position:absolute;left:304px;top:224px;width:282px;height:32px;z-index:2">

</DIV>

</BODY>

</HTML>

JPDeni

That is not php code. That is html. Put it in a regular html article, without using the editor.

5thmsstech

#8
I tried that and nothing shows up at all.

Here is a link to the page im trying to put in an article.

CLICKY

JPDeni

Here's the deal. You can't just slap in a full html page. That's not how it works. An article only has the "guts" of a page and not the head stuff.

Try using


<DIV id="container">

<IMG src="5thbannerbest.gif" alt="" align="top" border="0" width="575" height="200" style="position:absolute;left:13px;top:9px;width:575px;height:200px;z-index:0">

<IMG src="bearnamemem.gif" alt="" align="top" border="0" width="282" height="32" style="position:absolute;left:16px;top:224px;width:282px;height:32px;z-index:1">

<IMG src="backdownnamemem.gif" alt="" align="top" border="0" width="282" height="32" style="position:absolute;left:304px;top:224px;width:282px;height:32px;z-index:2">

</DIV>


You will likely have to change the reference to your images, as well.

Be sure that you are not using an html editor when you paste the code in.

This website is proudly hosted on Crocweb Cloud Website Hosting.