Quote Originally Posted by TamyA View Post
Hi Dave, Thanks for the reply. I am a bit confused, are you saying that you want to update the code for the word limit or is it me that need to do he update?
After taking another look and trying to recreate your problem, without link to your site I can only guess at the cause. I have it running on PHP7.1, jQuery 3.2.1 and ZC 1.5.5e without any problems.

The container used to house the word cloud is sized by the CSS! If that was changed or missing, then the container would fail.
Code:
/*Adjust the height to meet your needs*/
.wordcloudside {height: 4in;padding: 0;page-break-after: always;page-break-inside: avoid;}
.wordcloud {height: 4in;margin: 0.5in auto;padding: 0;page-break-after: always;page-break-inside: avoid;width: 4in;}
The word limit is simple to do, but does not change the container just the number of words used in the cloud. I'll do an update when I get time, if you want to add it now, its just adding a array_slice() before the array is used to create the links..
Which is in the includes/classes/zentagcloud.php
look for showCloud and add the lines in red..
Code:
 function showCloud($returnType = "html")
    {
    
    $taglimit = MAX_TAGS;    
    $this->gtags = array_slice($this->gtags, 0, (int)$taglimit);
    
      $nofollow = (USE_NOFOLLOW == 'true') ? 'rel="nofollow"' : ''; //setup nofollow for bots
      $max = 0;
      if (is_array($this->gtags))
I know if the java fails or has a conflict with another script you just get a list of tags that follow no rules.. If that's what your getting then check your site for script errors.