Tag: php

Filter out empty lines in WordPress

The visual editor in WordPress sometimes adds blank paragraphs against your will. Learn how to use a simple WordPress filter to remove all instances of <p>&nbsp;</p> from you posts’ content.

Tagged with: , ,

How to update an HTML image gallery (PHP tutorial)

In this tutorial I’ll walk you through the steps involved in building a databaseless PHP admin section for Smooth Gallery. When done, without much effort you should be able to adapt the code to fit any similar JavaScript image gallery.

Tagged with: , , , , ,

Using captcha without displaying it

How I use captcha without making my users complete the barely readable word Capthca sucks. For more information on how much captcha can suck see John Willis’ post Top 10 Worst Captchas. But at the same time it can be

Tagged with: , , , ,

Exclude trackbacks from recent comments listing

To spare some time I tryed googleing for don’t show trackbacks in recent comments but wasn’t able to find anything relevant at first glance. So, if you have the FreePress Recent Comments Widget and the long site titles from the

Tagged with: , ,

Secure a flat file using a .php extension

I need to store some sensitive data (user names and passwords) in a flat file. I don’t want to make any use of databases because this would defeat the whole purpose of the project. Of course, the passwords will be

Tagged with: , ,