Singpolyma

Archive of "Plugin"

Archive for the "Plugin" Category

Update to Videntity WordPress Plugin

Posted on

I have updated my WordPress plugin for Videntity.org integration. It now includes options to import your friends/contacts or your profile (or both!) from Videntity to WordPress. Just go to ‘Videntity’ under the ‘Options’ tab in your administration interface.

Some notable things not imported in the profile import:

  • Instant Messeging information
  • Video
  • Photo
  • Only the first URL (Website) is imported

The ‘additional name’ (ie, middle name) is imported, but into a field called ‘additonal_name’, which is not displayed anywhere by default on WordPress.

OpenID for WordPress

Posted on

Someone else has written a (imho) better plugin. I have a backlog of tweaks to do to this plugin to make it work on more systems which I haven’t got around to blogging/integrating. Note that this new plugin does not support using your blog as an OpenID server. It does, however, support sreg (but not hCard) and integrates into the WordPress account system.

I have modified Alexander Nikulin’s plugin for WordPress that enables users to leave authenticated comments using OpenID and enables blog owners/contributors to use the blog as their OpenId. I have made the plugin compatible with WordPress 2.0, cleaned up the validity of the XHTML produced, and fixed a bug that kept some sites from finding the server.

It is reccomended that when using the server the blog admin use the blogs main URL as their OpenID but that other users/contributors use BLOGURL/?author_name=USERNAME.

When returning to the post page after posting a comment, if the comment was held for moderation ?moderated=true is appended to the URL. Adding code like the following will alert your users to this fact:

<?php if($_GET[‘moderated’] == ‘true’) echo ‘<div style=”display:block;padding:20px;background-color:#ccc; font-weight:bold;font-family:sans-serif;font-size:12pt;”> Your comment is awaiting moderation.</div>’; ?>

Possible future features:

  • Support for sreg / hCards to get an actual name for the commentor instead of just using their URL
  • Support for sreg / hCards in the server implementation
  • Support for YADIS

Download the plugin

To install the plugin:

  1. Download the gzip from the link above and unzip it
  2. Upload the resulting folder into your /wp-content/plugins/ directory
  3. Edit your template and replace your comments form code (likely in comments.php) with
    <?php include dirname(__FILE__).’/../../plugins/openid/openidform.php’; ?>

FreshTags for WordPress

Posted on

The FreshTags system is more than just categories for Blogger. With the tag-passing features it adds a social aspect to blog browsing. Not everyone runs on Blogger, and some of us are lucky enough to run on blogging systems that support categories natively. The other FreshTags features would be and can be immensely useful to these people as well. So, in a move to push FreshTags beyond Blogger and beyond del.icio.us I have created a FreshTags plugin for WordPress.

Update: Version 0.11 has been released. Some minor bugs have been fixed and loading captured tags into the search box is now optional. To load the searchbox you must add this code to your template: <?php freshtags_load_searchbox(); ?>

Features

  • Detects tags passed directly via ?tags, ?tag, or ?cat
  • Detects tags from the referer URL, all the same formats as the original FreshTags are supported
  • Detects the tag of the current category page or the first tag on the current post, if applicable
  • Supports tag intersections
  • Displays n matching posts from detected tag(s) in the sidebar
  • Supports either list or drop form of tags in the sidebar, highlighting selected tag(s)
  • Rewrites post links when tags are selected to enable tag-passing from the blog
  • Generates JSON(P) feeds for use in peek-a-boo sidebar headlines by other blogs

Implementing
To implement this plugin on your WordPress blog:

  1. Download the plugin
  2. Unpack the file and upload ‘freshtags.php’ to your /wp-content/plugins/ directory on your blog
  3. Go to your WordPress dashboard and the plugins screen to activate the plugin
  4. Edit your template and replace the code that outputs the category list in your sidebar with:
    <?php echo freshtags_taglist();
           echo freshtags_postlist(); ?>

    To customise the display you can pass ‘drop’ to freshtags_taglist to get a drop-down list of tags. You can pass two parameters to freshtags_postlist, the first is the maximum number of posts to display (default: 10), the second is a string to output as a header for the list of matching posts (replacing %tags% with the detected tags, default none).

Other
I have updated my version of FreshTags to support getting peek-a-boo titles from blogs using this WordPress plugin. Just call load_otherblog_titles(‘wordpress’,’blog url‘,”,’feed url (optional)‘,’id of element to put results in‘); after the normal FreshTags data has loaded.