A moan, a groan, my life story and how me, a technically minded person just can't seem to fit in with anybody.

Remove/edit WordPress admin footer links and version number

function change_footer_admin () {return ' ';}
add_filter('admin_footer_text', 'change_footer_admin', 9999);
function change_footer_version() {return ' ';}
add_filter( 'update_footer', 'change_footer_version', 9999);

Place the above code in your themes function file. The above code allows you to edit the admin footer version number and text links. Just alter the html in the return of each function. I recommend removing the version number for security reasons. There are a lot of tutorials out there that tell you how to remove the generator tag from your WordPress header to hide the version number put they forget if a user registers they can see the version number in the admin footer page. If you build WordPress installations for your clients this footer area is good for displaying your own support links etc.

How to stop Skype replacing telephone numbers on your web design

When a user installs Skype it auto installs some plugins to Internet Explorer and Firefox, that when it sees a telephone number on the webpage a user is viewing it will replace the number and surround it in its own formatting. Now a user can disable this function but as a web designer/developer you cannot guarantee that all your website visitors have it disabled. For those users that don’t have it disabled a nicely designed and placed telephone number in your design is replaced with an ugly and out-of-place number. Yuk! I did some searching and all the posts I could find only said how to disabled the plugin which I didn’t want. I want to disable the plugin or disable the effects of the plugin for all browsers viewing the site I was developing.

I then came across this code:


Put looks like Skype has updated and this code no longer works. For all my web design work I always work with a reset.css style sheet that is like my common settings for CSS that I use in all web development. Well I stumbled across some CSS you can use to hide the effects of the Skype plugin. Here is the nice bit of CSS code that has found its way into my reset.css style sheet:

/**** GET LOST SKYPE! ****/
span.skype_pnh_container {display:none !important;}
span.skype_pnh_print_container {display:inline !important;}

Hope it helps you out

Mathmatically proven that women equals problems

In school you always get tought that anything that can be proven by mathmatics must be true. Well here is some simple secondary school mathmatics that proves that women are equal to problems.

All men know that to get a woman you need time and money:

But over time we know we make money, so time is equal to money:

So from that we can safely say that a woman equals money times money or better put woman equals money squared:

However money is the root of all problems?

So we can replace money with root problems. In maths you should know that root and squared cancel each other out so you are left with woman equals problems:

So there we have it WOMEN = PROBLEMS!!

WordPress – Show images attached to post or page in order

I’m currently building a website where a custom post type needs to show a gallery of images per post. Below image is what I was after:

To do this I would upload the images when creating the post so that the images would be attached to the post, or in other words the attachments where child posts of this post I was creating. I found some code that grabs the attachments but the code didn’t retrieve the results by the order I have specified in the upload manager when uploading the image. To get the images in order I had to write a little more code to what I had found.

Anyway here is the finished code It’s tailored to my needs but here you can see how the image attachments are being pulled and then how im sorting the results to go in the correct order. Hope it is some use to someone.

CSS/HTML – Margin goes/pushes out container block/div

I recently encountered this issue:

Margin Pushing Out

Where the margin on the H1 tag was overflowing into the container above and pushing down the H1 tag’s container. I couldnt figure out why. Here is an example:

To my logic the green should be flush against the top and a 10px gap between the red and green. After some digging around I found out the reason this is happening is due to the way block formatting works. To fix this just add overflow:hidden; to the H1 tag’s container. Fixed here:

PHP Send Email With High Importance Set

Just posting this for reference really. You need to add some extra headers to your PHP send mail script to send the email with high importance. This will show a red exclamation mark on the recipitents recieved mail if their mail client supports this feature.

Google Maps API Javascript V3 – Place Km/Mile radius/circle around point

So Google has released V3 of their Google Maps API and it appears that they have stripped out a number of useful functions that I’ve found myself using in V2. Apparently these functions have been stripped out to make a more lightweight and compact API for better performance for mobile devices. This is great but now you have to write your own function that Google has taken out.

So would you like to draw a radius around on a point on a Google map? Well I do and I managed it in the V2 API using a Google function called distanceFrom() and some custom code but now that function has been stripped out in v3. Anyway I’ve rewritten my code to do this in the V3 API. Take a look:

This requires the Google Maps API and also the latlong JS script from Movable Type. To use simply call the function drawCircle() sending your Google longitude and latitude cords and the mile radius. If you want to use Km then comment out or delete the bit of code highlighted.

Oh and you can send some other variables too if you don’t like the default colours and settings.

Example usage:

How to recieve and send MSN, Hotmail, Live email on android phone

I thought I’d just share these settings, as I have found they are impossible to find. Also I will point out that this is POP3 and SMTP settings and not IMAP. Correct me if I’m wrong but you have to pay for IMAP access, and I think thats why these settings are hard to find… Why tell you how to connect for free when they want you to pay. Another great thing with these settings I have found they work on ISP’s and mobile networks that normally block port 25. So here they are:

Incoming Settings:
Username: [email protected] (use your full email address)
Password: ********
POP3 Server:
Port: 995
Security Type: SSL

Outgoing Settings:
SMTP Server:
Port: 587
Security Type: TLS
Require Sign-in: yes
Username: [email protected] (use your full email address)
Password: ********

So there we go. Also these settings will work on other email clients not just android phones.

CSS Dotted/Dashed HR Style

Ever had problems styling an HR element to be dotted or dashed and look correct in all browsers?

Well here is a simple solution for you:

border:#000 1px dotted;
border-style: none none dotted;

Microsoft Exchange/Outlook – Mail won’t leave outbox (won’t send)

As of lately we have had a few users where they compose a message in outlook and when they hit send the message goes to their outbox to send but it remains there and nothing you do will release it. However when the user logs into Outlook Web Access the message sends perfectly fine. This immediately indicates that the issue is client side in Outlook.

I must have spent ages trying to get Outlook to send but eventually a colleague of mine find a setting deep within Outlook which fixed the issue of emails not being sent and stuck in the outbox. The setting is as follows:

Outlook -> Tools -> Options -> Preferences (Tab) -> Email Options (Button) -> Advanced Email Options… (Button)

Then when there make sue that the follow tick box is un-checked: “In folders other than the Inbox, save replies with original message”.

Not sure what this does but when we un-tick it mail flow starts working again.