Cutenews is the best news publishing script for people beginning to learn PHP and just want a simple blog.
Its easy to install and use. It has all the cool features needed in a blogging script. The script can be found at
Cutephp.com.
The index page (or any other page where you want to blog/use cutenews) of your site should have the .php extension. If its .html just open it in notepad
and save it as index.php instead and upload that file. Download the cutenews zip file from
here.
Unzip the file. Connect to FTP server, make a new folder in your root directory, name is cutenews. Upload the files and folders
in it the way they are in the zip file. That is upload the files that are outside any folder in the main cutenews folder. Make 3 new folders
inside cutenews folder. Name them data, inc and skins. Upload their respective files into them.
CHMOD the data folder and all files and folders in it to 777. CHMOD the folder data itself to 777. The index.php
should also be CHMOD ed to 777. Now go to : http://yoursite.com/cutenews/
If you did everything right, you will see some stuff on the index page and a button saying "Proceed Installation". Click it.
The script will itself check for any errors. Fix them if you get any. Now it will take you to a page where you can make your first cutenews
account, fill the details there and you will be the admin.
Open the idex.php of your site (not cutenews). The place where you want your blog entries to show up, add this code:
|
<?PHP
include("cutenews/show_news.php");
?>
|
Login to cuteenws and lick Add News, post anything to test your template, check it on your site's index page.
If it does not look good, you can edit templates by clicking at Options > EditTemplates > active news. Keep playing with it until it starts looking
good. You can also edit templates of comment page, comment adding page, long story etc. You can make new templates too.
To change smilies, just upload the new ones to the smilies directory under folder data, go to Options >
system configuration and change the name of smilies to the ones you uploaded (the file names minus the extension like.gif).
To show the news with a different template use the code below:
|
<?PHP
$template = "templatename";
include("cutenews/show_news.php");
?>
|
To show archives, use the code below:
|
<?PHP
include("cutenews/show_archives.php");
?>
|
You can add categories by clicking at categories, to show news from different category on a different page,
use the code below (assuming the category ID is 3):
|
<?PHP
$category = "3";
include("cutenews/show_news.php");
?>
|
To show 6 latest news use the code below:
|
<?PHP
$number = "5";
include("cutenews/show_news.php");
?>
|
Cutenews should work fine now. Editting templates is easy. If you have any questions regarding this
tutorial, you may ask them
here.
« Back