Tag Archive for 'plugin'

Google analytics plugin, modified

I am using the $dt->blog(); ยป Google analytics plugin here on this site, but for tracking outgoing link clicks I have had to modify the plugin like this:


add_filter('the_content', 'ga_addonclick', 10);

function ga_addonclick($value){

    if(get_option('ga_onclick')){

        $value = preg_replace("/<a href=\"([^\"]+)\”/e”,
        “‘<a href=\’$1\’ rel=\’nofollow\’ onclick=\”.ga_parseurl(’$1′).’\””   ,$value);
        }
        return $value;
}

function ga_parseurl($href){
    $onclickcode = stripslashes(get_option(’ga_onclick_code’));

    $href = str_replace(’http://’, ”, $href); 

    return str_replace(’$site’,$href,$onclickcode);
}




WordPress Plugin Request: referrer to trackback

I am not sure if this is possible at all - but would it not be nice to have a (spam safe) way of converting incoming referrer-URLs to trackbacks/pingbacks? So you know when a blog post has been linked to on del.icio.us or so.

Make it talk to SpamKarma and ReferrerKarma, use whitelists for URLs that you would like to have added as linkbacks… something, anything?

Or maybe we can convince Joshua to have del.icio.us post a pingback including a back-link to a page that lists all users and tags the page has been filed under.

And while we are at it: is there such a thing as a trackback/pingback to just the blog and not an individual entry?

Wordpress - Live Comment Preview

Anyone having problems with the Live Comments Plugin for WordPress: There seems to be some lines of code missing in comments.php so that logged in users do not get the live preview.

A workaround can be found at the WordPress Support forums.

Cat2Tag

The WordPress plugin Cat2Tag is in heavy use here at this site. It basically allows you to create categories “on the fly” while posting and combined with WP’s multi-categories per post allows a good tagging system. technorati then also picks up those tags as it translates categories to tags so one doesn’t have to publish additional technorati tags. There is also a click-to-tag thingy like in del.icio.us or flickr.

But.

There are some improvements I would love:

  • In the click-to-tag thingy: clicking on a tag that is already set pops up a message saying so - instead it should remove the tag from the list. (like del.icio.us experimental posting window)
  • There should be an easy way to create a tag list or even a weighted tag list
  • the bookmarklet should be supported! in Safari it does not work at all when clicking on the tags.
  • the plugin should support the pluginmanager

Other than that - can’t wait for the next upgrade ;)