possible jrTag cloud issue

blindmime
@blindmime
8 years ago
772 posts
I've noticed that the first tag I created, which also happens to be the most prevalent tag I have subsequently added to items, isn't showing at all in my tag cloud.
updated by @blindmime: 05/01/17 09:08:52AM
blindmime
@blindmime
8 years ago
772 posts
I think it's not showing the most prevalent item. I just added a bunch of tags and suddenly the tag I had entered first which was the most prevalent is showing and the tag I just added to a bunch of items is not showing.
brian
@brian
8 years ago
10,148 posts
The Tag Cloud words are cached, since the Tag Cloud is kind of a "heavy hitter" in the browser. Is this a caching issue? Do you see the tags you entered after the cache resets?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
8 years ago
7,715 posts
There needs to be enough space. If you have a million keywords and a tiny space.... some dont show ;)

Same with long tags, if you have "some very long tag that spans a space larger than can fit in the box" it just wont show.

Try giving your tag cloud space to fill as much room as it wants and see if the tags you're after appear.
blindmime
@blindmime
8 years ago
772 posts
I'm seeing the tags update almost immediately after entering a new one. This is a personal blog so it's just me and there are maybe a couple dozen keywords so far, none of which are more than 4 words, I believe.

What Michael says makes sense, of course, so I did some testing here. I have the out-of-the-box tag_cloud on the jrElastic profile page. A couple of the most prevalent keywords which are not currently showing in this cloud are "tapegerm" and "happenstance". Three additional prevalent keywords are "elementary penguins" and "4-track" and "doris gets her oats", As I enter them on more items they disappear and/or appear. It doesn't appear to be a random issue; it seems that as the cloud word gets larger it disappears at some point. Currently, "doris gets her oats," "happenstance" and "tapegerm" don't appear in the profile page cloud. In this case, I suggest, the cloud is not working as it should be working. I expect the most prevalent terms to show.

I have also put a cloud on the site index page without the profile_id call. I've put it at 600 height and in a 6col div. As Michael suggests it appears to be working as it should. "tapegerm" is the largest word which I would expect. I believe it's the most prevalent tag.

So, yes, the smaller space is pushing some words out on the profile page, but I suggest it's pushing the wrong ones out.
michael
@michael
8 years ago
7,715 posts
There are some javascript options you can play with, edit the javascript direct via the Template Editor in the /modules/jrTags/templates/tag_cloud.tpl

This is the location of the source code with its instructions.
https://github.com/lucaong/jQCloud

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

maybe with some tweaks you can find a better flow that fits your system more.

Perhaps play with the WEIGHT and the size of the tags. Seams like as the tags become more important, they grow, since they have grown, they are too big to show, so they are omitted. If they didnt grow as big they would still be visible.

have a play.
michael
@michael
7 years ago
7,715 posts
Yeah this does seam to be the case, (screenshot)

Looking for some way to make it work now.
michael
@michael
7 years ago
7,715 posts
If in the tag_cloud.tpl template you add removeOverflowing: false then all tags will show and it will look like this (screenshot)
/modules/jrTags/templates/tag_cloud.tpl
        $("#profile_tag_cloud-" + unique).jQCloud(tags_{$unique}, {
            width: container_width,
            height: {$height}
        });
and change it to
        $("#profile_tag_cloud-" + unique).jQCloud(tags_{$unique}, {
            width: container_width,
            height: {$height},
            removeOverflowing: false
        });

you will get the results in the screenshot. See if that works better for your situation.

Docs: "Altering a Modules Template"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1051/altering-a-modules-template
michael
@michael
7 years ago
7,715 posts
oops, screenshot

Tags