Tag Archive for 'wordpress-plugin'

Make Alex King’s Share This Plugin Play Nice With Unwakeable

Fixed. Unwakeable 2.0 will include this fix.

My Unwakeable WordPress theme doesn’t play nicely with Alex King’s Share This WordPress plugin. When Share This is being used, the livesearch feature of Unwakeable doesn’t work in Internet Explorer 6 or 7. I’m willing to bet K2 has the same issue. I know for a fact that Redoable had this problem at one point.

Livesearch breaks because prototype.js gets loaded twice, first by Unwakeable, then again by Share This. Now, Share This uses the prototype.js that will be included in WordPress 2.1, located at wp-includes/js/prototype.js. We use a custom prototype.js file for Unwakeable. The prototype.js file in Unwakeable will still provide all the functionality needed by Share This.

The prototype.js included in Unwakeable is located at wp-content/themes/unwakeable-1.2/js/prototype.js.php. It has a .php extension because there’s some PHP code at the top that needs processed before doing anything else. The PHP code tells the browser to cache the prototype.js file, it also sends correct content-type headers so the browser knows it’s dealing with a javascript file after all is said and done.

I’ve spent a few days thinking of possible solutions that could be implemented from within Unwakeable. That’s not possible though, unfortunately. Well, it is possible, but would require filtering all the HTML output by WordPress before it’s sent to the browser so we could strip out the prototype.js included by Share This. Doing something like that would probably result in a fairly dramatic decrease in performance, so it’s not an option.

Fortunately, it’s extremely easy to modify Share This to not load prototype.js. Here’s what you need to do:

  1. Open wp-content/plugins/share-this/share-this.php
  2. Go to line 352:
    <script type="text/javascript" src="'.$wp.'/wp-includes/js/prototype.js"></script>
  3. Delete all of line 352 (code above) and you should be left with this on line 351 to line 354
    print('
    <script type="text/javascript" src="'.$url.'?akst_action=js"></script>
    <link rel="stylesheet" type="text/css" href="'.$url.'?akst_action=css" />
    ');
  4. Save share-this.php and upload it to wp-content/plugins/share-this/

That’s all there is to do to stop Share This from loading prototype.js. It sorta sucks having to ignore the prototype.js that’s already included with WordPress 2.1. I will probably start working on making Unwakeable work with the prototype.js included in WordPress 2.1.

Does anyone know if it’s possible to determine if a javascript file has been loaded, from within javascript? I ask because I think Share This will still load a second prototype.js, even if I make Unwakeable work with prototype.js from WordPress 2.1 (the one used by Share This already).

I imagine Alex will come up with a method to determine if prototype.js has already been loaded. Unless javascript won’t allow identical .js files to be loaded, in which case determining if prototype.js has already been loaded would be pointless. If that’s the case then I should be good simply making Unwakeable work with prototype.js from WordPress 2.1.

Sorry for the scattered thoughts, this has really been bugging me lately. Anyway, you should be able to make your livesearch work with Share This in Internet Explorer now. This probably applies to most K2 based WordPress themes, but I’m not sure.

Popularity: 8% [?]

WordPress 2.1 Release Candidate 2

WordPress 2.1 Release Candidate 2 is out, roughly two days after RC1 was released. I’ve been keeping up to date with 2.1 releases since beta 2. You can download 2.1 RC2 here.

The only plugin I’m having trouble with in WordPress 2.1 is the FlickrRSS plugin. Ultimate Tag Warrior also had problems with WordPress 2.1, although I didn’t experience any of them. Ultimate Tag Warrior wasn’t slightly broken, it was trashed, and would delete tags for posts. Here’s what the guys at NeoSmart had to say:

Ultimate Tag Warrior is completely broken with WordPress 2.1 and you can lose all your tags by upgrading to WordPress 2.1. In the more recent SVN revisions of WordPress 2.1, any time a comment is added, deleted, or unapproved, you lose all the tags for that particular post.

Thankfully, Christine, the Ultimate Tag Warrior author, has released a new version of UTW that’s compatible with WordPress 2.1 (I think). I believe the new release implements a fix that was published for the UTW/WP2.1 issue back in December. There still seems to be some speculation over weather or not version 3.1415926 of UTW fixes all the problems with WordPress 2.1. I never had any problems with UTW and WordPress 2.1, even with versions prior to 3.1415926. Sounds like the problem may be somehow related to Akismet from the discussion going on at the UTW forum.

Popularity: 6% [?]

WordPress Plugin: Digg This Reloaded

I’ve been using the Digg Integrator plugin for easy Digging of my posts. The Digg Integrator plugin has had it’s share of problems lately, mostly due to changes the folks at Digg have implemented. WildBil has managed to fix the plugin up quite nicely though, I haven’t been having any issues with the newest version.

If you’re having problems with the Digg Integrator plugin, you might wanna check out the Digg This Reloaded plugin. It’s got a bunch of nice features similar to features found in the Digg Integrator plugin. Looks like a very promising plugin, I am going to install it and give it a try sometime this week.

Popularity: 6% [?]

Send Your Tag Archives To Google Sitemaps

Do you use Ultimate Tag Warrior WordPress plugin to tag your posts? What about the Google Sitemaps plugin for sending google a copy of your sitemap?

If you use Ultimate Tag Warrior, as I do, you can get archive pages based off tags. For example, my wordpress tag page shows all posts tagged with “wordpress”. Simple enough.

Now, the Google Sitemaps plugin generates a sitemap of your site for submission to Google Sitemaps. The plugin will include categories, individual posts, static pages, and archives in the sitemap file it creates. However, it leaves out tag archives. This is simply due to the fact that the Google Sitemaps plugin author probably doesn’t use Ultimate Tag Warrior.

There’s some good information contained within tag archive pages, so we should probably be letting google know about them. We basically need to make the Google Sitemaps plugin recognize and make use of the tag archives. To do this, we need the Google Sitemaps - UltimateTagWarrior Tag Addon, a plugin for WordPress. Here’s the plugin description:

This plugin is a WordPress 2.0.4 plugin that automatically adds the UltimateTagWarrior tags onto the end of the google sitemap XML file as produced by the Google Sitemap plugin.

The plugin does exactly that, and nothing more. It simply generates a sitemap for your tag pages and appends that data to the end of the sitemap file created by the Google Sitemaps plugin. That’s all that’s required to include your tag pages in your sitemap file for sending to Google.

Please note that the Google Sitemaps - UltimateTagWarrior Tag Addon plugin requires version 2.0.4 of WordPress. Hopefully the author will update the plugin to support the upcoming WordPress 2.0.5.

Popularity: 5% [?]

Ajaxify Your WordPress Theme

This AjaxWP WordPress extension looks pretty interesting. It adds some AJAX functionality to your existing WordPress theme:

AjaxWp is a lightweight JavaScript enhancement that adds AJAX functionality to WordPress blogs speeding up load times, increasing the responsiveness of the user interface and giving the blog an overall cooler look.

It’s supposed to work, with minimal configuration, right out of the box. This plugin could be interesting, I’m gonna see what it can do this weekend.

[via Weblog Tools Collection]

Popularity: 4% [?]

SlimStat: Free Web Stats

SlimStat is a nice little PHP software package designed to help you track visits to your website or blog. Download Squad had a post about SlimStat this morning that sparked my interest.

I’ve been using Shaun Inman’s great ShortStat for a while. However, I wanted to be able to drill down into the stats and look at things in more detail.

When I started editing the code, I kept thinking of more and more things I’d like to change. SlimStat is the result.


SlimStat is based on ShortStat. ShortStat is no longer being developed. Instead the original author of ShortStat (Shaun Inman), is now working on Mint, which I’ve been using for the last few months. But none of that has anything to do with SlimStat. SlimStat has a different developer (Stephen Wettone). He just picked up where Shaun left off basically.

Blogging Pro also has a post about SlimStat, and a related WordPress plugin, WP-SlimStat. Although, the WordPress plugin uses SlimStat 0.9.2 where the current release of SlimStat is 0.9.4.

Popularity: 4% [?]



cheap xbox 360 games - buy from zavvi
cheap xbox 360 games - zavvi

No Teletrack Payday Loans - mobile phones - Web Design - Cheap Electricity - Credit Cards - Mobile Phone - Credit Cards
Search Engine Optimisation - Mobile Phone - Bike Insurance - Landlords Insurance - Search Engine Marketing - Mobile Phone