How to handle Russian spam comments

Recently we’ve been seeing a number of spam comments written in Cyrillic (Russian) characters. Because they are not in English, they slip past anti-spam plugins like Akismet and Anti-Spam Bee.

What to do?

Jeff Starr of Perishable Press suggests adding the most common Cyrillic characters to your comment moderation file.

If you expect to get comments from visitors writing in other languages, of course, this might not be a good idea. But for normal blogging activity, especially if you prefer to leave comments open indefinitely, take a look at Jeff’s article and consider implementing his suggestions.

Posted in Quick Tip | Leave a comment

Visitor Statistics in your WordPress Dashboard

google analytics traffic graph 2009 300x108 Visitor Statistics in your WordPress DashboardOnce you have your WordPress blog up and running, you’ll naturally want to know how many people come to visit you. Google Analytics is the gold standard of statistical information, of course, but that means opening another browser tab or window and signing in to a separate service.

Wouldn’t it be nice to have your visitor statistics right in your WordPress dashboard?

Here are three plugins that allow just that.

Continue reading

Posted in Recommended Plugins | Tagged , | Leave a comment

How to add Title tags to links

In the edit window, type in the text that you want to show as your link text, such as “More information.” Select it and click on “link” if you are using the HTML editor or the link icon if you are using the visual editor. (Note: the link icon won’t be active until you select the text you want to link.)

link image1 How to add Title tags to links

link image2 How to add Title tags to links

A lightbox window will pop up where you can either enter the URL to want to link to, or choose a page or post from your previously-published material.

link image3 How to add Title tags to links

Click on the Add Link button, and you’re done!

Note: Are you wondering why it’s a good idea to add title tags to links? The answer is coming tomorrow on 2FishWeb.com.

Posted in Blogging Basics, Tips | Tagged , | 1 Comment

Curly quotes and inch marks

inch quote Curly quotes and inch marksWhen you type a paragraph into WordPress, the software automatically converts your straight quotes into angled or curly quotes, like so:

"Good morning, world!"

becomes

“Good morning, world!”

But what if you are writing something that requires straight quotes, such as measurements? Then your dimensions will be displayed this way:

Artwork is 12″ wide by 18″ high

To use the straight quotes for inch marks, you’ll need to tweak the HTML just a tiny bit. Finish your post and save the draft. Then switch to HTML mode. Wherever you need an inch mark instead of an angled or curly quote, change the " to " . Save your draft in HTML mode and preview. You should now see your dimensions displayed properly, like so:

Artwork is 12" wide by 18" high


 

Posted in Blogging Basics, Tips | Tagged | 1 Comment

WP Writers: please date your posts

evergreen WP Writers: please date your postsA number of high-profile bloggers (mostly the ones who blog about how to blog) recommend that you turn off date stamps on your posts and in the site URLs. Write “evergreen” material, they argue, and your posts will show up high in Google search pages even if the searcher asks for recent results.

If you are writing about WordPress — or indeed, any software program or system — this is bad advice. WordPress is constantly being updated and improved. Old code is deprecated and new function hooks and features are added with every release.

The WordPress code hack or snippet that you feature today may not work in future versions. The plugin you recommend now may conflict with the next release — and will the plugin’s author maintain and update it for compatibility?

Please, WordPress bloggers: put dates on your posts so that future searches will indicate whether it might be relevant to solving their problem at that time. (There’s nothing worse than finding the exact solution you need — written for WordPress 2.2 and never updated.) If you want to be really helpful, tag your post with the WordPress version current at the time you write it. Yes, your time- and version-sensitive posts will drop from future search results (as obsolete information should), leaving opportunity for you to write new material.

WordPress users and developers will bless your name and come back to your site for continuing authoritative and useful information.

Practicing what I preach: WordPress all versions; current version 3.3.1.


 

Posted in General | Tagged , | Leave a comment

Watermarking images

watermark Watermarking imagesIt’s impossible to completely prevent someone from downloading and saving any image that you post on the Internet. As a matter of fact, every time someone opens your web page in a browser, a copy of each image is temporarily downloaded to the viewer’s hard drive.

But artists and those who make their living from images often want to announce that a particular image belongs to them and make it more difficult for someone else to use the image without permission or attribution. One way to do this is to add a watermark — a notice of copyright or ownership — directly to the image in such a way that the image can’t be reproduced without the notice.

You could do this, of course, in your photo editing program. But there is an easier way.
Continue reading

Posted in Blogging Basics, Recommended Plugins, Tips | Tagged , | Leave a comment

Lightbox effect for your images

Problem:

You don’t like WordPress’ default behavior of linking small images to a separate page showing the larger image. You’d rather have the larger image open right on the page while the background darkens, like this:

lightbox 300x226 Lightbox effect for your images

Go ahead and click on the image above to see the effect in action.

Solution:

Auto Thickbox Plus plugin.

NOTE: The plugin page says that it is compatible up to WordPress version 3.2.1. My tests show that it works on version 3.3.1 as well.

Dashboard settings are simple.

thickbox settings1 Lightbox effect for your images

You can choose whether to automatically use the effect on single images (as I have) or on WordPress galleries. You can also choose whether to use it on text links, as in the example below which opens the linked page in a popup box right here:

2FishWeb Designs

Simple, easy, elegant.

Recommended.

Posted in Blogging Basics, Recommended Plugins | Tagged , | 1 Comment

Fix the HTML Editor font in WordPress 3.3

This is a much more technical post than usual for WPbonbons, but I’ve spent a good bit of time figuring it out and wanted to share.

In version 3.2.1, the HTML editor font was changed from Verdana to Consolas, a monospaced font that (to my eyes and those of many others) is ugly and hard to read.

post editor1 Fix the HTML Editor font in WordPress 3.3

post editor2 Fix the HTML Editor font in WordPress 3.3

Ok, it’s a small thing. But it’s an annoyance.

To fix it in WordPress 3.2.1, you could add a few lines to your theme’s functions.php file, or you could install a simple plugin. WordPress 3.3 moved things around in the core code, which meant that neither of those methods worked any more. We woke up this morning after upgrading our WordPresses to find the Return of Dreaded Consolas.

After dinking around a bit, I found that the editor div class had been changed. I could change the stylesheet in /wp-includes/css/editor-buttons.css and make it work, but that would mean I’d have to remember to change it again with every subsequent upgrade of WordPress.

Here are two ways to fix it for WordPress 3.3.

Add lines to functions file

If you want to use Justin Tadlock’s method of adding lines to your theme’s function file, use this:

/* Set HTML edit screen font to Verdana*/
 
add_action( 'admin_head-post.php', 'devpress_fix_html_editor_font' );
add_action( 'admin_head-post-new.php', 'devpress_fix_html_editor_font' );
 
function devpress_fix_html_editor_font() { ?>
<style type="text/css">#editorcontainer #content, #wp_mce_fullscreen, .wp-editor-area { font-family: Verdana, Arial, sans-serif; }</style>
<?php }

This works well if you are using a custom theme or a child theme. If you put these lines directly into a non-custom theme functions file, remember to add them again whenever the theme is updated.

Add a plugin

In your /wp-content/ folder, create a new folder called /mu-plugins/ . Create a new plain text document with the following code. Name it something like fix-editor.php, and upload into the /wp-content/mu-plugins/ directory.

<?php
/*
Plugin Name: HTML Editor
Plugin URI:  http://tech.ipstenu.org/hacks/wordpress-html-editor-font/, http://wpbonbons.com/tech-tips/fix-the-html-editor-font-in-wordpress-3-3/
Description: I don't like the HTML editor Font on Windows (now updated for WordPress 3.3)
Version: 1.1
Author: MA Epstein, with minor revision for 3.3 by Carol Logan Newbill
Author URI: http://ipstenu.org/
*/
 
function html_editor_admin() {
        ?>
        <style type="text/css">#content #editor, #editorcontainer #content, #editorcontainer textarea#content, #editorcontainer textarea, div#postdivrich.postarea #editorcontainer textarea#content, .wp-editor-area { font: normal 13px/1.5 verdana !important; }</style>
<?php }
 
add_action('admin_head', 'html_editor_admin');
?>

Your HTML editor area will look like its old self again.

Posted in Tech Tips | Tagged | 5 Comments

Screen options: cleaning up your dashboard

signpost forest58 Screen options: cleaning up your dashboardWhen you first install WordPress and open the Dashboard, you are greeted with a bewildering array of boxes on your screen, most of which you probably will never use. Wouldn’t it be great if you could trim everything down to show you just what you need?

Here’s how.
Continue reading

Posted in Blogging Basics | Tagged | Leave a comment

Understanding “Image Align”

ducksinarow 300x264 Understanding Image Align

Getting all our ducks in a row

When you insert an image into a WordPress post or page, you are presented with four choices for image layout:

  • None
  • Left
  • Center
  • Right

Left, Center, and Right are pretty clear. But what does “None” mean? And do “Left” and “Right” really mean what they say?

Let’s take a look at these commands as they are used in the default WordPress theme.

Continue reading

Posted in Blogging Basics | Tagged , | 2 Comments