March
1
Twice. In 1 week.
I lost my code and my awesome plugin edits when my hard drive crashed, I started writing it again and I formatted the wrong partition. Seriously gutted! I tried to recover the data with undelete apps but it was gone forever.

No worry no more!
Now, I don’t need to worry because I use Dropbox and have configured my local server to use it as the document_root of my dev site. That way, all the developing work I’m doing gets saved automatically online and is accessible on any of my pc’s.
I don’t even need to worry about being able to access the SAMBA share if I want to edit a file, I just open it from my dropbox on the pc I’m using and save it back there, it’ll get automatically updated on my dev server.

Oops no more!
Another advantage is the revisions feature. You can go online and see the updates that you made to a file and revert it back to an earlier save. This has already saved me from crying, I always forget to rename a file before I start trying to add updates and before I know it, the whole thing is causing an error and I can’t remember how to put it back the way it was! just luvin the revision feature!!
Get 2GB for FREE! (and help me out)
You can apply for a Dropbox for FREE and get a full 2GB to use to store anything from simple documents to executable files to database backups or like me, use it as your code repository and never go through the pain of a lost bit of awesome code again!
You can even install it on Linux which is super helpful when it comes to transferring files between a windows->linux network.
If you click this link and install your dropbox for free, we both get extra bonus space which would help me out a lot
Blog Tools, Code, Uncategorized
automatic backup Code dropbox online recover revisions storage
November
15

Wordpress Theme Design – Tessa Blakeley Silver
PacktPublishing
Price 35.99 USD (ebook $27.19)
I bought a book recently after seeing it mentioned in the WP dashboard news items, it’s called Wordpress Theme Design by Tessa Blakeley Silver and although a lot of the information regarding the functions of wordpress can be found at the codex, the book gives you so much more like the process gone through to design a theme from scratch.
I do quite a lot of sites in wordpress now and find it much easier to provide a client with a website that can be updated so easily, a few plugins here and there and you can provide a website that does all and more that’s needed.
Usually I get a standard theme and cut it up a bit and change the css to give me my site, or create in photoshop and send off for wordpressing but lately due to some more custom design requests I’ve received and the always dependable mistakes that freelancers can make I have wanted to do the whole thing myself from scratch..
I’ve downloaded a tutorial before about WP theme design from small potato before it was taken over and that was pretty darn useful but was made a little while ago so it wasn’t 2.5 specific.
That’s why I like what Tessa has put her book, it takes you step by step through the process of creating a non-blog wordpress blog, from sketch to WP core code. It’s made a big difference to my initial prototyping of concept sites and has really opened my eyes to what you can do with a bit of manipulation of the wordpress template tags. I’m even working on a magazine style front page for here so I can have a featured post for contests that stays up while it’s open for entries as well as excerpts to the regular posts..
You can buy the book printed or get it as pdf for a bit cheaper (I printed mine out from pdf on someone elses printer lol!) at packet publishing
Packtpublishing is sending me a new book about Wordpress For Business Bloggers , they’re offering a deal if you get both books together. Stay tuned for the review of the new book!
Audio, Reviews, VWD elottery, Wordpress, books
book Code review theme design Wordpress
September
26
I have learned a gadoodle of information over the past 3 weeks of coding the update to CommentLuv and it would have gone a lot smoother had I known these 2 things.
Including jQuery with wp_enqueue_script
This seems to be simple at first but there is an important caveat to note.
You can include the jQuery library manually by echoing out a <script src=”… in your plugin code which works but could cause a problem if a user has changed their wp-content location or there are other plugins including jquery which would mean it gets loaded twice or more which isn’t ideal.
The solution is to use wp_enqueue_script but, it needs to be put in the right place!
If you use the wp_head action to call a function that has wp_enqueue_script in it then the library wont be included, using wp_head is too late in the render process for WP to put in the include.
Instead, I put wp_enqueue_script(‘jquery’); under the actions and hooks commands so it is run as early as possible in the execution of the plugin.

The plugins directory constant wp_plugin_dir
This has always tripped me up for some reason but it all became clear recently.
If you want to reference an image or js file in your plugins directory it is a lot better to use a constant than to put in an absolute url. I thought I had solved everything by using the constant WP_PLUGIN_DIR which works with WP2.6 and up but doesn’t work with WP2.5.1
What if you want to make it compatible with wp2.5? simple!, use this code in your plugin and you can use all the constants for WP2.6
if ( ! defined( 'WP_CONTENT_URL' ) )
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
if ( ! defined( 'WP_CONTENT_DIR' ) )
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
if ( ! defined( 'WP_PLUGIN_URL' ) )
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
if ( ! defined( 'WP_PLUGIN_DIR' ) )
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
Code, PHP, Wordpress
Code plugin Wordpress wp_content_dir wp_enqueue_script wp_plugin_dir
September
9
I’ve been working with jQuery quite a lot over the past week to get the commentluv settings page up and running and get the new commentluv plugin working as promised. It always amazes me at how incredibly easy it is to get it to do cool things with a web page.
Not just Ajax things, simple effects that allow you to take a page from a digital piece of paper to a digital pop-up book! Click here for an example..
Look at me!
Example explained
(you should have the jQuery library loaded in the head of your document, my wordpress already does this but if yours doesn’t you’ll have to put a line like this in the head of your page) read more… »
Blog News, Code, Wordpress
ajax Code HelloStumbler hidden plugins slide-div stumbleupon
August
23
I’ve had another few days of intensive coding and completed a few plugins that can help with the new theme.
I can’t believe that only last week I was feeling burnt out with coding! All I needed was a little “I wonder if I could …” php demon in my ear and I was off. Everything else has suffered though, I have barely talked to anyone in the past 3 days. I haven’t even answered any text messages! lol. I must be a hermit
Here’s what I’ve been up to:
read more… »
Blog Tools, Code, PHP
Code plugins Wordpress
1
A day of other peoples code
June24
Support Tickets
I did some pretty fancy tweaking of code today to see if I can replace the support tickets system on ComLuv, the system at the moment isn’t bad but the last support ticket management software I used was far superior and allowed me to reply to closed tickets and create canned responses.
It will need some more work to integrate it into the dashboard of the site but I’m pretty confident I can do it.
Theme
I feel the need to tweak themes too, I found an old mockup image on my hard drive that I had for a client that never took up the job and I contacted someone about converting it to a WP theme. I love how it looks and I’d really like to have the format for ComLuv so I can start on tutorials and other features.
That’s not to say the current one isn’t great, it’s just that I’m all for “get it done” then “make it work” and then “make it pretty” and then “do it all again until I have what I want.
Newsletter
I had a bit of a nightmare with my newsletter software taking up too much resources while being on the same server as ComLuv so I took steps to transfer it to another server and use the ComLuv SMTP connection to do all the sending. Hopefully this will fix any issues I was seeing..
Tutorials & Videos
I have the new pc set up with a screen recorder and I have a list of videos that I’d like to produce for tutorials on the ComLuv site. I tested it out and my quad core monster can handle the capture on a widescreen so I can do HD videos and host them on Vimeo
Remote Images & Scripts
I have done some serious optimization on the blogger version of CommentLuv so that now there are very few calls to the ComLuv server for images and scripts. This one thing should dramatically decrease the server load during busy times.
Work
And now I have to tweak the system in the shop. The tweaking never ends!
Blog News, PHP, Social Networking, Wordpress