sb - weblog management system

About sb

Outline

Weblog management system - sb supports the following functions.

  • Genarating static html files.
  • Accepting comments for created articles.
  • Accepting trackbacks for created articles.
  • Supporting multi-usersweblog management.
  • Using Amazon Web Service.
  • Using templates which are compatible with JUGEM.
  • Importing weblog data from JUGEM and Movable Type.

JUGEM is rental weblog service which is provided by paperboy&co.

Movable Type is powerful weglog management system which is provided by Six Aprat Ltd.

Note about templates

Paperboy&co. holds copryrights of templates which are donloaded from JUGEM template center. It is NOT allowed to use these without permission.

The templates which are used in "sb" are compatible with JUGEM. However it is NOT recommended to divert the JUGEM original templates.

Copyrights & use condition
  • Takuya Otani holds the copyright of "sb". All rights reserved.
  • "sb" can be used free of charge without permission only in cases in which using for non-business purpose.
  • "sb" has NO limitation about number of places and users for non-business purpose.
  • "sb" is NOT allowed to distribute without permission. Could you please inform me before distribution.
  • "sb" is allowed to customize at your own risk without permission. It is not limited to open your customization. However, it is necessary to inform me before distribution if you want to distribute it.
  • Using "sb" for business purpose, could you please inform me before.
  • "sb" can be introduced without permission. However it is necessary to inform me before introduction if you want to introduce "sb" on the magazine for business purpose.
  • On no event will Takuya Otani be liable to you for any damages arising out of the use or inability to use "sb".
  • Specification of "sb" is subject to change without notice.
Special Thanks

I would like to thank for helping to the following people.

  • Rumurin
  • Shun
  • Fuco
  • BARISTA
  • Juju
  • Yosy

And thank and love my wife and my daughter.

Co-developers

"sb" is developed with the follwing people:

  • Maruyo (Searching engine for AWS)
  • Rumurin (An attachmed utility)

Display screen to edit an article as new article when you push the botton on menu.

If you want to edit a posted article, you can select a article on article list screen. Editing a posted article, a list of received comments and trackbacks would be displayed on the bottom of screen.

This menu is usable for any user.

Display a list of posted articles. You can delete articles if you want.

You can use each title as link to edit. If you want to edit a posted article, you can click the title.

This menu is usable for any user, but some operations (e.g. deleting, editing) are limited according to user authority.

Display a list od uploaded images. You can also upload new image via this screen.

If Image::Magick is available for your environment, you can also create small image at the same time. "sb" can detect automatically whether Image::Magick is available or not.

You can select a file to upload via "file" field on the screen. The available image formats for "sb" are "jpeg", "gif" and "png".

You can name a file which is uploeaded to use on "sb". When the "name" field is a blank, "sb" would automatically name a file as same as a local file name.

The table shows uploaded images with detail information.

This menu is usable for any user, but deleting operation is limited according to user authority.

working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.
working in progress.

Articles

Create Article
working in progress.
Editor Screen
working in progress.
Article List
working in progress.
Edit Posted Article
working in progress.

Comments/Trackbacks

About Comments/Trackbacks
working in progress.
Authorize Comments/Trackbacks
working in progress.
Config IP Banning
working in progress.

Recommended Items

Amazon Associate Programme
working in progress.
Search Items on Amazon.co.jp
working in progress.
Register as recommeded items
working in progress.
Edit your recommended items
working in progress.

Templates

Structure of templates
working in progress.
Static Generate and Dynamic Generate
working in progress.
Display Mode
working in progress.
Frames for HTML Templates
working in progress.
Blocks for "sb"
working in progress.
Tags for "sb"
working in progress.
Differences between "sb" and JUGEM
working in progress.

Settings

Type of Settings
working in progress.
Editor Settings
working in progress.
Weblog Settings
working in progress.
Profile
working in progress.

Import/Export Data

Readable and Writable Format
working in progress.
Import Data
working in progress.
Export Data
working in progress.

Install

Install Condition

"sb" is developped in Perl 5.8 (5.008).

"sb" is oparatable by Shift_JIS, EUC-JP, iso-20022-jp(JIS), UTF-8 in Japanese.

Libraries

"sb" needs the following external libraries.

  • LWP::UserAgent
  • HTTP::Request
  • XML::Parser::Lite
  • Jcode

If Image::Magick is usable, "sb" can generate small image at the same time when you upload image on your webpage.

Image::Magick is not necessary to use "sb".

Contents of Archive
Contents Description
sb.cgi main script
admin.cgi management script
cnt.cgi script for collecting logs
init.cgi setting file for sb
index.html index html file as a top page
style.css css file for weblog
lib/ directory for libraries
ext/ directory for external libraries
lock/ directory for lock files (there are "lock" and "cnt" in this directory)
data/ directory to store data files
log/ directory to store weblog files
img/ directory to store uploaded images
util/ directory for utilities (it is not necessary to install sb)
doc/ directory for help documents
Examples of placement and permission
Files and Directories Permission
sb.cgi [755]*
admin.cgi [755]*
cnt.cgi [755]*
init.cgi [644]
index.html [666]*
style.css [666]*
lib/ [755] The files in this directory are [644]
ext/ [755] The files in this directory are [644]
lock/ [777]* The "lock" and "cnt" in this directory are [666]*
data/ [777]*
log/ [777]*
img/ [777]*
doc/ [755] The files in this directory are [644]
Note for setting permission

The symbol * shows that files and directories is necessary to set permission.

You can change the places of log, img, index.html and style.css. Could you place these files and directories in base directories which is set in weblog config. If you change the places, you still need to set permission.

You can change name for "log" directory and "img" directory.

The settings for permission is alternated according to the server. Could you contact the administrator of your server.

Path Setting for Perl

The first line of script, #!/usr/bin/perl, is necessary to customize according to the server.

It is only necessary for sb.cgi, cnt.cgi and admin.cgi.

Config in "init.cgi"

In init.cgi,

  • DataDir
  • DataSuffix
  • ScriptPath

are set.

DataDir is the palace of data directory where is pointed from sb.cgi and admin.cgi.

ScriptPath is the URL of sb.cgi and admin.cgi where is installed.

DataSuffix is the suffix of data files. You can change the suffix of data files for security reason.

You can also change the following settings which is not necessary.

  • LockDir
  • BaseDir
  • LogDir
  • ImgDir
  • HttpProxy
  • TempConv

LockDir is the place of lock directory.

BaseDir is the place of base directory. There are index.html and style.css in base directory.

LogDir is the place of log directory in base directory.

ImgDir is the place of img directory in base directory.

HttpProxy is set a proxy server address and port.

TempConv is setting whether "sb" should convert character code in admin.cgi or not.

If you don't need to convert character code in admin.cgi, you can set TempConv 0.

Setting for Character Code for Japanese

Using "sb", you don't need to set directly character code in Japanese. "sb" automatically detects character code according to language library in lib/lang/ (e.g. ja.pl in Japanese).

Default setting of character code is EUC-JP. Setting character code of ja.pl as UTF-8, "sb" should operate your webpage as UTF-8.

Because the same code is applied to store data, it is better not to change.

Initial Process

After editing init.cgi and setting permission, could you access admin.cgi by WWW agent.

"sb" automatically generate data files in data directory at the first access.

If it is successful to generate data files, you can see a screen to create the first user. If it is not successful, could you check the permission.

If you want to re-install after the first run, you need delete all files whiche are created in data directory.

At the screen to create the first user, you should create the first user as administrator of your weblog. You can change user name and password in "Edit Profiles" if you want.

If you would cahnge user name or password, you should logout at once.p>

Note for upgrade

You have already installed the old "sb". Please note below when you upgarade.

It is necessary to replace basically old files with the files as follows:

  • sb.cgi
  • admin.cgi
  • cnt.cgi
  • lib/
  • doc/

It is NOT necessary to replace basically old files with the files as follows:

  • init.cgi
  • data/
  • log/
  • img/
  • lock/
  • ext/

If you have alternated character code, you should also change character code for new one.

If you have changed the first line (#!/usr/bin/perl) of sb.cgi, cnt.cgi and admin.cgi, you should change.

Detail Contents

About sb
Menus
Articles
Comments/Trackbacks
Recommended Items
Templates
Settings
Import/Export Data
Install

Copyright © SimpleBoxes 2004-, All rights reserved. [ver. 0.09]