Plugin overview

This plugin lets you manage a database of links from your admin area and maintains a count of how many times each link has been clicked on by reader. When used as a skin variable, it displays a redirector URL in the form of /nucleus/plugins/blogroll/?n=id, or a group of such URLs.

SkinVars

Parameters: Type, ID, Sort field, Sort order, GroupDesc, NumOfLinks, Redirect
Type - 'group' | 'link' | 'user'
Tells plugin whether to display an individual link or a group of links as defined in the admin area, or a single user's links.
ID
If Type is 'group', this should be the name of the group(s) to display. Use the pipe character ('|') to separate multiple group names. If Type is 'link', this should be the numeric ID of the link to display. If Type is 'user', this should be the short name (login name) of the user whose blogroll should be displayed. If the user specified is not a member of the team for the blog being displayed, the blogroll will not be shown.
Sort field (optional) - 'order' | 'url' | 'text' | 'desc' | 'created' | 'clicked' | 'counter' | 'random'
If Type is 'group', tells plugin in what order to display links. Defaults to 'order', which displays links according to the order defined in admin area. If Type is 'link', place the Redirect value here.
Sort order (optional) - 'asc' | 'desc'
If Type is group, tells plugin whether to display links in ascending or descending order according to the field defined in Sort field. Defaults to 'asc'.
GroupDesc (optional)
If ID defines multiple groups to display links from, the GroupDesc value will determine what will replace the <%groupdesc%> variable in the blogroll template. If no GroupDesc is specified, the description of the first group will be used.
NumOfLinks (optional)
If Type is group, tells plugin to display only a specified number of links. Must be a positive integer value; if not, plugin will display all links.
Redirect (optional)
Set to "yes" or "no" to override the default as set in Blogroll's plugin options to determine whether to show the redirector URL or the regular URL.

Example Usage

Template Options

In the plugin options page, you can specify how links will appear on your page. The variables available for use in all fields except 'Item' are: Variables available for use in the item template are: If the <%Blogroll%> skinvar is used to call a single link, the item template will be used to display the link.

Note: <%linktext%> has been removed.

Tagging Support

Since 0.35, tagging function is added. The blogroll function continues to function as before. On the other hand, there is a tag field when add/edit a link. To integrate the tagging function with the blog, a tagcloud can be created:
  1. clone the skin you use on the blog
  2. rename it to 'blogroll'
  3. edit the main index in the blogroll skin, replace the <%blog(...)%> to <%Blogroll(tagcloudresult%>, and replace the sidebar line (i.e. <%parsedinclude(sidebar.inc)%>) to <%Blogroll(tagcloud,group)%> (replace group with your blogroll group name)
  4. create a blogroll.php (see a sample in package) and place it in your blog's root directory
  5. link to the blogroll page from your blog's sidebar
  6. add css changes to decorate the tagcloud (see smaple in package)
There are 2 new skinvar added to be used in a tagcloud Blogroll page:

del.icoc.us Support

Since v0.36, user can send blogroll links to del.icoc.us. To enable this function:
  1. Enable del.icoc.us function from plugin option after installing the plugin
  2. User set their del.icoc.us user and password in member setting

Support and Bug reports

For additional support and/or bug reports please use this forum thread: http://forum.nucleuscms.org/viewtopic.php?t=9219

Version History

License Information

Copyright © 2005 Joel Pan