WordPress Users Unite

This upcoming weekend there is going to be the first meeting by the Portuguese WordPress community. It’s going to be an informal event with some cool talks already lined up. If you’re a curious user or developer that love or work with WordPress you should pop by, it’s mainly a socializing event and you need it after that ruff week of work. More information about it here..

After the event there’s a plan to go to the Adegga Wine Market which will be held in Teatro Aberto. Sounds good to me :)

WordPress and Sphinx

What is Sphinx?

What’s wrong with the WordPress search?

How to integrate with custom fields?

How to integrate with multi-site?

Trying to integrate Sphinx, a full-text SQL search engine.

Resources:

  • http://vocecommunications.com/blog/2010/07/extending-wordpress-search-with-sphinx-part-i/
  • http://vocecommunications.com/blog/2010/07/extending-wordpress-search-with-sphinx-part-ii/
  • http://www.braindonor.net/coding-blog/custom-field-searching-wordpress-using-sphinx/199/

Meeting the nice folks at Automattic

Yesterday had the chance to meet some of the nice folks at Automattic (the company behind WordPress.org and WordPress.com), including Matt Mullenweg, the founding developer of WordPress and one of the Top 30 Entrepreneurs Under 30 by Inc. Magazine.

The invite came via the WP Portugal community site since Automattic decided to spend a week working and socializing together in Portugal.

The environment was very informal which was good for people to know each other. It’s a pity more people didn’t show up (we were about 6 or 7 outsiders visiting) and a lot of people (like 20) said they would come and didn’t. I particularly enjoyed meeting some of the Happiness Engineers around and discuss some of their day-to-day support and dev work. Some of the stuff we talked about:

  • Admin themes in WordPress: are they coming? are they needed?
  • Having a plugin talking to another plugin remotely
  • Creating a custom plugin repository mimicking the official .org repo.
  • WordPress vs Drupal
  • etc.

It was also good to know the people behind WP Portugal and I hope to give them a hand more often now that I know their faces.

Know your WordPress using the WP_DEBUG option

If you’re into WordPress I’m sure you tried already all sorts of plugins and themes.What you might not be familiar with is the WP_DEBUG option. It raises the error reporting level to include warning messages that may be lurking around and that you haven’t been told about, e.g. deprecated functions being called or variables not being initialized. This happens because the default error reporting level of WordPress doesn’t include everything it could, I guess because some people don’t care or don’t know what to do with these messages. But it is good practice to have this option enabled in your development environment as any WordPress core developer or plugin/theme author will tell you.

It’s very simple to activate, just add to your wp-config.php file the following:

define('WP_DEBUG', true);

But don’t do it in your site, otherwise you won’t be the only one looking at the warnings :|

http://codex.wordpress.org/Editing_wp-config.php

Turn off Sending Emails to New Users in WordPress Mu

WordPress automatically sends an email with the password to new users. How can we disable this feature?

I’ve seen this question being asked around (e.g. here) and couldn’t find a helpful reply anywhere.

I had this same problem and since I couldn’t find a clean way of doing it I had to comment a line in one of the core files. In the file wp-includes/pluggable.php, function wp_new_user_notification(), you can comment the last line that reads:

wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);

I would love a cleaner way of doing this, if you know one please let me know!

Note that with upgrades you will lose this change. Unfortunately there seems to be no way around this until WordPress supports a filter or some other mechanism to do it in a cleaner way.

Also note that this is different from disabling new user notifications that are sent to the admin email, for that there is an option in the admin panel.

This was done against WordPress Mu 2.9.2. Your mileage may vary of course! :)