
N-13 News
3.1
Requirements
- PHP 4+ (preferably 5+)
- 1 MySQL database
Installation
- Extract and upload all files to your server
- CHMOD db.php to 777
- Run install.php from your web browser
- Follow the instructions
- Once the installation is finished CHMOD db.php to 755
- Done!
Integrating news
Integrating news posts into your current design is now easier than ever. Use the following code samples to control how your news is displayed.
<?php
$cat = "Category name";
include 'news/index.php';
?>
This will show all the posts within that category. If a category isn't specified the default category is displayed. If you want to display all categories change cat to all, $cat = "all";
<?php
$author = "Author name";
include 'news/index.php';
?>
This will display all posts for the specified author, if no author is specified all authors posts are shown.
<?php
$template = "Template name";
include 'news/index.php';
?>
This will use a certain template, if no template is specified whichever template is selected as default will be used.
<?php
$cat = "Category name";
$author = "Author name";
$template = "Template name":
include 'news/index.php';
?>
You can always mix and match the above methods.
For help visit http://network-13.com