phpOtter commented on a Page, Tagcloud Font Distributor  -  Apr 20, 2006

how to use the cloud_tag class (see post below for class source):

// create some fake input

$tags = array();
$tempTag[tag_name] = \'ajax\';
$tempTag[tag_count] = 3;
$tags[] = $tempTag;
$tempTag[tag_name] = \'mysql\';
$tempTag[tag_count] = 3;
$tags[] = $tempTag;
$tempTag[tag_name] = \'linux\';
$tempTag[tag_count] = 1;
$tags[] = $tempTag;
$tempTag[tag_name] = \'php\';
$tempTag[tag_count] = 6;
$tags[] = $tempTag;

// instantiate a cloud
$cloud = new cloud_tag();

    // the class already has defaults, but let\'s override them for fun

$cloud->set_label(\'cloud\'); // css classes will be cloud1, cloud2, etc.
$cloud->set_tagsizes(7);    // 7 font sizes will be used

$newtags = $cloud->make_cloud($tags); // make a tag cloud
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.