NanobloggerComments 1.1

NanobloggerComments is a PHP/MySQL-based comment system for Nanoblogger.
NanobloggerComments is a PHP/MySQL-based comment system for Nanoblogger.

Installation:

Login to mysql as user root and:

create database sessions; grant all privileges on sessions.* to 'session'@'localhost'
identified by 'PASSWORD';

Chose and remember your own password

Create database structure:
mysql -u session -p sessions < db.sql

Now modify your blog.conf

First add new variables - BLOG_ADMIN and DB_PASS, will be used by install script. (If You have also changed database name or user edit after running install script consts.php to reflect this change)

BLOG_URL_ACTION="cmt.php?article=" (remeber that $BASE_URL is added by nb -
at least 3.2.3)

In templates dir remove HTML comments (< !-- -- >) from entry.htm and permalink_entry.htm. You also have to change URL in those two templates to

< a href="${BASE_URL}${BLOG_URL_ACTION}/$permalink_file" >
< script >checkPosts("$permalink_file");< /script > < /a >

And after every directive in templates (category_archive.htm,
main_index.htm, makepage.htm, month_archive.htm, permalink.htm ) add:

< script language="JavaScript"
src="${BASE_URL}${BLOG_URL_ACTION}&act=showjs"
type="text/javascript" > < /script >

Now install whole thing :
./install YOUR_WWW_BLOG_DIRECTORY

Script will check for blog.conf in current dir and if not found will check BLOG_CONF environment variable and target (install) directory. From this file will take all needed data to generate all headers, etc.

Now update Your blog. In my environment it is done through:

nb -u all && nb -P

Requirements:

PHP 4.3.11
MySQL 4.1.11
Nanoblogger 3.2.3 (when upgrading from 3.1 - there are some issues in NB itself, like new templates, $permalink_entry is replaced by $permalink_file and others).

What's New in This Release:

This release allows commenting articles, not just regular blog entries.

last updated on:
April 13th, 2006, 15:46 GMT
price:
FREE!
developed by:
Witold Rugowski
homepage:
nhw.pl
license type:
BSD License 
category:
ROOT \ Office \ News/Diary

FREE!

In a hurry? Add it to your Download Basket!

user rating 15

3.5/5
 

0/5

Add your review!

SUBMIT