Posts Tagged ‘Wordpress’

Plugin Conflict: WP Welcome Email Editor -> Mingle

March 15th, 2010

Mingle LogoJust a quick one this evening. A user has recently noticed that the Wordpress plugin called Mingle conflicts with my plugin WP Welcome Email Editor. It, for some reason, causes Wordpress to call it’s own version of the wp_new_user_notification function before my plugin, or any other for that matter, can declare theirs.

The remedy is simple, fix Mingle. In the absence of that you can fix it using the following method:

  1. Open mingle.php
  2. After the PHP comment for the plugin at the top add the following code
    add_action('init', 'mngl_init');
    function mngl_init() {
  3. Right at the bottom of the code before the closing ?>, add the following:
    }
  4. Save the file and then plugins like mine will work with it without causing a conflict.

If either the Mingle author fixes the problem or anyone has a better way of sorting this then please do let me know and I will update this post to let others know.

Please make sure you back up the mingle.php file before making these changes. Just in case ;) Please also be aware that if you update the Mingle plugin then you need to put this code in again to maintain the fix.

SB Twitter Plugin

November 21st, 2009

Let’s get this straight, I hate Twitter with a vengence on account of it being a pointless waste of time. However, I can see that some people enjoy using it and also want to share their exciting lives with other people.

I have just had the need to develop a very basic plugin to put a Twitter widget (not a Wordpress widget) on a website. I didn’t see the point in forcing the user to put masses of code onto their page each time they wanted to include the widget so created a shortcode to do the same job.

I have rather imaginatively called it SB Twitter and it allows the user of a shortcode to put the Twitter flash widget onto a post or a page.

Usage

[sb_twitter name="you_user_name"]

You can optionally include width=”" and/or height=”" to manipulate the size of the box.

Download

The download file contains a readme which essentially says to upload the file to your plugins directory, activate it and use the shortcode provided.

SB Twitter (2.29 KB)

Screenshots

Example output of SB Twitter plugin

Spammers go funny!

October 7th, 2009

Just a quick one today but I had to comment on the hilarity of the steps that spammers take these days. It appears it has only been the last few weeks but a new technique I have noticed in my Wordpress spam has been jokes! The general content of the comments is still rubbish and they still link back to some malicious site however after the silly content is ‘here is a joke for you…’.

I must admit I haven’t enjoyed checking my spam comments as much as I have recently. Spammers, your comments arent getting through but they do deserve a good chuckle now and again. Here are a few I have had recently:

What geometric figure represents a lost parrot? A polygon – My Favourite

What goes black and white, black and white, black and white, boom? A nun falling down the stairs.

What is three feet long? A yard.

What do sea monsters eat for lunch? Fish and ships.

What lies at the bottom of the ocean and twitches? A nervous wreck.

Why do turkeys eat so little? Because they are always stuffed!

What do you get when you have a cow and a duck? Milk and quackers.

Why did the big moron fall off the roof and the little moron didn’t? Because he was a little more on.

Did you hear about the flasher who was thinking of retiring? He decided to stick it out for one more year!

What insect does well in school? A spelling bee.

What kind of bird can write? A penguin.

Why did the bald man put a bunny on his head? He wanted a full head of hare.

Why wouldn’t the bike move very fast?? It was too tired!!

What do the letters D.N.A. stand for? National Dyslexics Association.

What kind of shoes do lazy people wear? Loafers.

Why did the man put wheels on his rocking chair? He wanted to rock and roll.

What do you call cheese that isn’t yours? Nacho cheese.

Where does a bird go when it loses its tail? The retail store.

What do Eskimos get from sitting on the ice too long? Polaroids.

Did you hear about the red ship and the blue ship that collided? The survivors were marooned.