Location: PHPKode > scripts > BlogHelper > readme.html
<html>
<head>
    <title>BlogHelper Features</title>
</head>

<body>
<h1>Features</h1>

<p>Thank you for downloading BlogHelper.  BlogHelper aims to help you add a simple web log to your website.</p>

<h2>Features of BlogHelper</h2>
<ul>
    <li>Simple, no-frills web log starter kit</li>
    <li>Password-protected interface for adding new blog entries</li>
    <li>CSS-friendly! Make the look-and-feel yours with a few stylesheet changes</li>
    <li>Dynamically creates links to archived blog entries</li>
    <li>Easily configured to display a certain number of blog entries per page</li>
    <li>Open source, so you may tweak it to better serve your needs</li>
</ul>
<br>

<h2>Requirements for using BlogHelper</h2>
<ul>
    <li>PHP version 4.0 or greater</li>
    <li>MySQL version 3.2.3 or greater</li>
</ul>
<br>

<h2>Get Started</h2>
<p>First, edit BlogHelper.sql and replace all instances of "YourName" with your name.  <B>Do not use spaces in the name!</b>.  For instance, if your name is John Doe then use the variable "JohnDoe".  Next, source BlogHelper.sql to initialize the MySQL tables.  Set the "author" variable in DisplayBlog.php to the same value.
</p>
<p>Now edit the top four variables in common_db.inc: $dbhost should be set to your database host ('localhost' if PHP and MySQL are on the same computer), $dbusername and $dbuserpass are your login information, and $default_dbname can remain as 'blog'.  </p>
<p>
Next, configure your individual blog settings in ViewBlog.inc.  Set yourAuthorName to the variable from step one (ex: "JohnDoe").  Set secretpassword, the password you will use when adding a blog entry.  Finally set numEntries, the number of blog entries that will display on your blog.
</p>
<p>
Make any desired changes in your blog's stylesheet.  Modify the CSS code in the displayHeader method of common.inc.
</p>
<p>
Write an entry in your blog using http://<i>Your.web.server.path/your_blog_path</i>/WriteBlogEntry.php?author=<i>JohnDoe</i> (link example for John Doe).  Remember to type in your password before hitting submit.
</p>
<p>
View your new entry by accessing http://<i>Your.web.server.path/your_blog_path</i>/DisplayBlog.php
</p>
<br>


<h2>File Descriptions</h2>
<p>Here's a brief overview of what each file does.</p>

<h3>ViewBlog.inc</h3>
<p>This file contains the information needed to configure your blog, and also contains the back-end logic.</p>

<h3>WriteBlogEntry</h3>
<p>This file contains the blog entry form.  It can only be accessed with the proper "author" variable in the query string.</p>

<h3>DisplayBlog.php</h3>
<p>This file displays your blog to the world! It shows your most recent blog entries and creates links to archived blog entries.  The archive links are dynamically created.</p>

<h3>common.inc</h3>
<p>This file has the common header and footer functions.  It contains the Cascading Style Sheet which easily changes the look-and-feel of your blog.</p>

<h3>common_db.inc</h3>
<p>This file has the common database functions.  It must be configured before use.</p>

<h3>BlogHelper.sql</h3>
<p>This file contains all the SQL queries you need to create the blog database.  Either "source" this file from the MySQL command prompt, or use PHPMyAdmin to read the queries from this file.</p>

<br><br><br>
Questions? Comments? Please let me know! <a href=mailto:hide@address.com>hide@address.com</a> is my email address.


</body>
</html>
Return current item: BlogHelper