• I installed this plugin but the instructions left me a little baffled.

    It says
    ——-
    Place the following function where you want the list to appear:

    weighted_words($mincount, $minlength, $minfont, $maxfont)

    $mincount: Minimum number of times a word must have been used before appearing in the list, default is 25
    $minlength: Minimum word length, default is 3
    $minfont: Minimum font size (%), default is 50
    $maxfont: Maximum font size (%), default is 250

    The output is enclosed by <p class=”weightedwordlist”>.
    —–

    I’m not sure which part of this code I should put in.I tried several variations and one disn’t appear and the other just showed the code in the sidebar rather than the words.

    Any ideas what I did wrong?

    Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have that running with this code on my Radio page:

    <ul>
    <?php weighted_words(15,4,80,300); ?>
    </ul>

    I also made a custom adjustment in the Plugins > Plugin Editor > Weighted Words php. I deleted the whole part that alphabatizes the words, cuz I prefer the more readable, seemingly-random output (I guess it is the order in which the plugin encounters the words, so now phrases pop up in my Weighted Words instead of getting seperated into the alphabetical order)

    Thread Starter Bhoney

    (@bhoney)

    Thanks Dgold… that did it ??

    just curious though… what do the numbers 15,4,80 and 300 stand for?

    ??

    minimum word count, maximum word length, minimum font size (%), maximum font size (%)

    word count:
    number of times a word is used before it is added to the list

    word length:
    number of letters in the words considered

    minimum font size:
    a font at 100% is usually something around 1em, at 50% is it half that size (very, very small)

    maximum font size:
    300% of the default font size. Nice and huge.

    Thread Starter Bhoney

    (@bhoney)

    I see now… thanks for the explanation ??

    No problem. That’s it, alright.

    I found the 50% font size was unreadable (but you could mouse-over it). I went with a range of 80% to 300% on my Radio blog. On another site I used less variation, just 90% to 110% so all the words are nearly the same size.

    As I mentioned above, I prefer my alteration that makes it NOT alphabetical. But that is up to you. If you want to change it you can under Plugins > Plugin Editor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with weighted words plugin’ is closed to new replies.