Integrating BellaBook3.2 Into WordPress 2
This tutorial assumes that you have a typical WordPress install with no major modifications to the WordPress coding. This tutorial does work with the WordPress theme switcher, automatically changing the guestbook style based on the theme selected at the main blog.
First things first, download BellaBook and customise config.php to suit your general personal requirements (e-mail address, password, etc). Open header.php, delete everything from inside the file and add:
<!-- BellaBook Copyright Jem Turner (jemjabella.co.uk) 2004-06 -->
<?php
// Prevents full path disclosure + custom error message
if(!include('config.php')) {
echo "<p>Configuration file not found. This needs to be included for the guestbook to work.</p>";
exit;
}
include('../wp-blog-header.php');
get_header();
?>
<div id="content" class="narrowcolumn">
<p><?php echo $top_nav; ?></p>
Save the file.
Open footer.php, delete everything from inside the file and add:
<p>Powered by <a href="http://www.jemjabella.co.uk">BellaBook3.2</a></p>
</div>
<?php
get_sidebar();
get_footer();
?>
Save the file.
Rename the BellaBook folder to something like 'gbook' or 'bb' (makes your url shorter) and upload the entire BB directory to your WordPress directory — e.g. if your site is your-domain.com/wordpress, BellaBook would go in the 'wordpress' directory and should be accessed through your-domain.com/wordpress/gbook. Don't forget to CHMOD the .txt files in the BellaBook directory to 666!
Tags:
bellabook, script-modding, wordpress,
Last Updated On: 27th May 06 by Jem
Bookmark At: StumbleUpon, Digg

Handy Stuff
Downloads
Friends of 'TT'
Resources