anty.info

Comments and help on web development.
05 2009

How to enable Akismet in WordPress MU – globaly

Akismet is the best Worpress plugin. At least from my point of view.

I resist using CAPTCHAs whenever I can to offer my visitors the best user-experience. Who likes to comment a post when you additionally have to decipher symbols on an image only to type them into a textbox?

For this reason I activated Akismet on all of my blogs. Now it quietly checks every comment and removes it, if it is detected as spam.

Now it happens that I own a community site based on WordPress MU, enabeling every registered member to run their own blog.

Unfortunately Akismet needs an API-key which has to be inserted by hand on each and every blog. At least that’s what I thought until today.

There is an easier way to globally activate Akismet on WordPress MU and specify an API key that cannot be changed. Follow these steps to aktivate Akismet on all your WP MU blogs:

  1. Move the “akismet” directory from the “plugin” directory to the “mu-plugins” directory,
  2. move the file “akismet.php” to the “mu-plugins” directory,
  3. open the file “akismet.php” with a text editor and add your API key on line 12.

Now you have activated Akismet on all blogs and the ability to change the key is gone.

With this setup users can’t deactivate the spam protection and you can apply yourself to more important things.
Like how to get more visitors to your community site.

Oh, and BTW: I accidently the whole site. But thanks to Google Cache I had a backup of all my posts. Just think about it when you accidental delete your whole database. ;)


6 Responses to “How to enable Akismet in WordPress MU – globaly”

  1. Thanks…nice guide!!

    Now i’ll activate akismet on my wpmu…

  2. Amazingly simple. Thanks!

  3. sounds great!!
    I’m just wondering if it’s not in conflict with Akismet’s terms as they want larger sites to get the commercial API

  4. [...] moeten staan voor alle blogs/websites zet je in de /wp-content/mu-plugins; zoals bijvoorbeeld Akismet en New Blog [...]

  5. [...] moeten staan voor alle blogs/websites zet je in de /wp-content/mu-plugins; zoals bijvoorbeeld Akismet en New Blog [...]

  6. Well, I’m reading your setup process and it didn’t work for me. I received errors stating that the directory didn’t exist. I am using a current version of Akismet 2.5.3 (read date of post) and also 3.0.5 of WP with multi-site. Anyway, I believe that Akismet can be NETWORK activated now, AND still going into the akisment.php file and ADDING your key to line 38 like so “$wpcom_api_key = ‘key here’;”

    Hope this helps!

Leave a Reply

« »