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 the "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 the "sb". All rights reserved.
  • The "sb" can be used free of charge without permission only in cases in which using for non-business purpose.
  • The "sb" has NO limitation about number of places and users for non-business purpose.
  • The "sb" is NOT allowed to distribute without permission. Could you please inform me before distribution.
  • The "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 the "sb" for business purpose, could you please inform me before.
  • The "sb" can be introduced without permission. However it is necessary to inform me before introduction if you want to introduce the "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 the "sb".
  • Specification of the "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

The "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. The "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 the "sb" are "jpeg", "gif" and "png".

You can name a file which is uploeaded to use on the "sb". When the "name" field is a blank, the "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.

Add and edit your favorite items via Amazon Associate Programme (in Japan).

You can search products which are sold on Amazon.co.jp.

Refer to "Recommended Items" about the detail information.

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

Add and edit categories for articles.

You can set a destination for Trackback PING for each category. If you set PING URL in a certain category, the "sb" would send Trackback PING for the PING URL when you generate an article as the category.

You can also add new category in edit screen, but you cannot edit PING URL and description for the category on edit screen.

This menu is only usable for administrator.

Add and edit links for your weblog.

The registered links are displayed by the peculiar tag {link_list}.

This menu is only usable for administrator.

Articles

Create Article
Editor Screen
Article List
Edit Posted Article

Comments/Trackbacks

About Comments/Trackbacks
Authorize Comments/Trackbacks
Config IP Banning

Recommended Items

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

Templates

Structure of templates
Static Generate and Dynamic Generate
Display Mode
Frames for HTML Templates
The Peculiar Blocks for the "sb"
The Peculiar Tags for the "sb"
Differences between the "sb" and JUGEM

Settings

Type of Settings
Editor Settings
Weblog Settings
Profile

Import/Export Data

Readable and Writable Format
Import Data
Export Data

Install

Install Condition

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

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

Libraries

The "sb" needs the following external libraries.

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

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

Image::Magick is not necessary to use the "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 the "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 the "sb", you don't need to set directly character code in Japanese. The "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, the "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.

The "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 the "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.15]