My first blog since 2009!!!!!!

Date: 18th June 2011 at 11:04 am | Filed under: blog | Author: Sam Burdge

Wow, the time has just flown by!!! Sorry for the lack of recent code and wordpress goodness.

Firstly, I am glad to see that my WP Post Columns Plugin is still going strong!!! Although it has not been updated since 2009 it seems that it is still working (for most people at least) and the comments keep flooding in!

Many of my WordPress plugins, themes and code tutorials are now unfortunately un-supported. But they are still free, and many people add solutions and answers as well as questions in the comments. I am still working with WordPress every day, but can no longer spare the time to provide free support for free plugins and tutorials.

I have had quite a few comments from people saying that they find it hard to read white text on a black background. Some of these comments have been so strongly worded that I was unable to publish them on the site! If you really can't stand it then you could always try getting firebug addon for firefox and changing the colours however you want (yellow text on a pink background looks quite good). I probably won't be changing my theme in the near future. Also, it's probably a good idea not to get into server administration like linux / apache stuff if you don't like light text on a dark background...

Some new wordpress tutorials and goodies coming soon I promise!

Leave a Comment

Street Fighter Widget

Date: 26th October 2009 at 1:05 am | Filed under: blog | Author: Sam Burdge | Tags: , , ,

Get your hands on the new Street Fighter 2 widget. You can grab the widget code and embed it on your website, or even your myspace or facebook profile. This flash remake of the game is a very accurate copy of the arcade original featuring all the characters and bonus levels. If you just want to play the game on a website please follow this link:

Play Street Fighter online

2 Responses to “Street Fighter Widget”

  • Comment by Nail Yener
    Date: October 3rd, 2010 at 9:52 am

    I am glad that I came across this. I used to play Street Fighter 2 about 15 years ago :)

  • Comment by Bob
    Date: May 1st, 2011 at 3:54 am

    hey great sf2 widget mang ill put it onto my blog :)

Leave a Comment

New e-commerce module for Admin76 CMS

Date: 26th June 2009 at 12:16 am | Filed under: blog, development | Author: Sam Burdge | Tags: , ,

I have been working for some months now to develop an e-commerce module for Admin76,  the CMS which is currently exclusive to 76 Creative. The e-commerce module, called Cart76, utilises many of the nice features of Admin76 such as drag n drop functionality, advanced image gallery management, etc. It is now in it's final stages of development, so if you are interested in running your self-managed site on the Admin76 platform, or if you require a self-managed online store please contact 76 Creative for more info.

3 Responses to “New e-commerce module for Admin76 CMS”

  • Comment by Ben
    Date: December 15th, 2009 at 5:40 am

    That’s nice topic. But I had a hard time viewing your site in IE. What could be wrong?

  • Comment by morgan
    Date: May 3rd, 2010 at 6:20 pm

    stuff like this that makes the internet so damn good

  • Comment by anna
    Date: May 3rd, 2010 at 6:28 pm

    thank!

Leave a Comment

WordPress attachments hack

Date: 9th June 2009 at 3:19 pm | Filed under: blog, development, scripts, wordpress | Author: Sam Burdge | Tags: , , , , , ,

While working on a WordPress site recently I came up against a problem that had never occurred to me before. The client wanted each post excerpt on the homepage to include an image which when clicked would link to the main post (permalink) itself. The built in functions of wordpress when inserting an image allow you to link to either the 'File URL' (i.e. the full size version of the image) or to the 'Post URL' which is actually an attachment page in wordpress which displays the image, but does not include the text of the actual post itself. However, without either editing the html of each post (not an option for this client) or inserting the image without a link, and then adding the permalink to the image (too long winded) there was no simple way to create the image links in the way they wanted them.

My solution to this was to create a very basic hack which would allow them to use the 'Post URL' link when inserting images, but instead of linking to the attachment page, the link would automatically be updated to link to the post's permalink itself.

Here is the basic php function that you would need to insert into your theme's functions.php file:

function lose_attachment($content){
return preg_replace('/<a(.*?)href="(.*?)\/attachment\/(.*?)"/i', '<a$1href="$2"', $content);
}

add_filter('the_excerpt', 'lose_attachment',2);

This will remove the 'attachment/name-of-image-file' part from the URL making it link to the post's permalink itself.  I hope someone out there finds this useful!

7 Responses to “WordPress attachments hack”

  • Comment by akshay
    Date: June 14th, 2009 at 3:27 pm

    really good post….tutorial is very helpful for me …thanks a lot for giving out such good tutorials

  • Comment by Alex Holsgrove
    Date: June 29th, 2009 at 8:54 am

    This was a great help. Thanks for sharing the code

  • Comment by Abeon
    Date: July 13th, 2009 at 10:26 pm

    This is a great little hack :)
    Simple but effective!

  • Comment by Nate
    Date: August 12th, 2009 at 1:21 pm

    I can’t wait to try this out.

  • Comment by Betaclick SEO Company
    Date: September 17th, 2009 at 7:32 pm

    Thanks for the code dude, i need to try this out on my wordpress blog! As im learning advanced use of it.

  • Comment by Webbando
    Date: April 12th, 2010 at 10:51 am

    Hi Sam. Thanks for your post, really useful. But I would have another thing:
    I want change permalink of attachment file from

    http://site.ext/postname/postname-post_id.html/attachment-name

    to

    http://site.ext/photos/attachment-name

    Is it possible?

    Thanks a lot for your support

  • Comment by William Lindley
    Date: March 2nd, 2011 at 1:43 am

    You might also try the AutoNav plugin, which will automatically generate thumbnails and links to child pages, to posts in a category or by slug or author, or by page/post ID:

    http://wordpress.org/extend/plugins/autonav/

Leave a Comment

Widgetbox widgets

Date: 25th May 2009 at 1:49 am | Filed under: blog | Author: Sam Burdge

I have just created these two widgets for my plugins feed and Zap Gamez over at Widgetbox. This is the most basic type of widget called a Blidget. Widgets are cool, I will definitely make more!

Leave a Comment