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

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.

1 Response 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?

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!

5 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.

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

Zombie Killer Gorefest 3 - Flash Game

Date: 2nd April 2009 at 8:58 pm | Filed under: blog, flash, portfolio | Author: Sam Burdge | Tags: , , , ,

zombie killer gorefest 3

I have been working on a couple of Flash games recently for my new arcade site zapgamez.com. The first of these games is Zombie Killer Gorefest 3, which is now previewing on Zap Gamez. You can play the game here:
http://www.zapgamez.com/games/action/zombie-killer-gorefest-3

The official release text for the game is as follows:

Currently exclusive to ZapGamez.com, Zombie Killer Gorefest 3 is a point and click shoot 'em up where you have to defeat the zombie hordes in 3 chilling action-packed levels. Inspired by 70's and 80's Horror and B-Movie genres, this game includes it's fair share of blood and gore, so is therefore not appropriate for younger players.

I created the game in actionscript 2, possibly one of my last as2 projects before I move over to as3 fully. The graphics and animation are a more prominent part of the game than the scripted aspects which are fairly basic hitTest functions.

The game will probably stay exclusive to Zap for the next couple of weeks before I release it through MochiAds distribution. If you are interested in getting the game for your site when it is released please subscribe to my RSS feed and I will announce the release here on my blog in the near future.

Leave a Comment