August 9, 2010

Building a new blog

Somewhere along the line building a blog became the new Hello World. Coding a simple setup from scratch really helps new developers push themselves and figure out a language a little better. It forces you to interface with a database, or work with flat files; date formatting and string manipulations galore. And it’s very easy to build a simple blog. It really is just a text area that saves some data to a database and another page that pulls it out.

But what about a full featured blog? I’m talking comments, categories, tags, a wysiwyg editor coupled with a theme engine to make it all look pretty. Those are a little rarer to come by, and most people just hop straight to WordPress. After all, it’s easier.

Over the weekend I began work on my own blog engine and I will hopefully be transitioning Where My Feet Have Been over to it sometime later this month. I want to force myself to finish it, so I will be porting over before everything is done. So there will be a lot of features implemented and tested before being pushed live. I’m also going to be doing a quick tutorial on the insides of the thing.

The new engine is tentatively nicknamed PHP Blog & Journal or PB&J and I’m hoping that it will provide all the features I need in a blog engine while still being easy to use and skin. The default theme is a minimalist one called Shipyard, and hopefully you’ll get a screenshot soon enough!

Here’s a list of planned features:

  • Theme Engine (Mostly done)
  • Posts (Being worked on continuously. I have the database set up with the necessities and will be expanding it as I go.
  • Comments
  • Unlimited Nesting Categories
  • Tag with easy Tag Cloud support (it’s really just a count of how many times a tag appears. I’m surprised more blogs don’t do this to cut down on DB queries)
  • Static Pages
  • Basic Hook System – think Drupal but less stupid

I think one of the things that I REALLY like about it so far is the easy of skinning everything. I’ll post a more detailed overview, but there really is no limit to what you can do. You need a few files (header.php, footer.php, main.php, single.php, sidebar.php, Themename.php) and you can do whatever you want. Want to get all the posts? $blog->getPosts(); Want posts in specific categories? $blog->getPosts(array('cat1','cat2','cat3').

From the administration point of view there really doesn’t need to be much. A way to list posts, categories and tags and a way to edit/create/delete them. And then a way to set global settings, such as the website name.

This is going to be the first major project I’ve undertaken utilizing my GridView and MySqlAdapter classes so I’ll be able to flesh them out and optimize them before re-releasing them. Wish me luck!

October 6, 2009

More Fancy Updates

For the rest of the week you may notice a lot of changes happening on FHB. Pages may end up missing and things will get moved around a lot, never fear, it’s just me trying to get this website up and running again!

You can expect quite a few changes around here including the following:

  • New Layout
  • Re-organization of categories
  • Better urls!
  • More Content!

The new layout is based on The Morning After by The Master Plan. The main layout stayed the same, while I’ve been tweaking it here and there to suit my needs. I’ve never bothered tweaking WordPress before, so there is a lot for me to learn, even about the basic control panel.

I’ve decided to also sit down and weed out the categories and posts. Since this site is primarily tech related, other than the introductory post, I’ve removed all other personal ones. I’ve also introduced a few more categories and I’ll spend the next little while moving posts around between them.

On that note, I’ve also finally clicked the different radio button that changes my posts from query strings to something more akin to mod url. If that confuses you, just note that the urls no longer look confusing and are actually in some sort of readable/memorable format.

That last update also happens to be my personal favourite. Basically FHB is and always has been a tech related website, no matter how I try to turn it into a more personal endeavour (much to the chargin of  Imdolien). I’ve finally decided to embrace that side of things and just jump right into it. You’ll notice a lot more code and programming concepts as well as a lot more tutorials. Basically I dedicate some time each week to cruising around the phpFreaks forums answering PHP questions so I decided to answer questions there, as well as post the answers on my blog for everyone else.

If anyone has any suggestions, please leave a comment. I can’t guarantee that I’ll incorporate your suggestion, but I will promise that I’ll at least consider it.

September 6, 2009

Rising Legends launches version 0.1b

After messing the database for almost an hour trying to configure everything properly, I can officially announce that the latest version of Rising Legends (0.1b –> the b signifies beta) is out!

You can access it at http://boba.feethavebeen.com and you can access the forums at http://boba.feethavebeen.com/forum/

As a bonus to everyone, I managed to keep all your characters and just reset everything instead. You have lost all gold and items, and all your stats have been reverted to that of a level 1. This was necessary as the next step in the game is content and balancing so I needed everyone to start at the same place and work their way up. Testing various monsters/items.

There are about 11 monsters I believe, scattered between two zones. The first being Deepgate, which is the starting zone, and Candlewood. I can tell you now, it’s a waste of time going into Candlewood unless you are at least level 11 or 12. At least then you won’t die in a couple of hits.

There is also the mapping system which is VERY basic at the moment. Here is the legend:

  1. @ = you
  2. = = portal
  3. s = shop
  4. t = tavern

When you move over a portal, shop or tavern the “interact” link appears which will let you use that particular service.

At this stage I am also looking for suggestions, so PLEASE head over to the forums and post away. Not all suggestions will be incorporated into the game, but you never know.

Finally, I just want to thank everyone who helped out with running everything namely Felipe, Sebastian and Greg. Between them they found pretty much all the bugs with prior versions, extensively tested (we’re talking level 100+ in a game that had 3 monters) the game and had plenty of suggestions that were incorporated into the alpha version.