technoratitags

NP_TechnoratiTags.php

This plugin provides a general tagging system with Technorati and del.icio.us tags support. A list of tags is added to the end of the post by default.

General Plugin info
Current Version: v0.9.6
Download: here
Code: here (outdated v0.5)
Demo: here
Forum Thread: forum here

Installing

  1. Make sure robots.txt is not blocking any splider (else Technorati tags may not appears)
  2. Extract the plugin package
  3. Upload to plugin directory
  4. Install from plugin admin menu
  5. Go to plugin option make change, if needed

For more advance usage, see below sections

Advanced Setup

For advanced user, there are options in the plugin option menu to change the header, tag, and footer of the list.

User can turn off the insertion of tags to the end of the post (see plugin options), then customize the way tags are display. For example, see http://edmondhui.homeip.net/blog/item/681

To ensure Technorati search engine picks up your tags and posts, the RSS template need to be modified. See example here

Skinvar & Template var

This plugin provides both themplate var and skin var.

The template var <%TechnoratiTags%> can be used to allow user to control where tags are link to.

syntax: <%TechnoratiTags([rss|dtag|ltag])%> for an item.

By default, <%TechnoratiTags%> display tags and links to Technorati. <%TechnoratiTags(rss)%> is used in RSS feed to add <category> tag. <%TechnoratiTags(dtag)%> display tags and links to del.icio.us. <%TechnoratiTags(ltag)%> display tags and links to local tagcloud display (see below for setup)

The skin var is used to add tagcloud and display list of posts for a tag.

syntax: <%TechnoratiTags([tagsearch|cloud|localcloud|dcloud], [pop|alp], x, [current|all|y])%>

To display the list of posts to a tag: <%TechnoratiTags(tagsearch)%> To display tagcloud: <%TechnoratiTags([cloud|localcloud|dcloud], [pop|alp], x, [current|all|y])%>

cloud - display tag cloud that links to Technorati
localcloud - display tag cloud that links to local posts
dcloud - display tag cloud that links to del.icio.us
pop - sort tags by popularity, from most to less
alp - sort tags by alphabet
x - max number of tags to display, -1 for all tags (note, this may override by the tag % to show plugin option)
current - show tags from current blog only
all - show tags from all blog
y - show tags from a particular blog, y is blogid

Tagging System

As of v0.8.2, this plugin has evolved into a functioning tagging system. To implement the tagging system for Nucleus using this plugin, the following steps are needed:

  1. add <%TechnoratiTags(localcloud)%> into your skin, likely on the sidebar. This list all tags in the current blog and link to a tag search page to show all posts on a tag.
  2. create a new skin call “tags” from admin menu, you can clone your existing main skin if you want the same look for the local tag search result. Actually you only need the main index skin part.
  3. modify the new skin’s main index, replace <%blog(default/index,10)%> (or <%Showblog()%> & etc) with <%TechnoratiTags(tagsearch)%>. This is the search result part that show all posts for a tag
  4. replace the sidebar (if you have any w/ the localcloud skinVar) with <%TechnoratiTags(localcloud)%>
  5. create a tags.php in you blog root directory (same place where index.php is) with this content. You might need to change the blog URL from blog setting to remove the “/index.php” suffix.

If you are using FancyURL/FancierURL2, rename the tags.php file to “tags” and add the following to the .htaccess:

<FilesMatch "^tags$">
    ForceType application/x-httpd-php
</FilesMatch>

To customize the tagcloud’s looks add the following to skin’s CSS file:

.tinyT { font-size:12px;}
.smallT { font-size:16px;}
.mediumT { font-size:18px;}
.largeT { font-size:20px; font-weight: bold;}

del.icio.us Support

New to v0.9.0, del.icio.us is supported, the following is possible:

  • show tags and link to del.icio.us
  • tag a new blog post to del.icio.us

To implement the support:

  1. go to plugin option set “Add post to each tag in del.icio.us? (user need to set his/her login & password from member setting)” to yes
  2. go to member setting and set the user and password to add post to your del.icio.us account
  3. To show the tag @ del.icio.us, change templete var to <%TechnoratiTags(dcloud)%>
  4. To show a tagcloud of blog’s post to del.icio.us, change skin var for the tag cloud to <TechnoratiTags(dcloud,...)>

History

  • V0.5 - 1st public release
  • V0.6 - fixed disappearring + in add item
  • V0.7.1 - added tag cloud
  • V0.8.2 - added tagging system
  • V0.8.3 - added new parameters to control tag sorting and max tags to display
  • V0.8.4 - fix missing formating bug
  • V0.8.5 - add CSS
  • V0.8.6 - use sql_query
  • V0.8.7 - minor fix on getTableList()
  • V0.9.0
    • allow per blog tag cloud - current, all, by blogid
    • show tag count
    • option for tag search title
    • outbound tag support to del.icio.us
  • V0.9.1 - fixed broken url when insert tags at the end of post
  • V0.9.2
    • skip tag update to del.icio.us if there is no user/password set
    • fix tag cloud to ensure it displays according to PlusSwitch option
    • rename templete var dcloud switch to dtag
  • V0.9.3
    • fixed UTF-8 multi-bytes encoding problem wih tag search
    • FancyURL support (Thanks Shi!)
    • show popular tag only option
  • V0.9.4
    • tagcloud idle display without tag select
    • ltag templateVar switch to show local tag
  • v0.9.5
    • fix tagsearch result double http link bug
    • error checking for missing blog object in doSkinVar()
    • port NP_AutoComplete by anand to NP_TechnoratiTags, allow tag auto completion
  • v0.9.6
    • optimize auto complete init
    • change list of tag by date decrement
    • fix tag cloud display of draft on search and cloud
    • fix add/delete post incorrect URL
    • fix top tags striping bug (thx Rico)
    • support for multi-blog setup
 
technoratitags.txt · Last modified: 2009/03/24 22:33 by admun