Mass Edit WordPress Posts with Regular Expressions

Picture this: you have a thousand posts in your blog and some maliciously minded individual (not my first choice of words) comes along, sticks his digital hatchet into your database and hacks away at it until every post is filled with spam links to Viagra stores. Just as you think things can’t get any worse, they just did: you’ve written 30 posts since your last database backup!

What do you do?

Is there a quick way to get rid of all that lovely free Viagra advertising you’re giving away?

Along Comes Search Regex

Search Regex is the search and replace plugin I use most. It allows a WordPress database to be scanned for specific words and phrases which can then be replaced or deleted. There is no need to physically browse a site’s database because everything can be done from its WordPress admin panel (a picture of that follows in a few paragraphs).

In technical lingo, those words and phrases…

Submit to the Top High Traffic Search Engines

The following list of search engines contains the URLs to each one’s site submission form. Guide notes to the non English language search engines follow the list. Think yourself lucky you’re not reading my first draft for this post. I planned to pen a good introduction to this short list of search engine submission URLs … Read more

Give Your Site a Social Face :)

This isn’t about adding your site to social networks. That’s important, granted, but it’s not the only thing you need to do when sharing your site around the web. This is about giving your site a good old thumbnail to inspire people to click it’s Facebook shares and Diggs. Many social bookmarking sites and social … Read more

Technorati Blog Claim Registration

This post is just to enable me to register JournalXtra with Technorati. If you wish to do the same for your own blog you will need to go to technorati.com, register a user account, register your blog then add the claim code Technorati emails to you into a new blog post – adding it to … Read more

Making Better HTML Table Borders

Big ugly table borders only work for people with fetishes about big ugly table borders. Of the fetishes I have, that is one I am glad to report I lack. I enjoy looking at thinly lined tables that are as neatly displayed as those one might draw on paper. You might not believe that while … Read more

Really Simple Traffic Logger

Born out of boredom, unrealized necessity and the fruit of another script, this really simple PHP counter logs page views and tracks visitors from the time they enter your site to the time they leave it. Weighing in at slight 9.9 KiB, or 5.6 KiB when all comments are removed, it represents excellent value for a free php website traffic counter and logger.

The traffic data logged by Really Simple Traffic Logger is everything you might need to see where your visitors are coming from, where they are going once they are on your site and for optionally displaying a configurable PHP counter on your webpage. The complete log data list is:

  • access date
  • access time
  • visitor’s IP address
  • visitor’s hostname
  • the visitor’s referrer (where he/she or it came from)
  • the visitor’s browser agent
  • the page (or pages) the visitor viewed (or loaded)
  • the script that loaded an accessed page
  • any search engine search strings