PDA

View Full Version : [TUT] Linking CuteNews into Iframes



Moh
15-02-2007, 06:18 PM
Well many people asked for the sript, how to link a full story into a Iframe.
Just add a template and heres the content.
Active News

<php Coded By .:Jack120:. (HabboxForum) ></php><html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Title</title>
<p><font face="Verdana" size="1"><b>{date} -
<a target="IFRAMENAME" href="URLTO/shownews.php?subaction=showfull&id={news-id}&archive=&start_from=&ucat=6&">
{title}</a></b><br>
{short-story}Full Story

<php Coded By .:Jack120:. (HabboxForum) ></php><head>
<title>{title}</title>
</head>

<p>
<font face="Verdana" size="1"><b>{title}</b>, <span style="font-weight: 400">
<i>Written by {author-name} on {date}</i></span><br>
{full-story}</font></p>Thats it. Just blank the Comment ones and leave News Pagination as it is.
Rep is apreciated.

Dont forget, to have this on your page, use:

<?PHP
$template="TEMPLATENAME";
$category=CATEGORYID;
include("/home/CPANELUSERNAME/public_html/URLTO/show_news.php");
?>

timROGERS
15-02-2007, 06:20 PM
I can't understand still why people need a tutorial for this :(

Moh
15-02-2007, 06:22 PM
I can't understand still why people need a tutorial for this :(
well what else is it? Its not a file download, its telling ppl how to. Which is in other words a tutorial :)

Jahova
15-02-2007, 06:46 PM
Why don't we use the wizard already on cutenews, much easier...?

- T.

ZAG
15-02-2007, 06:57 PM
why have you randomly put

<php></php>

tags in? wth.

Jahova
15-02-2007, 07:04 PM
Acting like he knows php, lol

-::Mr.Dave::-
15-02-2007, 07:05 PM
Dont work mate just gives page cannot be displayed for the full news

nets
15-02-2007, 07:07 PM
<php Coded By .:Jack120:. (HabboxForum) ></php>
:eusa_thin

Moh
15-02-2007, 08:12 PM
:eusa_thin
Well its to stop ppl from saying its there own code :p


Dont work mate just gives page cannot be displayed for the full news
Change the URLTO/shownews.php

ZAG
15-02-2007, 08:15 PM
Well its to stop ppl from saying its there own code :p

But it isnt there to stop them from deleting the line?

Also, why would you stop them from saying its their code? Its only a link...

timROGERS
15-02-2007, 08:35 PM
I lol'd because you can't do "<php" (or at least if you can, your functions would just error), and you're just trying to look "uber l33t".

-::Mr.Dave::-
15-02-2007, 08:40 PM
I changed URLTo

example: http://www.habboattic.co.uk/ha

Moh
15-02-2007, 08:48 PM
:o My files different.
Change shownews.php to show_news.php

can a mod change this pls

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