How to Stop Duplicate Twitter Notifications in SiteWide Tags

If you are using Donncha’s Sitewide Tags plugin for WordPress MU along with Alex King’s Twitter Tools, you might get frustrated with the fact that you will see two duplicate notifications on Twitter – one from the original blog entry, and one from the sitewide blog.

Here is how you can stop duplicate twitter tools notifications in sitewide tags – you will have to edit Twitter Tools:

Open up “twitter-tools.php” in the plugin folder, then locate the “do_tweet” function in the code. Right under “function do_tweet($tweet = ”) {“, insert the below code:

		global $wpdb;
		if (isset($wpdb->blogid) && $wpdb->blogid == "4") {
			return false;
		}

My sitewide blog ID is “4″, so if yours is different, make sure to change the number to the corresponding blog ID. You can locate the blog ID in wpmu-blogs.php page. Save the file and you are done!

I know this is not the most elegant way of doing this, so if you come up with a better method, please let me know.


Be Sociable, Share!

Related posts:

  1. Sharing blog with my wife
  2. 2009 Worldwide Photo Walk Winners
About Nasim Mansurov

is a professional photographer based out of Denver, Colorado. He is the author and founder of The Mansurovs, along with a number of other online resources. Read more about Nasim here.

Speak Your Mind

*