February 20, 2013
No Comments
Sometime a backup script can go wrong, and rather the overwrite the old files you place a copy of the new ones into the same folder.
This can then escalate and before you know it you have multiple levels of the same files.
If you just want to flatten these files then this script can do that you
// The duplicated directory
DUPLICATED_DIR_NAME='uploads'
// A new directory for the files to go into
NEW_DIR_NAME='realuploads'
for f in <code>find ./ | grep $DUPLICATED_DIR_NAME/$DUPLICATED_DIR_NAME </code>;
do
NEWFILE=<code>echo $f | sed 's/$DUPLICATED_DIR_NAME\//\//g'</code>;
NEWDIR=../$NEW_DIR_NAME/<code>dirname $NEWFILE</code>;
if [[ ! -d $NEWDIR ]]
then
mkdir $NEWDIR;
fi
cp -f "$f" ../$NEW_DIR_NAME/$NEWFILE;
done
August 22, 2012
No Comments
If you use the disqus plugin on your wordpress site, you may be surprised to learn that your content is hidden on mobile devices (specifically ipad/iphone).
The problem that occurs is that the content is covered by a nice white box that you can’t see through.
Thankfully there’s a nice quick fix. In your site’s css rules, simply add the following :-
#disqus_thread { clear: both !important; }
And mobile users can see your content again!
July 26, 2012
No Comments
If you like the admin functionality to manage plugins, themes and other updates that wordpress features and would like to have this working when you are developing locally then you might find that you need to set up an FTP server locally just for this purpose.
Perhaps a better solution, especially if you use a *nix based desktop such as Linux is to try this extension:
http://wordpress.org/extend/plugins/ssh-sftp-updater-support/
This will extend the FTP functionality to also use SFTP or SSH for the updates. If you are already running an SSH server on your desktop then there is very little left to do. If you are not then a quick
sudo apt-get install openssh-server
And you are ready to go.
From this point you can then use the admin functionality to manage plugins etc which is a nice slick way of doing things.
April 11, 2012
No Comments
If you would like to upgrade wordpress directly on the command line using bash then you might like this little script:
#!/bin/bash
# This is a script to upgrade wordpress.
# Put it in your wordpress document root (the folder that contains wp-config.php)
# chmod +x to make executable
# ./wp-upgrade.bash to run
# Originally here: http://yabfog.com/blog/2011/12/12/wordpress-update-bash-script
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TMPDIR=/tmp/wp-upgrader
mkdir -p $TMPDIR
WPDIR=$TMPDIR/wordpress
mkdir -p $WPDIR
cd $TMPDIR
rm -rf latest.zip ./wordpress # Clean up from the last run
wget -nd http://wordpress.org/latest.zip
unzip latest.zip
mv $DIR/wp-config.php $DIR/.wp-config.php.backup # Stash your configuration someplace safe
rm $DIR/*.{txt,html,php} # Delete the old install
rm -rf $DIR/{wp-admin,wp-includes} # Delete more. Don't delete plugins or themes.
cp -aR $WPDIR/* $DIR/
mv $DIR/.wp-config.php.backup $DIR/wp-config.php # Restore the configuration
# You may not need the last two lines. I like to give my web server the ability to write files.
#chown -R .www-data $DIR/*.php $DIR/wp-admin $DIR/wp-includes
#chmod -R g+w $DIR/*.php $DIR/wp-includes
Please don’t use on a live site or anything like that, but for local development its a quick way to upgrade the site.
The script was originally here I simply edited it a little
March 12, 2012
No Comments
We have recently launched a clean, clear and simple web site for local architects SDM architecture who are based in Baildon near Shipley, Bradford and Leeds.
The brief was a clean web site that Stephen the owner can easily manage with his own content showcasing his work and attracting new clients.
All in all the project was a big success with a very rapid turnaround.
Stephen said
“you have been very helpful and I have appreciated everything you have done for me”.
here is a screenshot:

Custom notification system and wordpress modifications
The Horse Transport Network required wordpress to be customised to enable many custom features including:
1. calendar with an advanced permissions system
2. form to allow users to request horse transportation
3. notification system that integrates with a text message (SMS) service
4. customisation of wordpress to allow for streamlined registration
5. importing data from old Joomla! site to new WordPress site
Horse Transport Network
The Horse Transport Network allows customers to get quotes for any journey within the UK, Europe or Worldwide. To quickly and simply get several quotes from our registered transporters, click on the “Move Your Horse” button and fill out your contact and journey details.
Haiz Design
Haiz Design is a web site design agency. Edmonds Commerce was sub contracted to implement custom functionality for the Horse Transport Network web site. The Horse Transport Network specialises in helping users who need transportation for there horses find some one willing to transport horses all over the world.

This project was brilliant as it was an opportunity to flex my knowledge of WordPress rather than sticking with the usual Magento.
October 25, 2010
No Comments
Easy peasy:
#!/bin/bash
wget http://wordpress.org/latest.zip
unzip latest.zip
cp -rf ./wordpress/* ./
handy little bash script to install word press
February 17, 2010
No Comments
A nice little shell script for quickly install WordPress on Linux::
#!/bin/bash
wget http://wordpress.org/latest.zip
unzip latest.zip
cp -rf ./wordpress/* ./
September 2, 2009
No Comments
Magento, the ecommerce package that everyone is talking about at the moment and that Edmonds Commerce have been keeping a close eye on for the past couple of years or so has won the best of open source enterprise software award for the second year running.
Run by InfoWorld, the awards highlight the cream of the current open source crop. Unsurprisingly Drupal came out top for content management, it is definitely the CMS that Edmonds Commerce would recommend and Magento took the Ecommerce Crown. The blog award went to wordpress (what an awesome application).
You can see the full line up here