Hapless band of staff and regulars

Archive for the Web Design category

Saturday 10th November 2007

Shared servers

There is a problem having your website hosted on a shared server, which is that you really need to trust your webhost. So I was rather shocked today when installing phpMyAdmin that without configuring the config.inc.php file I was able to login to the mySQL database.
Not only that but I could see the names of every table on my server. Now this has happened before, but any attempts to view these tables resulted in errors, but this time I was able to view any table, read all the content and even edit a random persons blog post (don’t worry, I undid the changes).
Of any security issue this was a big one, I could have gained access to a large number of wordpress blogs, and if I looked I’m sure I could have found a forum with usernames, emails and md5 hashes of passwords.
However I’m not out for “hacking”, so I contacted my webhost and shortly after as password was added to the mysql root.

Friday 9th November 2007

New Gmail Problems

Gmail LogoIt’s seems that Gmail has gone through some small changes, extra divs showing background ajax commands, my email address inside the <title> tags, whilst writing emails the Firefox status/loading bar flashes like a disco and some other stuff.
I know it’s changed as I’ve got an Older Version link, however on the What’s New page I can’t see anything and the same goes for the blog.
The problem, I’ve now had Firefox crash on my three times (over two machines) when I’ve clicked on the Spam link (not everytime), and for some reason it doesn’t want to remember that I don’t want this new version. I can’t see anything great about it, and whilst they don’t want to tell me whats new why would I.
Maybe it’s time to downgrade to a UK version?

Friday 9th November 2007

Hide from all except admin

I wanted to put a WP-Admin link on my blog, but one which only showed to me whilst I was logged in.
So hunting through the WordPress Codex I tried to find something like is_admin(), but couldn’t find it. Then going through all the PHP files I found this function current_user_can(capability) which returns true or false if the logged in user can do that capability. Next I had to work out a capability which only admin could do, but a quick look at the source code showed that it should be possible to enter an integer which related to a level.
So finally I have this on my blog:
<?php if(current_user_can(10)) { ?><a href="/wp-admin/">WP-Admin</a><?php } ?>

YouGov

Thursday 8th November 2007

Tidy Slugs

I’ve been playing about with WordPress plugins all day, and have created (more like stolen and modified a small amount) Tidy Slugs.
This plugin tries to catch a few of the random stuff that WordPress misses when I make the post slug.

For example if my post title was:
Ryan’s Tidy Slugs, WordPress would make a URL of blog.artesea.co.uk/2007/11/ryans-tidy-slugs.html

however if it was:
Ryan’s Tidy Slugs (notice how the apostrophe is slightly more curvy) it would be blog.artesea.co.uk/2007/11/ryan%e2%80%99s-tidy-slugs.html

Very, very ugly!

(OK, you might not be able to spot the difference as WordPress loves to curve the apostrophes, however try creating a post title using the second one).

GooSync

Monday 22nd October 2007

They’re back!

In-Clegg-able Huhne Monster
And if you’re really lucky I might even throw in a bar-chart!

Monday 24th September 2007

3 years old

3rd Birthday Cake Some time before Conference, LibDemBlogs had it’s 3rd Birthday. I’m not sure exactly when it was as the archives only go as far back as 5th December 2004 and archive.org only has posts from the 4th October 2004, yet I remember having the site live before Bournemouth 2004 conference.
But looking back at those early pages it’s amazing to see that we only had 16 bloggers and were average around 6 posts a day between us. Since then only half remain active/live (Adam Nazir Ahmed Teladia, Gavin Whenman, Lynne Featherstone, Neil Fawcett, Richard Allan, Ryan Cullen, Sandra Gidley, Will Howells), whilst the others are now gone (Hazel Crabb-Wyke, Jody Dunn, Martyn Hencher, Rob Goodfellow, Sara Grey, Steve Guy, Tom Paul and Vivienne Raper).
Today we have 133 active bloggers, in the last 44 hours 92 posts have been made and the site is one of the most popular LibDem websites.

Sunday 23rd September 2007

Blog of the Year Winner Buttons

No not me, I didn't win. It was James Graham As I had a slight lack of Internet access whilst in Brighton, it took some time to add the Winner Buttons to the and the winner is post on LibDemVoice. However as there are some 40 posts since then I think the winning (and highly commended) authors may have missed them. So here’s a plug. Feel free to use the buttons on your own site, and the same goes for all those who made the shortlist.

My-Symbian

Wednesday 19th September 2007

Presidental Election

Whilst the press would like you to believe that the talk of the Conference bar is Ming, it’s actual who is going to replace Simon Hughes as our President in 2009!
Campaigning has started early as people arrived at Conference wearing I’m 4 Ros badges. In a panic the John Smithson campaign had to be launched much earlier than planned and Theo got John Smithson for President badges made up on the LibDem Image stand. And last night the Lembit campaign started handing out stickers as they felt left behind.
I'm 4 Ros John Smithson for President I Pik Opik
Just not sure where the Lembit camp got their slogan from ;)

Friday 31st August 2007

The Daily “Diana” Express

Daily Diana ExpressThere used to be an ongoing joke that you knew it was Monday because the Daily Express had a Diana Exclusive on the front page. Then I started to notice that almost every day was Diana day, so I thought about writing a script to cache the front page and then comeback months later and check. So the fruits of my code is this: Daily Diana Express. It goes back to the start of March and has every front cover. A quick scan of all the thumbnails and I have counted that 34 / 178 covers featured Diana, another 20 had the royals (Harry / Will / Kate / Charles / Camilla / Ann), but more suprising and featured in this fortnights Private Eye was that 70 out of 118 (59%) papers since the 5th May have Madeleine McCann on the front page.
So maybe its time to stop calling the paper The Daily Diana Express and instead The Daily Maddy Express?
Featured on Liberal Democrat Voice

Monday 27th August 2007

STOP SHOUTING

Hopefully a new line of code in the LibDemBlogs script should stop shouty headlines.
So this is a test.