Contents
Simplog(Simplog) provides blog ('weblog') facilities using an SQL database backend to store content, and PHP as a server-side frontend to provide an interface to that content.
Simplog is developed and tested in a linux/apache environment, although it is possible for it to work with other webservers and OSes that can handle PHP. Installation is very easy and takes only minutes. Installtion and upgrading are outlined in section 2.
At the server level, multiple users can use the Simplog software: if you are a sysadmin looking into providing users blogging facilities in a shared hosting environment, please see section 3.
Each of those users can administer several blogs, allowing others to help out. If you are looking to administer blogs, have a look at section 4.
Requirements:
Known to work:
Apache >= 1.3.27
PHP >= 4.3.1
MySQL >= 4.0.11
PostgreSQL >= 7.3.2
Simplog will probably work with versions lower than this, but has been tested these versions......
* Your web root directory is where your index page is stored, not where the websever binaries are.
** If upgrading, MAKE BACKUPS of your blog directories and database. Better safe than sorry!!!
If you have access to a shell account on the machine hosting your website:
If upgrading, DO NOT remove your previous version. Unpack the tarball over your previous version
MySQL: mysqladmin -uusername create dbname
PostgreSQL: createdb -Uusername dbname
If you are in a shared hosting environment and do not know if you have your own database, please contact an administrator from your hosting provider.
All configuration directives for Simplog are housed in a file name config.php. If this is a new installation, you need to copy the config-dist.php file to a new file named config.php and then edit the config.php to match your local settings. Here is an overview an explanation of each of the variables found in the config.php file.
Variable | description | Example Value |
---|---|---|
$blogurl | URL to your main blog page | http://www.example.com/simplog/index.php |
$baseurl | Base URL of Simplog directory | http://www.example.com/simplog/ |
$basepath | path to Simplog on the filesystem | /home/example/simlpog |
$host | host machine of your database | localhost |
$dbase | name of the database | dbname |
$user | your userid for the database | dbuser |
$passwd | your password for the database | passwd |
$dbtype | type of database you are using. | mysql,postgres,oracle,etc....Acceptable values at http://phplens.com/lens/adodb/docs-adodb.htm#drivers |
$anon | name displayed for anonymous comment posters | Anonymous |
$ratename | what you want to call your rating points | Karma,Rating |
$limit | the number of entries to display | 5 |
$timeout | time in minutes for an XML feed to live in cache | 30 |
$dateformat | date and time format for blog entries. uses format of PHP date() function. See http://us3.php.net/manual/en/function.date.php for more details. | m/d/Y h:i:s a (will display as 02/15/2004 12:32:12 am |
$use_weblog_rpc | register changes with weblogs.com | 0,1 |
$enable_trackback | use trackback | 0,1 |
$enable_pingback | use pingback | 0,1 |
$enable_smilies | enable graphical smilies | 0,1 |
$safe_comments | attempt to clean up HTML in comments to keep out malicious code | 0,1 |
$comment_win | open comments in new window | 0,1 |
You can offer Simplog as a standard service for users in a shared hosting environment
Simplog requires
Details for installing a webserver, PHP libraries and the database are beyond the scope of this document; you should refer to the documentation for those products. With regards to apache/php/ mysql/postgresql, we've got this running using the default settings specified by each.
Providing a user with Simplog access is a two step process:
1. Create a database for the user to use for their blog.
Each user will need select, insert, update, delete, create and
drop permissions.
2. Untar the simplog-X.X.tar.gz in the user's webroot.
You can now let the user know they're ready to go.
It is the blog super user's job to create new blogs, create new users, give and rescind editing right on blogs, change blog information, and create/edit blog templates. All of these are done from within the Simplog application. Once logged in, the admin user will see an "Administration" link in his/her blog menu.
Log in as normal, then click on 'Blog Administration'. If any of your users have requested a new blog, you'll see the request on the right of the screen. On the left, you can fill in the name of the Blog to be started. a multi-choice list of users, one or more of whom you can add in. Each user you add in will be permitted to add their own blog entries.
A new blog can be Public, Protected or Private, and this provides a method of pre-defining which users can contribute new comments without explicitly defining each. In a public blog, any user with a logon can add entries. In a protected blog, any one of a specfic set of users can add entries, and others are stopped. In a private blog, only one person can add entries. Regardless of whether the blog is public, protected or private, everyone can read the blog.
At the bottom of the blog administration screen, there is a dropdown list of all the current blogs. Choose a blog and click 'Select'. You will then be presented with an interface to modify the properties of the blog. You will also be able to assign a blog level administrator, who will be able to add and remove users, create blocks, and create categories.
Login, 'Blog Administration'. At the bottom of the page under Modify Blog you can choose which blog, and delete it.
Enter the user's details and they will be emailed their password, effective immediately. If they want to start a new blog, or join an existing blog, direct them to clicking on 'Request' as soon as they've logged in. They can then use the template to tell you what they want.
After logging in as the administrator, you are presented with the 'User Administration' page. You can remove people's accounts here. There is currently no facility for suspending users temporarily.
A blog template defines the layout and look of each blog entry.
To create/edit blog templates, click the 'Template Adminstration' link in the Admin Menu.
When creating/editing a template, entry specific information is denoted by 'markers', placeholders for where the actual data will appear.
Current markers are:
--name-- | Name of user who created the entry |
--date-- | Date and time the entry was created |
--shortdate-- | Date the entry was created |
--time-- | Time the entry was created |
--url-- | Website of the user |
--email-- | Email address of the user |
--body-- | The text of the blog entry |
--title-- | Title of blog entry |
--link-- | Provides a link to the entry in the archive |
--karma-- | Shows the rating of the entry and (+/-) voting links |
--comments-- | Displays link to comments showing # of comments |
--category-- | Shows name of category post has been put into |
--trackbacks-- | Displays link to trackbacks and show number |
--tbrdf-- | Adds hidden markup in page to allow trackback auto-discovery |
--pingbacks-- | Displays link to pingbacks and show number |
Templates can be edited and previewed from the 'Template Administration' area. Any images, stylesheets, etc for templates should be placed in the templates/ directory within the simplog base directory.
Blog adminstrators are assigned by the blog superuser. Blog administrators have the ability to change the blog template, add and remove users form the blog, add and remove categories for the blog, add and remove side blocks for the blog, and edit and delete comments. When logged in, an administration menu will appear while the user is blog admin for the current blog.
In the Add/Edit Entries screen, simply select a different template from the dropdown.
Click "Blocks" in the Administration Menu. You will see a list of all blocks that exist for the current blog. The list shows title, block type, controls to change the order the blocks appear on the page, an edit button if the block contains editable content, and a delete button. There are 9 types of blocks:
To Add/Edit categories for the blog, click "Categories" in the Blog Administration menu or "New Category" on the Add/Edit Entries screen next to the category dropdown. Simply type the name of a new category and save. You can also delete and Edit Categories.
Simlpy visit the comment page while logged in. You will be able to edit and delete any comments.
XML-RPC ping support
The "XML-RPC ping" technology allows for your blog to inform the www.weblogs.com server that the blog has been recently changed; visitors to that server will then be informed of your change. For more information on this use of XML-RPC ping, please visit http://newhome.weblogs.com/faq
To Turn XML-RPC ping on or off, please modify your copy of config.php:
$use_weblog_rpc = 0; //off, the default
$use_weblog_rpc = 1; //on
Trackback/Pingback
Simplog now supports trackback/pingback. You can enable these features for all users in the config.php file:
$enable_trackback = 1;
$enable_pingback = 1;
Another feature of trackback/pingback is auto-discovery. This allows other trackback/pingback enabled applications to send trackback/pingback pings to your blog that are recorded. To allow trackback autodiscovery, add the --tbrdf-- marker to othe endof the blog template you are using.
Pingback autodiscovery is enabled by default for all blogs in a default installation. If you customize your installation by modifying header.php or using a different header file, make sure that you add a special HTTP header with
header("X-Pingback: $baseurl/api.php\n");
before outputting any HTML and add a <link> tag in your header file like this one:
<link rel="pingback" href="http://www.yourdomain.com/simplog/api.php" />
RSS/Atom
RSS = RDF Site Summary. RSS works to allow many different sites to describe their sites according to a common standard; that description is then made available to all such that others who want to focus on a particular subject can rely on a site's description of its own content rather than put human time into working it out.
Simplog allows RSS/Atom files to be created, but as at this version it only
works when you manually request the file. Simplog currently generates 3 feeds:
RSS 0.91 - http://mywebsite/simplog/rss.php
RSS 2.0 - http://mywebsite/simplog/rss2.php
Atom 0.3 - http://mywebsite/simplog/atom.php
For more information on RSS see http://www.purl.com/pub/a/2000/01/rss.html. For more information on Atom, visit http://www.intertwingly.net/wiki/pie/FrontPage