I've recently moved to WordPress an active community site which is run and moderated by several editors and administrators. Each post gets dozens of comments, and I wanted to highlight those made by staff members. What not to do If you've googled a bit for a solution on how to identify authors' or admins' comments, you've probably [...] → Read more
Archive for the "Code" Tag
Short intro for readers who don't follow me or this blog's feed: I've been a judge in the annual WordPress Plugin Competition, and as such I have reviewed a number of plugins. Read more about this. As promised, I'm going to share a list of the most common mistakes, errors, misunderstandings, bad habits or wrong design [...] → Read more
In the upcoming WordPress 2.8 there's an interesting function set meant to help authors manage their plugin custom options. In a nutshell: whitelist your options, define how you want them to be validated, and just lean back and rely on the API to handle everything for you. Your new best friend is function register_setting(), and I'm [...] → Read more
Using PHP's HTTP Authentication is a simple way to protect scripts behind a login/password prompt. There's one little problem: it's supposed to work only on PHP as an Apache module, not the CGI version. It took me a while, hair pulling and some googling to get a basic HTTP Auth system working on Dreamhost's PHP [...] → Read more
Working with SVN on Windows is pretty much synonym to using TortoiseSVN I guess. If you are running a trunk version of WordPress, maintaining plugins or doing anything else collaboratively, chances are you're using this nice piece of software. When you log to you computer to get some coding work done, what is your first task? [...] → Read more
I ran into an interesting problem, facing what is certainly an HTML limitation that had somehow never really occurred to me. The thing is: when you submit a form with empty fields, empty values are POSTed, except for checkboxes and radio buttons which are not posted at all, just as if they were no such [...] → Read more
The plugin quick reviews I recently did (Plugin Competition roundup, part 1, part 2) got two consequences so far. First, they generated some feedback from readers asking for insights or advices, and second, they quite left me in perplex astonishment regarding how many coders ship plugin with messy code. About the second point, I threw together [...] → Read more
A WordPress install is a bunch of directories and files, but two of them are particular: the file wp-config.php and the directory wp-content/ are personal and don't get overwritten when you upgrade your blog. In WordPress 2.6, they get so personal that you can even move them out of the WordPress root. This must bring [...] → Read more
Stephen, on his geek blog Nerdaphernalia, is running a series of excellent posts giving advices to plugin authors for neat subtle effects: adding a "Configure" link right next to the "Activate" link on the Plugins page, or how to give credit to your plugin without cluttering the page (I'm a big fan of the "Configure" [...] → Read more
I've updated my Projects page, which was missing quite some works. It should now be up to date with all the stuff I've coded in the past few years. Hey, this page is starting to give me a little warm feeling of pride ;) Share This Related posts Wordpress Dashboard (0) The First Rule Of Wikipedia (1) Spam statistics (2) Ranking [...] → Read more