CuteNews README |
|
Information About The Script
|
|
CuteNews v1.2 by CutePHP
Team.
Cute news is a powerful and easy for using news management system that use flat files to store its database. It supports
comments and archives that can be organized by months.
This script is open-source and you can use the code for anything you want but if
make some major changes please
contact us
|
|
Installing CuteNews
|
|
The installation of CuteNews is really easy and you should do it
without any problems if you fallow these steps:
1) Create a directory on your server ( e.g.
cutenews )
2) Upload the content of the cutenews.1.2.zip to the directory you
created in step 1
3) CHMOD folder_from_step1 and all files/subfolders in it to 777
4) Go to http://yoursite.com/folder_from_step1/index.php
with you favorite browser
5) After installation of CuteNews it is recommended that you delete
the ./inc/install.mod from your server
|
|
Getting The News On Your Page...
|
|
You can show the news, headlines, 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/headlines/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.
when you want to display news and headlines on one page and want when a headline
is clicked, the article to be displayed on the place of the news you must use $static_headlines
= TRUE; before including headlines.
|
Showing Active News
|
|
<?PHP
include("./path/to/show_news.php");
?>
|
|
Showing Headlines
|
|
<?PHP
include("./path/to/show_headlines.php");
?>
|
|
Showing Archives
|
|
<?PHP
include("./path/to/show_archives.php");
?>
|
|
Showing 5 Latest News
|
|
<?PHP
$number = 5;
include("./path/to/show_news.php");
?>
|
|
Showing 8 Latest Headlines
|
|
<?PHP
$number = 8;
include("./path/to/show_headlines.php");
?>
|
|
Showing All Headlines And The Latest News Article On
One Page
|
|
<?PHP
$static_headlines = TRUE;
include("./path/to/show_headlines.php");
$number = 1;
include("./path/to/show_news.php");
?>
|
|
|
Remember that:
- in all of the above examples you must replace ./path/to/... to with your
path where you installed CuteNews.
- in most cases when you include news and headlines in one page, you must
use $static_headlines = TRUE; .
- if you have any problems, you can always go to our support forums and
we'll be more than glad to help you
|
Help & Support
|
|
If you have some problems with CuteNews you can go to our
support forum or email us
|