Brady
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:

<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

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!!

Where are your manners?

Ugh! If there is one thing I hate is someone that cannot say thank you. So just come back from a date with a girl, and for me if you ask a girl out on a date its only right that you pay for the date. That I did and all was well but I never heard a single thank you for anything I paid for. She didn’t have to dip her hand in her pocket for anything and to saying thank you would cost her nothing! Other than that the date went well but to me someone that has no manners or doesn’t show any gratitude is a big deal breaker for me. Any body reading this, if someone does something for you then please say thank you, it doesn’t cost you anything but it certainly goes a long way.

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 http://pastebin.com/wEvW0WHZ. 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.

A friend launches Dovetail Cards

Just helping my friend spread the word about his new web site he and his wife has opened recently. Dovetail Cards is a new greeting card company selling individually designed and printed cards printed on the finest forest approved card. As well as designing and producing a range of notelets they are launching individual ranges of cards over the coming weeks and months.

Keep your eye open for those new ranges of cards and follow the link www.dovetailcards.com to visit there website

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:

http://l3rady.com/wp-content/uploads/2010/09/marginout.html

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:

http://l3rady.com/wp-content/uploads/2010/09/marginfixed.html

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.

http://pastebin.com/UamEcsu7

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: http://pastebin.com/DnLqzMZx

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: http://l3rady.com/wp-content/uploads/2010/09/mapexample.html

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: pop3.live.com
Port: 995
Security Type: SSL

Outgoing Settings:
SMTP Server: smtp.live.com
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.