Archive for the ‘WordPress’ Category

No Old Spam Links Plugin Updated: Can it salvage PR?

Wednesday, October 24th, 2007

Today brings a flood of announcements that Google has knocked down many blog Page Ranks. This is thought to be due to a number of factors including excess numbers of paid posts. So, it is natural that I should hurry up and update “No Old Spam Links”, the plugin that lets you automatically “nofollow” sponsored posts after your contractual obligation to “follow” has expired.

In principle, this plugin may help protect your PR. In practice? Matt Cutts’ has never commented on “No Old Spam Links” and is likely unaware of it. So, who knows?

That said, here are the recent changes to the plugin:

  1. I discovered and fixed a bug that sometimes when widgets were used. I fixed the bug.
  2. I discovered and fixed a bug that sometimes occurs when you have no specific people in your “nofollow” list. Unfortunately, this bug was affecting my knitting blog so I was giving out way more followed paid links than I intended! Way more.)(Yes, my knitting blog’s page rank dropped; I’ll elaborate on this in a separate post.)
  3. I tested the new version with WP 2.3. It works fine.

So, if your worried about excess followed paid links, I suggest you install No Old Spam Links. If you aren’t worried about Google, or you are waiting for them to announce the plugin helps, then don’t use it. :)

Other plugin news:

  1. Tricia is testing the new version of Kontera Control at her WP 2.2 blog. I’m testing at my test blog. She was the one who alerted me to the general issue of plugins going buggy when widgets are used.
  2. I updated “Hide No Sponsored Categories” but I’m letting it sit a few days so I can do a better job detecting any bugs. The future version should work for WP 2.3, be compatible with widgets (in fact, it is widgetized) and hopefully work for all versions of WP 2.2 and above. I also coded to detect problems with early version of WP and inform the user why the options page doesn’t display. (This was, btw, the update from hell because my favorite WP category hook vanished!)

Kontera Control Being Updated: Would you like me to test with your theme?

Monday, October 22nd, 2007

I’m updating Kontera Control to work with WordPress 2.3 and address pesky issues that Tricia of Feverish Thoughts and Loren of Today’s Gizmo’s alerted me to. Guess what? You can help me.

If you use Kontera Control and have experienced any problems or observed any strangeness, please:

  1. Describe the problem.
  2. Tell me the name of your theme.
  3. Describe any widgets or other plugins you use — comments and categories widgets and plugins are usually the most crucial ones for me to know about. (If you don’t know your plugins and widgets off hand, I’ll ask you by email.)

Why will this information help me? Consider what happened with Tricia’s Theme.

Tricia had an issue with Kontera ads appearing in posts in the ‘Sponsored Category’ after she widgetized her site using the Raindrops theme — the plugin had worked before widgetizing.

Deactivating the widgets did not cause the error to go away. (It’s odd the error doesn’t go away when you de-widgetize … but… whatever.)

By testing Kontera Control using Tricia’s theme on my test blog, I discovered the precise incompatibility which is: The Rainbows widget somehow fills the global “comment variable” (called $comment) in a way that causes it to be “true” even outside comments.

This is a bit pesky, and caused my Kontera Control to fail, because I anticipated that “$comment” would be “false” outside comments. Silly me. :)

(Turns out it’s very, very easy to work around this. But, I need to figure out precisely what went wrong first.)

Anyway, if you are having an issue, give me as much detail, and as soon as possible. That way, I can get the fixed version of KC out by Friday, (which will make Tricia very happy!)

Five Important Tips When Upgrading to WP 2.3

Friday, October 19th, 2007

Like many bloggers, I’m in the process of upgrading their WordPress to the new version: WP 2.3. For many bloggers, upgrading will be a snap. Others will find their upgrade is technically just fine, but some plugins and widgets don’t work. Finding substitutes will take time.

So, it’s probably a good time to learn some tips for ensuring that you can maintain full functionality while you upgrade WordPress. I’ll include steps the WP developers don’t tell you!

  1. Most plugins that deal with Categories and Tags will break.
    WP 2.3 totally restructured the way it deals with categories and tags. Nearly any plugin that uses categories and tags in any way will almost certainly break.

    If you absolutely one of these plugins to work, do not upgrade until after the plugin author announces that specific plugin works with WP 2.3.

  2. You should create a “test blog”.
    A test blog is nothing more than a near duplicate of your regular blog. Create it at your host; its own database so you don’t “stomp” on your main blog when you test upgrading. Then install the same theme and plugins you use at your regular blog. Write a few “test” posts just to have something in the database.

    How is this used? I pre-test every plugin or widget I download on my test-blog. That way, I can identify any incompatibilities without risking taking my real blog down.

    The test-blog is especially important during major upgrades, because there is a strong possibility that a few of the plugins you use will no longer work as advertised. If you upgrade the test blog first, you maintain your old blog while testing all plugins, widgets, theme changes and pretty much everything before upgrading your public blog. This helps you identify incompatibilities, and also gives you time to identify substitute plugins for your real blog.

  3. Wrap all ‘special’ ‘template tags’ calls in “if/else” blocks.
    During upgrade, you will often turn off plugins. When you do, you may see a big black mysterious error messages like this:

    Fatal error: Call to undefined function utw_showrelatedpostsforcurrentpost() in /home/…/upgradeTest/wp-content/themes/ygo-assorted/Post.php on line 38

    These blog killing errors are nearly always due to missing special purpose “template tags” a plugin developer wrote. When the plugin associated with any ‘special’ template tag is active, the special template tag calls a different block only available in only when the plugin is activated. Otherwise, you get the skanky error.

    To avoid this problem, wrap all special template tags- like ‘utw_showrelatedpostsforcurrentpost();’ in “if/else” structures similar to this:

    if(function_exists(‘utw_showrelatedpostsforcurrentpost’)){
    utw_showrelatedpostsforcurrentpost();}
    else{echo(‘activate plugin ‘); }

  4. Anticipate difficulties and delays with major upgrades.
    If you use very vew plugins, your upgrade will probably be a snap. Many bloggers just click the “one click update” and they are done.

    However, if you use loads of plugins, you could have difficulties. For example, one blog visitor tells me “adSense Deluxe” doesn’t work in WP 2.3. Also, some of the various “tag” plugins with WP 2.2.X, you may need to run a script to restore functionality. So budget some time.

    Because I’m in the process of upgrading plugins, I am also aware that quite a few “hooks” available prior to WP 2.3 have simply vanished; (one of my favorites is gone!) “Hooks” are used to pull in plugin functionality at a certain point in WP; when the hook is vanishes, a plugin that uses that hook doesn’t work at all. So, in this case, you fiddling with your theme won’t help.

  5. Let the plugin developer know if a plugin breaks.
    If a plugin breaks, let the developer know. If you can’t find an email address, post about the problem at your blog and leave a trackback to the blog post where you can get the plugin.

    The big advantage to informing the plugin developer is they may be able to save you time by either confirming that a) It’s not you, it’s the plugin, b) they may point you toward the fix or c) they may schedule some time to fix the issue.

    In anycase, even though the developer may be busy and unable to look or fix the issue quickly, they will want you to let them know. They are the best person to help you!

Meanwhile: Good luck with your upgrade. Mine will be slower than most because I’m updating my plugins in parallel. I think I have “HideSponsoredCategories” finished, and “KonteraControl” is next. I’m on schedule to finish my upgrade in.. how many weeks was that? Well, soon.

With luck, and effort, a new version of Kontera Control will be available next week.