SOLVED by gvouliakis: K2 Tag Cloud not displaying numbers correctly

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Sun Apr 10, 2011 6:21 am
Hi guys

I have a rugby site and am trying to utilise the K2 tag cloud to make life easier.
I would like to enter year numbers, like 1973, 1972, 2003, etc

The Tag cloud however does not display this, instead in displays 1,2,3,4,5 etc

Anyone had a simliar issue and know how to fix this?
Any feedback is greatly appreciated.

The site's URL is www.myrugbymate.com

Also on feedback on why the damn thing runs so slow would be GREATLY appreciated.

Cheers

Mark
User avatar
Junior Boarder

GK User
Sun Apr 10, 2011 6:04 pm
Hi bryantwest,

I thing that you've just found a litle "bug" in tag cloud mode of mod_k2_tools.
I will notify creators of K2 to check it. Anyway try the following:

Locate the file helper.php in /modules/mod_k2_tools (/modules/mod_k2_tools/helper.php).

At line 197 add true as last parameter to array_slice php function.

The code at line 197 is:

Code: Select all
$cloud = array_slice($cloud, 0, $params->get('cloud_limit'));


Add the true as last parameter of array_slice function:

Code: Select all
$cloud = array_slice($cloud, 0, $params->get('cloud_limit'), true);



Save the file and reload your page.

Let me know if worked!

George
User avatar
Junior Boarder

GK User
Tue Apr 12, 2011 9:48 am
Legend!

Nailed it, works perfectly.
Thank you very very very much!
User avatar
Junior Boarder


cron