Archive for the ‘WordPress my-hacks additions’ Category

Force Valid Email Addresses

Friday, July 2nd, 2004

In WordPress, you can enable an option that requires commenters to supply a name and an email address, but oddly enough, it doesn’t validate the email address submitted. This is simple enough to add, as WordPress already has a function for validating email addresses, and because it can be done via a REALLY simple plugin.
(more…)

Forget User Info

Tuesday, June 29th, 2004

When someone leaves a comment on a WordPress blog, a cookie is saved to their computer with the name, e-mail, and URI that they entered. This is quite handy for most people, but it may bother those who use public or shared computers. Wordpress does not by default have a way for commenters to specify that they don’t want their info saved to a cookie, so here’s a way to do that.

Warning: This is not just a plugin. You are going to add a few lines to a core WordPress file. Just so you know.
(more…)

Show recently edited/updated posts

Tuesday, June 22nd, 2004

I’ve been going back in and modifying some existing posts - and I thought it would be useful to see a list of posts that were recently edited.

This function would go in your my-hacks.php file. I created it quickly for my own uses - wanted to keep it here for “code storage” - but you will probably want to customize the code so that it does what you want it to.
(more…)

Display all posts grouped by date

Monday, June 21st, 2004

This function will list all posts, and group them by day. If you want to use it - add it to your my-hacks.php file. (See more information on how to use my-hacks.php here - link via Carthik)

Again - I made this function specifically for a personal use - so there’s not a lot of ‘easy customization’ without specifically editing the code, so I apologize for the lack of ease-of-use - but I wanted to post this for my own “code storage”.
(more…)

Separating Comments and Trackbacks

Monday, June 21st, 2004

Some habits are hard to break. In the MT world - comments and trackbacks are different animals. Maybe just because I’m used to it that way - but that’s the way I prefer it. A trackback/pingback isn’t a complete thought. Comments (usually) are. When reading the comments section, I find it disrupting to see a trackback in the middle of the discussion. When I’m ready to leave the site and read another opinion, I will.

Ok, I’ll get off the soapbox now. Greg asked me how I separated the comments and trackbacks on this site. Here’s how:
(more…)