Update to tag cloud function for the tags mod
Feb 17th, 2009 at 7:10 am
filed under: sNews CMS / Hacks & Mods
filed under: sNews CMS / Hacks & Mods
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.
Comments
Commenting is closed at this time.
Categories
Recent Entries
Recent Comments
- Redbeard (I managed to get Vampire: The Masquerade - Bloodlines ...)
- Tina (Installed this today and working like a charm :) Thanks!)
- Tina (Thanks for this great mod :) Working on my site for quite a ...)
- konga (Hi Matt, if you plan to update it, please have a look into ...)
- David (Yo Matt, I have a problem, when I use this mod. ...)
- Dave (Have a Toshiba NB305. Win7 starter would not do screen ...)
- Daichisan (Howdy Matt, I dont really get it, whats ...)
- Matt (Mine is just customized further, that's all :) It just spits ...)
- Matt (David, Do you own or admin the server? Do you have exec ...)
Popular Entries
- Compact archives for sNews 1.7 (5/5)
- Light-weight related articles mod for sNews 1.7 (4.78/5)
- SEF / SEO search for your sNews website (4.75/5)
- 1024x600 netbook wallpapers of Evangeline Lilly (4.67/5)
- Gravatar mod for sNews 1.7 (4.67/5)
- An improved tag cloud for sNews 1.7 (4.67/5)
- Image / math hybrid captcha version 2, vastly improved (4.64/5)
- Command & Conquer Generals, and the Zero Hour expansion on the Acer Aspire One netbook (4.6/5)
- Related Articles mod for sNews CMS, public beta release (4.6/5)