UTW Compatible Tag Cloud Plugin
Posted on September 20th, 2007 by Oleg K
Tags: blogging keywords Scripts tag tag cloud utw wordpress
Some people have asked me about the tag cloud I have in the bottom left of my blog. It is a UTW tag keyword cloud widget. I did not create this but have made some small edits to make it run better and prettier.
<?php
/*
Plugin Name: UTW Tag Cloud widget
Description: Creates a tag cloud as a widget
Author: Jay
Version: 1.0
Author URI: http://you.gotfoo.org
*/
//Minor edits by Oleg Korneitchouk - http://www.wmtoolbox.com
function widget_utw_tag_cloud_init() {
// Check for the required API functions
if ( !function_exists(‘register_sidebar_widget’) || !function_exists(‘register_widget_control’) )
return;
function widget_utw_tag_cloud() {
?>
<?php echo $before_widget; ?>
<li id=“text-1″ class=“widget widget_text”>
<h2 class=“widgettitle”>Tags</h2><center>
<span style=“text-decoration:none;”>
<?php
if (function_exists(‘UTW_ShowWeightedTagSetAlphabetical’)) {
UTW_ShowWeightedTagSetAlphabetical(“sizedtagcloud”);
}
?></span></center></li>
<?php echo $after_widget; ?>
<?php
}
// Tell Dynamic Sidebar about our new widget and its control
register_sidebar_widget(array(‘UTW Tag Cloud’, ‘widgets’), ‘widget_utw_tag_cloud’);
//register_widget_control(array(’UTW Tag Cloud’, ‘widgets’), ‘widget_utw_tag_control’);
}
// Delay plugin execution to ensure Dynamic Sidebar has a chance to load first
add_action(‘widgets_init’, ‘widget_utw_tag_cloud_init’);
?>
/*
Plugin Name: UTW Tag Cloud widget
Description: Creates a tag cloud as a widget
Author: Jay
Version: 1.0
Author URI: http://you.gotfoo.org
*/
//Minor edits by Oleg Korneitchouk - http://www.wmtoolbox.com
function widget_utw_tag_cloud_init() {
// Check for the required API functions
if ( !function_exists(‘register_sidebar_widget’) || !function_exists(‘register_widget_control’) )
return;
function widget_utw_tag_cloud() {
?>
<?php echo $before_widget; ?>
<li id=“text-1″ class=“widget widget_text”>
<h2 class=“widgettitle”>Tags</h2><center>
<span style=“text-decoration:none;”>
<?php
if (function_exists(‘UTW_ShowWeightedTagSetAlphabetical’)) {
UTW_ShowWeightedTagSetAlphabetical(“sizedtagcloud”);
}
?></span></center></li>
<?php echo $after_widget; ?>
<?php
}
// Tell Dynamic Sidebar about our new widget and its control
register_sidebar_widget(array(‘UTW Tag Cloud’, ‘widgets’), ‘widget_utw_tag_cloud’);
//register_widget_control(array(’UTW Tag Cloud’, ‘widgets’), ‘widget_utw_tag_control’);
}
// Delay plugin execution to ensure Dynamic Sidebar has a chance to load first
add_action(‘widgets_init’, ‘widget_utw_tag_cloud_init’);
?>
Enjoy
If you enjoyed this post, be sure to subscribe for updates or at least bookmark this below.











thanks for sharing. love it!
can u explain me, why i’m try to activated a plugin.. it’s show me:
Plugin could not be activated because it triggered a fatal error.
Your theme might not be widget ready. Also, this hasn’t been tested with the newest version of wordpress, which seems to have its own tag cloud built in.