Pluggin’ WordPress

Been adding a few plugins to WordPress.

Just installed the Advanced Contextual Search for WordPress. Didn’t follow all the instructions, so have activated only the fuzzy search option.

Also did my own hack to the quicktags.js file to add the target attribute for links. It’s been very irritating to type out the attribute always, hence the need for the hack. Instructions below, for those interested:

  • Open quicktags.js in your wp-admin folder.
  • Find the text

if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the URL' ,defaultValue);
if (URL) {
edButtons[i].tagStart = '<a href="' + URL + '">';
edInsertTag(myField, i);
}
}

  • Replace it with:

if (!edCheckOpenTags(i)) {
var URL = prompt('Enter the URL' ,defaultValue);
var TARGET = prompt('Enter the Target' ,'_blank');
if (TARGET) {
edButtons[i].tagStart = '<a href="' + URL + '" target="' + TARGET + '">';
edInsertTag(myField, i);
} else
if (URL) {
edButtons[i].tagStart = '<a href="' + URL + '">';
edInsertTag(myField, i);
}
}

This should save a good amount of time and effort, as I use the target="_blank" attribute regularly.

Have also added these these plugins:

Post Count, Comment Count, Recent Posts and Post Word Count plugins here. You can see them work in the menu to the left.

Google URI Redirector

This plugin strips URIs from your comments and uses the Google redirector to prevent comment spammers from taking advantage of your pagerank.

WYSIWYG II Plugin for WordPress

This plugin replaces the regular text area with an WYSIWYG editor (htmlArea).
This causes the quicktags.js to give javascript errors. Didn’t have undo support and all the posts are rendered in HTML, so shifting back is a problem, as well as editting my older posts. So, have taken it off. Was worth trying but.

In addition to this, I have added two hacks, viz. wp-email.php and wp-print.php. The first will enable you to email any post with its contents to a friend, while use the second to print out the post. See them in action at the end of every post on this page.

Lastly, have added the WP AuthImage Hack.

Creates an authentication image (or phonetic text) to help combat spam in comments.

Needs to be tweaked however.

Share this post with your friends!

3 Comments

  1. Testing the AuthImage Hack. Works good, as the comment went into the moderation queue.

    Will have to tweak it a bit, so as to prompt the user in case they forget to enter the code.

  2. Testing the above plugin again. This time, I have entered the wrong code and then a blank code. The plugin is set to reject the post if there is a wrong code. Worked fine!

    Now entering the correct code. So, you will see this comment.

Comments are closed.

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.