|
Special LinksNotes & ArticlesSearch Engine
|
Upload snewsIf you are using sNews 1.6,There are only 4 steps to publish snews. 1.Create database under your website first. a. Goto your phpmyadmin at your web site ( ask administrator how to add database to your mySQL ) b. Input your Login and Password for your phpmyadmin web ( usually under cpanel ) c. Create database : snews d. Activated your new database ( snews ) - click snews in the left side e. Click SQL ( icon above your database or the tab after structure ) f. Open readme.html in your computer / snews16 g. Copy - Paste : CREATE TABLE articles ( ...... bla-bla until .... INSERT INTO settings VALUES (23, 'password', '098f6bcd4621d373cade4e832627b4f6'); to your phpmysql box h. Then click [ Go ] button i. If you are succed, there are 4 tables under your snews database. 2. Modified snews.php in your computer under snews16's folder a. open snews.php with FrontPage/Dreamwaver or Notepad b. there are 3 should be modify ( see the bold ) ***************************** // DATABASE VARIABLES function db($variable) { $db = array(); $db['website'] = 'http://www.yourweb.com/'; //<<--- here is your web address ( http://www.yourweb.com ) $db['dbhost'] = 'localhost'; //MySQL Host $db['dbname'] = 'snews'; //Database Name $db['dbuname'] = 'username'; // <<--- your User in phpmysql web $db['dbpass'] = 'password'; //<<--- your Password in phpmysql web $db['prefix'] = ''; //Database prefix ********************** c. save and close your snews.php 3. Modified snews.php in your computer under snews16's folder a. open .htaccess with FrontPage/Dreamwaver or Notepad b. only 1 should be modify ( see the bold ) ********************************** php_value session.use_trans_sid 0 SecFilterEngine Off SecFilterScanPOST Off RewriteEngine On RewriteBase http://www.yourweb.com RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*) $1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?category=$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1 articlespage=$2 [L] ***************************** c. save and close your .htaccess 4. Upload snews to your web site with FTP program a. Ask your domain name (website ) , User and Password to your administrator b. Copy ( upload ) files : index.php , snews.php and .htaccess further information about snews, visit snews.com Firdaus Maulana 19.05.2008. 15:54 This article hasn't been commented yet. |
Articles Pages |
|
| | © 2008, Firdaus Maulana | sNews/FCKEditor | | |
Write a comment
* = required field