Taggly, a tag-cloud library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Taggly, a tag-cloud library (/showthread.php?tid=4093) |
Taggly, a tag-cloud library - El Forum - 04-23-2008 [eluser]PorkOne[/eluser] Hi I tried to disable shuffle feature and I couldn't get it working. Then I took a look at plugin code and found something like this: Code: $this->shuffleTags = (empty($data['shuffle'])) ? $this->shuffleTags : $data['shuffle']; The problems (with PHP 5.2.4) are: 1. There is no $data variable but $dataArr (incorrect in the next line too). 2. empty($data['shuffle']) -> empty(FALSE) returns TRUE, so it sets $shuffleTags to TRUE and no matter what you set in config array. The simpliest solution (but not too artistic ;-) ) is to replace this line with: Code: $this->shuffleTags = (!array_key_exists('shuffle', $dataArr) || (array_key_exists('shuffle', $dataArr) && $dataArr['shuffle'] == TRUE)) ? $this->shuffleTags : $dataArr['shuffle']; I downloaded this library from Codeigniter's wiki. Taggly, a tag-cloud library - El Forum - 11-28-2008 [eluser]redwiz[/eluser] hi Gavin i'm using your lib if you pass an empty tag array, it raise an error i've added this line at the beginning of "cloud" function: if(empty($tagsArr)) {return ""}; Andrea Taggly, a tag-cloud library - El Forum - 11-28-2008 [eluser]redwiz[/eluser] [quote author="redwiz" date="1227911201"]hi Gavin if(empty($tagsArr)) {return ""}; Andrea[/quote] sorry, a typo, the correct line is: if(empty($tagsArr)) {return "";} Taggly, a tag-cloud library - El Forum - 06-09-2010 [eluser]Christopher Harrison[/eluser] As of 9th June 2010, the domain for this extension is no longer active. No way to obtain source code. Taggly, a tag-cloud library - El Forum - 06-09-2010 [eluser]Yorick Peterse[/eluser] Seems pretty obvious if the last reply before redwiz was over 2 years old. Taggly, a tag-cloud library - El Forum - 06-09-2010 [eluser]Christopher Harrison[/eluser] For anyone else stumbling across this thread, hope this saves you a few seconds: http://codeigniter.com/wiki/Taggly/ Taggly, a tag-cloud library - El Forum - 08-05-2010 [eluser]introvert[/eluser] It would be better to make it as a helper since helpers are meant exactly for that. Taggly, a tag-cloud library - El Forum - 11-29-2010 [eluser]LuckyFella73[/eluser] Hi, I'm looking for a tag cloud library and found this post. Looking at the code I can't find the functionality for "rating" the links. I mean, usually a link becomes bigger (font size) if it's clicked more often than others. But to get this to work you would have to store that information in a db for example. This library don't take care of this or did I miss something? Cheers, luckyfella |