Update to tag cloud function for the tags mod

Comments (0)

I just made a small update to the tag cloud add-on for the tags mod. This will sort the tags alphabetically, while maintaining their weight. If you like the randomized tags, you need not add this.

So BACK-UP your snews.php and work off of a copy, find your get_tagcloud function, and add the following highlighted code;

$tagslist = explode(", ",$tagslist);
asort($tagslist);
$tagslist = array_count_values($tagslist);

That's it, upload your modified snews.php and your tag cloud is now sorted alphabetically.

bookmark / share this: Bookmark and Share
rated 0/5 (0 votes)


Comments

Commenting is closed at this time.

Back to top