PDA

View Full Version : fetch_tagcloud


squishi
09-20-2008, 10:09 PM
I see there is a function called fetch_tagcloud('usage').

I use it successfully on a custom page. The function returns a tag cloud of several hundred tags, though. There are also duplicates in the tag list.

How do I limit the tags that are returned and how do I remove the duplicates?

Dismounted
09-21-2008, 06:21 AM
The amount of maximum tags returned is determined by a setting in the Admin CP.

squishi
09-21-2008, 07:34 AM
That function is returning more tags than on my regular page.
My regular tag list has 70 entries, this one has several hundreds.

--------------- Added 1221986535 at 1221986535 ---------------

Also, the results are neither sorted, nor do they have different font sizes.

The tag cloud of my forum works as intended, though.

--------------- Added 1221987072 at 1221987072 ---------------

Okay, I got it fixed.
I started to build this page with the vbadvanced thread cloud script as basis.
I took a look at the tags.php instead and used that code and it worked.

--------------- Added 1221987165 at 1221987165 ---------------

How would I change the admin setting for the tag cloud limit in the script?
What is the variable name for that setting?