Steven McTainsh is a web developer based in New Zealand who loves creating websites.
Home

Archive for the ‘Web Development’ Category

My disappointment with WordPress

After numerous attempts to try and integrate a custom-built CMS I made with WordPress, I have come to the conclusion that WordPress is annoying, and that the support offered on the WordPress forums is, to put it simply, useless.

Firstly, if you try to use WordPress’ built-in login functions, even if the user exists in WordPress’ database, you just can’t login. And, this is with WordPress 2.8.6, the latest release. :( Registration works fine, but login fails miserably. However, you can login to WordPress using the default form located at wp-login.php. However, this just wasn’t an option.

Secondly, if you try to create a plugin to override one of their so-called ‘pluggable’ functions (in pluggable.php), it tells you it’s already declared, even though WordPress’ documentation clearly states that the plugins are checked for the existence of these functions first.

To top it all off, when you use Google to find a solution, you get heaps of posts in the WordPress forums, all with no solutions. It’s extremely frustrating when you find someone who shares your problem, but there’s no solution!

So, if you want to even try and integrate WordPress with a custom CMS, my suggestion is to try another blogging solution – WordPress seems to offer no hope.

Another useful tip…

Hopefully this might just help someone out – to many people, it’ll seem obvious, but when you’re getting frustrated, you tend to overlook the obvious…

When you’re editing WordPress themes, and you’re including content from a separate database, make sure WordPress is able to connect to the database its data is stored in at the end. I had a custom header and footer set up, and utilised a database connection to get page data. After some investigation, I realised that WordPress needed its database connection back – doh! :)

Annoying issue with footer.php in WordPress

While working on a WordPress theme recently, I came across a particularly frustrating issue. The aim was to integrate the existing site header into the blog and, thinking this would be simple matter of a PHP include/require, I went straight ahead. However, I was wondering why variables in the included file were being ignored. It basically came about because I forgot about what require_once does – requires that file once. After using require, the variables magically appeared! Wow! :)

PayPal IPN woes

Wow, it’s been a while since I’ve posted a blog entry! This one’s about a few simple mistakes I’ve made while utilising PayPal IPN through PHP – hopefully they’re helpful to someone!

A word to the wise – when you’re using mail() in PHP and everything seems to have completed fine, but you don’t seem to get an email, check that the email isn’t being picked up as spam. This just so happened (I believe), because I had the sender’s address set to a randomly generated PayPal sandbox address which looked suspect.

Also, another stupid moment I had – when testing PayPal IPN, it pays to remember that the sandbox IPN simulator does not return a VERIFIED or INVALID status; you’ll need the sandbox for that.

These are seemingly really simple things, but sometimes we tend to overlook the simple things. ;)

Also, my apologies for the lack of updates to WebCipher – things have been pretty hectic lately, and I just haven’t had to time to update it. My Uni exams will be over in 2 weeks, at which time I’ll have 4 months holiday, so there’ll be some catch up on WebCipher development and various web projects. :)

Steven

The great thing from here is that I simply have to change the PayPal address that the script points to, and the automated sale system will work perfectly!

Time Sheet and WordPress’ automatic updater

Time Sheet is back in action! That’s right, the desktop version of Time Sheet is back, better than ever, after its hiatus. If you’re unsure of what exactly it is, Time Sheet is a time keeping, invoice generating, job tracking tool that aims to simplify your project management, from sole proprietors to businesses. It also features an address book to keep track of your contacts, plus heaps more. This brand spanking new version has been in testing for a while now, and for the small price of US$19.95, you can have your own copy and get free updates while the testing period is going on, from the current release (Beta 1) to the final 1.0 release. In addition, bug fixes for the 1.0 branch are free for customers, and an upgrade to the 2.0 branch and also subsequent branches will entitle you to a (up to) 50% discount! :) So, if you’re interested, head on over to mytime-sheet.com, and be sure to follow the updates on Twitter! (End shameless plug :p).

As an aside, I just updated my WordPress installation to 2.8.3 – very impressed with the automatic updater. It simplifies the upgrade process greatly, and saves me having to open up my preferred FTP application, download the latest update and apply it.

Steven

My latest project – Tasks

A quick blog post regarding my latest project – Tasks (and honestly, a bit of shameless promotion :p ).

It’s a clever To Do list that allows you to categorise, sort and search To Do’s easily. I designed it with a clear interface in mind that keeps the focus on your To Do’s.

I’m preparing a demo version to go online for testing; any feedback about this would be greatly appreciated. Please do not hesitate to reply to this blog post or send me an email via the contact form on my portfolio.

View: Tasks Website

Steven

The new smctainsh.com is here!

After a considerable amount of development, including a fair amount of time tweaking the site to work in IE 6, the new version of my portfolio has arrived. In this version of my portfolio, I opted to stick to one page – the portfolio, about me section and contact forms are all on one page now, with the blog being in a separate location, linked to from the home page. I wanted a design that would ‘stand out’ considerably more than the previous incarnation, which I felt to be a little lackluster and a bit ‘plain’. I feel this design is a step in the right direction and I am really pleased with the result.

To check out the new version, visit my portfolio at http://www.smctainsh.com/. Feel free to post any comments you have on this updated design.

Steven

Welcome to my blog!

Pardon the rendering errors and graphical problems that may occur while I set up my blog. I’m in the process of testing a new layout out at the moment, which I plan to use as a replacement for my existing portfolio design. Feel free to leave any suggestions here.

Steven

Who am I?

I'm a web developer who is currently proficient in XHTML, CSS, PHP, MySQL and JavaScript. In addition to web programming, I also enjoy software development with C#. My portfolio and blog are a platform for me to demonstrate my abilities and voice my opinions on various (primarily) computing related topics. Since 2009, I have been studying at the University of Waikato.

Can't find what you're looking for?

A quick note:

You are currently browsing the archives for the Web Development category.

Archives

Categories

Meta

RSS Feed Icon EntriesComments

Powered by Wordpress