a lot of people don´t recognize that iám not the autoh of this. i just took it from the google groups to here. that´s the why i dropped the manifest in here.
<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest>
<field key="author" value="Sammy Kanan" />
<field key="version" value="1.0" />
<field key="description" value="This plugin lets users view a tag cloud." />
<field key="website" value="" />
<field key="copyright" value="" />
</plugin_manifest>
View steven's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
i am getting a blank entry in my tagcloud. any ideas?
i'm also getting a blank tagcloud
Tags with 2 or more entries can be displayed, try it out :)
Sorry guys wrong answer, same problem here
Working for me well !
for my it´s working as a widget too, but i do not get it working on the index page, for not logged in user and with world tags instead of user
This works well for us!
However, we've also added the event calendar plugin and tags added to events are not pulled into the tag-cloud. Can the cloud be changed to show tags from all objects/pages/plugins etc?
Hi, I'm still getting a blank tag, as Andrew Tibbet's image (above)... but I can live with that. My real question is, how can I adapt the cloud so it outputs the tags in alphabetical order? At the moment it displayes them in order of prominence, but (for me) the size of each tag indicates its importance, so its position is not relevant.. hence 'abcd' would be better. I have looked at the code - I know a little of php - but clearly not enough!
Regards,
johdu: try replacing beginning at line 41 of tagcloud.php until the end of page with:
41: if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
$temp = asort($vars['tagcloud']); //sort array and put in in $temp
$cloud = "";
$max = 0;
foreach($temp as $tag) { //change $vars['tagcloud'] to $temp
// BUG FIX: UPDATE TO ENSURE WE DONT COUNT BLANKS
if ( $tag->tag != "" ) {
if ($tag->total > $max) {
$max = $tag->total;
}
}
}
foreach($temp as $tag) { //change $vars['tagcloud'] to $temp
if (!empty($cloud))
$cloud .= ", ";
// BUG FIX: UPDATE TO ENSURE WE DONT COUNT BLANKS
if ( $tag->tag != "" ) {
$size = round((log($tag->total) / log($max)) * 100) + 30;
if ($size < 60)
$size = 60;
$cloud .= "<a href=\"" . $vars['url'] . "search/?tag=". urlencode($tag->tag) . $object . $subtype . "\" style=\"font-size: {$size}%\" title=\"".addslashes($tag->tag)." ({$tag->total})\" style=\"text-decoration:none;\">" .$tag->tag . "</a>";
}
}
echo $cloud;
}
?>
The tags should now be in alphabetical order.
Has anyone an idea how i can put the tagcloud in a customized index page? I'm using mod custom_index, have it altered to match my needs, but i don't know how to place this widget in it.
Is this working with Elgg 1.5? Thanks for your time anyway.
Make Friends Online
Compatible with elgg 1.6.1?
@Blue works great in 1.6.1
@edlove
Thanks for your reply.
I have enable the tagcloud plugin. I don't know how to use it, because I can't find any link or menu for tagcloud.
Best regards!
Anybody knows why display this error in log: "Division by zero" in file /usr/home/chironweb.org/web/redsocial/mod/wp1/views/default/output/tagcloud.php (line 51)
In the hosting, is
But in Lamp not.
Elgg 1.7.1
may be $max = 0. must be >0?
can anyone say me where this tagcloud will display?
Yeah, I would also like to know where does the tagcloud appear? I can see lists of tags even without the plugin enabled.