Installation -
1. Unzip the magicblog.zip zipfile.
2. Open the MagicBlog folder
3. Open the file named "config.inc.php" with a plain text editor such as Notepad (do not use Word). Follow the instructions in the comments to configure each of the items including the Username and Password for your Mysql server, the administrator password, the number of posts allowed per user per session, the "number of posts exceeded" message, the number of characters allowed per post, the list of banned language, and URL for the "Webmaster" link. The username and password for Mysql may be the same as you use for FTP access to your server, or you may need to get them from your server administrator. Save the file with a php extension as "all files".
4. Open the file named "createdb.php" with the text editor and configure the Mysql username and password in this file also.
5. Modify the CSS styles in the HTML header tags near the top of "magicblog.php" as desired. Note
that the "TEXTAREA bgcolor" must be the same as the "DIV bgcolor" to maintain the correct appearance of the blog. There is a tutorial on CSS here if you are unfamiliar with how to modify the CSS styles.
6. Add graphics or change the text at the top of "magicblog.php" as desired. Make changes to the HTML of magicblog.php as desired, but be sure to keep a copy of the original in case the changes don't work properly.
7. Upload the MagicBlog folder to the root directory of your server.
8. Navigate to the file called "createdb.php" in the MagicBlog folder on your website. If you uploaded it to the root directory, you would probably access it using something like:
yourwebsitesiteURL.com/MagicBlog/createdb.php This file will attempt to create the database for MagicBlog on your Mysql server.
On many installations of Mysql, particularly those on shared hosting, this will not succeed, and you will see a failure message. In this case it will be necessary to create the database manually. There is a Mysql tutorial here that will explain how to do this. If the database you create is named anything other than "mb", be sure to configure the name of the database in " config.inc.php". The database table must be named "posts" and be structured as follows:
Table structure for table `posts`
CREATE TABLE posts (
pnum int(11) NOT NULL auto_increment,
post text,
`date` timestamp NOT NULL,
PRIMARY KEY (pnum)
) ;
Your server administrator or hosting provider should be willing to create this database and table for you or help you do it.
9. Link to Magic Blog using the URL relative to your root directory of MagicBlog/magicblog.php.
10. If you want to change the name of magicblog.php to something else, it is necessary to change the filename in line 22 of adminlogin.php.
11. If you wish to change the minimum number of words required in a post from the default of 5, change the number in line 18 of addpost.php to 1 less than the desired minimum number.
Test the Magic Blog. If there are any problems, do not hesitate to contact Toucan Multimedia Support