My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Installation  
Installation instructions on how to install N-13 News
Featured
Updated Oct 27, 2010 by chriswat...@gmail.com

Requirements

  • PHP 5+
  • 1 MySQL database

Installation

  1. Download the latest version of N-13 News from the download page
  2. Extract and upload to your web server
  3. Navigate to the installation directory http://example.com/news/install
  4. Follow the instructions and enter all the information required. Once the installation is complete you can then login to the admin panel located at http://example.com/news/admin.php

Troubleshooting

Your database information gets written to the file db.php. If you need to make changes to your connection info edit this file.

config.php contains some settings you can change.

// Adds the security key image to the login form, 1 = on 0 = off
$image_verification = 0;	

Should you require a security image on the admin login form change the above value to 1

// Specify here which language should be used on the login module
$default_login_language = 'English';

To change which language gets shown by default on the login form change the value above. Make sure the file exists in the language directory. If the value gets set to a file that doesn't exist english will be used instead.

// Specify here which language should be used on the index.php file
$default_index_language = 'English';

When a user submits a comment or registers a new account they will be prompted with messages in whichever language you specify here. If no language is specified or the specified file doesn't exist, english.php will be used instead.

// Default options for the add news form

// 0 = Collapse archive options, 1 = Expand archive options
$newsform_options['toggle_archive']	= 0;

// 0 = Collapse date options, 1 = Expand date options
$newsform_options['toggle_date'] = 0;

// 0 = Collapse summary textbox, 1 = Expand summary textbox
$newsform_options['toggle_summary']	= 0;

// 0 = Collapse comments options, 1 = Expand comments options
$newsform_options['toggle_comments'] = 0;

// 0 = Collapse category options, 1 = Expand category options
$newsform_options['toggle_categories'] = 0;

// 0 = Collapse article textbox, 1 = Expand article textbox
$newsform_options['toggle_article'] = 1;

// 0 = Never archive is not selected, 1 = Never archive is selected
$newsform_options['never_archive'] = 1;

// Default comment options. 0 = No, 1 = Yes, 2 = Needs approval
$newsform_options['allow_comments'] = 1;

When adding new articles you can configure which options are selected by default by editing these settings

// Enable or disable automatic creation of thumbnails when viewing uploaded images
// If you're having trouble viewing the thumbnails change this to 0
$imageupload_thumbnails = 1;

If you upload an image via Options > Image Uploads and are unable to see the preview thumbnail, change this setting to 0

// Amount of characters to cut off the category delimiter display categories
// Example 'Cat1, Cat2, Cat3, ' Notice the ending ', ' characters, specifying $catcutoff = 2 will get rid of that
$catcutoff = 2;
// Check if the default timezone has been set, if not set it to UTC
// For a list of supported timezones see here - http://www.php.net/manual/en/timezones.php
// To set your own timezone comment out this code and use this example
// date_default_timezone_set('Europe/London'); 
if(function_exists("date_default_timezone_get")){
	if(!date_default_timezone_get()){
		date_default_timezone_set('UTC');
	}
}

If you post news articles and the date/time is off change the above setting so an appropriate timezone

// Set the language used for formatting dates
setlocale(LC_ALL, 'eng');

To have the date and time that gets show on news articles, comments and file uploads get displayed in other languages change this variable

For a list of possible values see here

http://uk2.php.net/setlocale

Sign in to add a comment
Powered by Google Project Hosting