New reviews site with my own CMS
I've converted harishankar.org into a general reviews website using my own simple content management system written in PHP. Actually it's nothing more than an articles manager. A very basic tool, but the advantage is that it's extremely lightweight, doesn't use MySQL and is very easy to update without any need for an admin control panel.
The reason I dumped WordPress for my reviews blog is that I wasn't really updating it that often and of course, the blog format is not ideal for a content-rich site. Nevertheless, I've probably saved a lot of disk space and an extra MySQL database and I have the pride of having creating my own solution for my needs. 
I don't plan on extending this CMS into anything bigger as there are other tools that already do a great job of providing sophisticated systems. Mine is meant to be a simple articles manager and nothing more.
Hope you like it. Feel free to leave your comments on it here. And of course, if you need the source code, I'd be glad to share it with any of you. Just ask!
13 comments
Do you store the reviews in text files? I coded a conference room app a while back which used text files to store the chat text, but the input was broken whenever there was a newline... I never figured out why. I'd love to see the code - if just out of interest
It's simple, clean, and looks good. Job well done
No need for admin panels and it's very secure since there's no database and obviously no commenting system. I'll send you the code as soon as I get a few minor tweaks in.
Since I developed it using PHP 5 on my localhost, there was one function which gave me trouble, but I easily bypassed it and now it works with PHP 4 as well.
I developed the script using PHP myself. Didn't use any third party tool. It's not plain HTML files.
Of course there are third party search tools that one can add to a site, so I might add one if I can find something suitable.
As for ISBN numbers, does every edition of a book have a different or unique code? If so, it might not be a practical idea since some books come in several editions and I don't believe locally published books carry this code.
a. It's a nuisance to maintain an amazon link for each and every review.
b. Amazon.com doesn't need any more back-links from the likes of me, particularly when it's a very simple search to get to the Amazon page of any product.
I'll still post amazon links in my reviews at LiteraryForums.org but out here in my reviews page I'll leave it out.
Also I think a search box is a great idea provided I can find any easy to use third-party site-specific search engine that works with PHP and Apache.
// I've put braces instead of -lt and -gt signs in case Wordpress fails to parse them properly and chops off the rest of my comment
<span class="headingtext"><a href="<?php echo $GLOBALS['site_url'];?>"><?php echo $GLOBALS['site_title']; ?></a></span>And the line below that. Those could use 'h1' and 'h2' respectively instead of spans, as it would make more 'sense' (especially if the user is visiting your site with a CLI browser, in which case the CSS will not be rendered). Just small things like that
I can take another look through it and jot down things like that, if you want, and then send the list to you?
Giving the heading 1 tag to the overall document title and heading 2 to the subtitle/description simply doesn't make any structural sense in my opinion. Only the actual document content should have heading levels and not a "header band" which gives the generic site title.
Do send me the list of things and I'll go through them and make corrections as necessary.