PDA

View Full Version : Cutenews



Kardan
30-12-2004, 11:20 AM
I have uplaoded everything. Made an account for me!

All of thatr stuff. I can log in. Edit/ Add news. Change options.

But how do i get the news itself on my site........

I think i've done a good job by actually installing it by myself.


I'm rubbish at computer stuff

smurf-you
30-12-2004, 11:48 AM
I don't normally use cute news but it's probaly Either a link to it which you'll have to put on your site


Or there's a php/HTML Code that you have to put on your site

Probaly that one



...

Kardan
30-12-2004, 11:58 AM
I tried....

But i have done everything else. I have installed it :8 i just need to put it on to my site.

jamie5k
30-12-2004, 12:01 PM
www.yoursitename/cutenews/README.htm

Kardan
30-12-2004, 12:12 PM
Ok well....

My sites it: www.freewebs.com/aidenchambo AND www.theyreturn.tk

But i uplaoded all of the stuff to:

http://free.hostultra.com/~digitalplanet/

I tried:

http://free.hostultra.com/~digitalplanet/cutenews/README.htm

I also tried: www.freewebs.com/aidenchambo/cutenews/README.htm

They both didn't work.

Also to log on the site is:

http://free.hostultra.com/~digitalplanet/cutenews/index.php

Plus i went to the Readme file and at the bottom it's got HTML stuff i think.

But i don't get that....

Part of readme file:

You can show the news, archives on your page by using some of the following php codes in your page.
The page where you include news, should be with extension .php


--------------------------------------------------------------------------------

General

when showing news, archives you can use $number = x; to limit the to x the number of maximum showed news on one page. If you use $number, "next >>" link to remaining news will be displayed.

if you want to show news, archives from certain category you can use $category = "ID"; where ID is the id of the category, you can choose and more that one category like this: $category = "ID1,ID2,ID3";

when you want to display news and headlines on one page for example, and want when a headline is clicked, the article to be displayed on the place of the news you must use $static = TRUE; before including headlines.

Showing Active News

<?PHP
include("path/to/show_news.php");
?>


Showing with Different Template

<?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>

Showing Archives

<?PHP
include("path/to/show_archives.php");
?>

Showing 5 Latest News

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

Showing 5 News from Category with ID 2

<?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>

Showing All Headlines And The 1 Latest News Article On One Page

<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>

That's the end. So what part do i put where?!

jamie5k
30-12-2004, 12:40 PM
if you have added stuff like this on a page:
<?PHP
include("path/to/show_news.php");
?>


Showing with Different Template

<?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>

Showing Archives

<?PHP
include("path/to/show_archives.php");
?>

Showing 5 Latest News

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

Showing 5 News from Category with ID 2

<?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>

Showing All Headlines And The 1 Latest News Article On One Page

<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>


u need the page extension to be .php

-JT-
30-12-2004, 12:49 PM
free webs doesn't allow .php extentions

Kardan
30-12-2004, 01:39 PM
free webs doesn't allow .php extentions

Thought not.

But i might just have a plan.

Then again

What is the exact html that i have to enter. I'm using hostultra now.....

<html>
<body>
<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>
</body>
</html>

Would this be right

Anti-Pod
30-12-2004, 02:02 PM
u have to save the file as .php :) not html

say your file was this :

cutenews u MUST SAVE it as .php

jamie5k
30-12-2004, 02:55 PM
ye he knows coldersite i told him.

Anti-Pod
30-12-2004, 02:58 PM
i was jsut resaying ! insace he forgotton

Mentor
30-12-2004, 04:10 PM
Thought not.

But i might just have a plan.

Then again

What is the exact html that i have to enter. I'm using hostultra now.....

<html>
<body>
<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>
</body>
</html>

Would this be right
Im not deffeint but i think they have toi be in speart tags?

<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");
?>

<?php
$number = "1";
include("path/to/show_news.php");
?>

Athogh i coudl be wrong, im still a noob at php. And im not to clear on cutenews iner working

xander1123
30-12-2004, 05:12 PM
how do i save it as php?

-JT-
30-12-2004, 05:23 PM
simple, save as, then for example index.php

Mentor
30-12-2004, 07:42 PM
If yourve saving in note pad, put the name say index.php in quote marks iotherewize is wil save as index.php.htm .... dont ask me why?

xander1123
30-12-2004, 08:21 PM
can anyone help me put it on ma site i really aint gotta clue

:Lively
30-12-2004, 08:28 PM
soz i dont no

Anti-Pod
30-12-2004, 08:47 PM
lol its hard to explain lots of ppl get trouble with it :)

xander1123
30-12-2004, 08:57 PM
can ya do it for me?

Anti-Pod
30-12-2004, 09:07 PM
no sorry got my own site and forum to look after (habb-net.co.uk)

xander1123
30-12-2004, 09:21 PM
how the hell do i CHMOD the directory cutenews/data/

jamie5k
30-12-2004, 10:14 PM
u right clik it using your ftp program and clik CHMOD

Anti-Pod
05-01-2005, 09:51 PM
chmod means changing the numbers to 777 or tick them all :)

Rix
06-01-2005, 10:10 PM
how the hell do i CHMOD the directory cutenews/data/
do you want me to do it
i will need ftp access

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