PDA

View Full Version : How do I...



Flauvo
18-03-2006, 08:19 PM
How do i get news to show on a page without iframes?
I looked at intergrating on the cutenews file but it dosnt work :s

:Blob
18-03-2006, 08:28 PM
do a PHP include

or you can always copy the code of the news onto that page

Mentor
18-03-2006, 09:49 PM
Well you know the copy and paste exsamples for a php include on the page?
And as You Obvilsy realy do know php.
And that its so obvios a trained moneky could do it, considering its COPY AND PASTE.

So wheres the problem, as if you knew php surly you could write an intergation script yourself if you had to..

Flisker
18-03-2006, 11:00 PM
And end the Page in .php not .htm or .html

Jamie.
19-03-2006, 08:36 AM
Well you know the copy and paste exsamples for a php include on the page?
And as You Obvilsy realy do know php.
And that its so obvios a trained moneky could do it, considering its COPY AND PASTE.

So wheres the problem, as if you knew php surly you could write an intergation script yourself if you had to..
lol, i trained monkey obviously beat me then

Tomm
19-03-2006, 08:42 AM
<?php
include('path/to/show_news.php')
?>

Flauvo
19-03-2006, 09:01 AM
Mentor, what's with the insults?

I never actually said I knew PHP. I hardly do. All I know is that it's easy to pickup if you know html.

Go ahead with the insults:s

Tomm
19-03-2006, 09:02 AM
Just add:
<?php
include('path/to/show_news.php')
?>
Where you want the news to appear.

Flauvo
19-03-2006, 12:21 PM
That dosnt work :s

timROGERS
19-03-2006, 12:28 PM
Make sure you've ended the include link with a semicolon. If you've done that or it dosen't fix it, post the code :)

Tomm
19-03-2006, 12:37 PM
Ooops sorry. I keep forgetting to add ; in my php scripts then I have to go all the way though it adding them :(

Flauvo
19-03-2006, 12:40 PM
<?PHP
$number=5;
include("/home/twenty/public_html/cutenews/show_news.php");
?>

That is what i have entered as the cutenews intergration wizard said:s

:Blob
19-03-2006, 12:47 PM
It should be

<?PHP
$number=5;
include("cutenews/show_news.php");
?>

Flauvo
19-03-2006, 12:50 PM
Isnt that just showing the last 5 active news?

I'll try it anyway

EDIT- Dosnt work :s

:Blob
19-03-2006, 12:58 PM
What does it say?

Flauvo
19-03-2006, 12:58 PM
It just dosnt show anything where i added the code

:Blob
19-03-2006, 01:04 PM
try

<?PHP
include "cutenews/show_news.php";
?>

Flauvo
19-03-2006, 01:08 PM
Nope, It might be my host.
I'm on a sub-domain if that makes any differance

Want to hide these adverts? Register an account for free!