solved Tag cloud from specific profile quota

gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Hey Guys

I have been trying to reuse code Micheal gave me in another thread https://www.jamroom.net/the-jamroom-network/forum/my_posts/28969/module-specific-comments to show only tags from a certain profile_quota_id = 8.

{* Tags from all Business Profiles *}
{jrCore_list module="jrProfile" limit="500" search="profile_quota_id = 8" template="null" assign="rows" return_keys="_profile_id"}
{if is_array($rows)}
    {foreach $rows as $row}
        {$_ids[$row._profile_id] = $row._profile_id}
    {/foreach}
    {$wanted = implode(',', $_ids)}
{/if}
<div class="title_block border-1px">Tag Cloud</div>
<div class="border-1px block_content">
    <div class="item">
        {jrTags_cloud height="300" search="_profile_id in $wanted"}
    </div>
</div>

But its still returning tags from profiles that are not in quota 8.

Maybe I am way over thinking this however.
updated by @garymoncrieff: 06/28/15 07:59:43PM
brian
@brian
10 years ago
10,149 posts
You only need to do:

{jrTags_cloud height=300 profile_id=8}

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Brian would that now only show it from one profile rather than all those in quota 8?
douglas
@douglas
10 years ago
2,804 posts
Have you tried this?

{jrTags_cloud height="300" search="quota_id = 8"}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
10 years ago
10,149 posts
gary.moncrieff:
Brian would that now only show it from one profile rather than all those in quota 8?

My apologies - was trying to help before I had more coffee :)

So yeah - we'll need to round up the profile ids like you have in your first post:

{jrCore_list module="jrProfile" limit=1000 template="null" skip_triggers=true return_item_id_only=true assign="out"}
{$list = ","|implode:$out}
{jrTags_cloud height="300" search="_profile_id in `$list`"}

Let me know if that works.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Thanks

The only way in the end I could get this to work was

        {jrCore_list module="jrProfile" limit=1000 template="null" search="profile_quota_id = 8" skip_triggers=true return_item_id_only=true assign="out"}
        {$list = ","|implode:$out}
        {jrTags_cloud height="300" search2="tag_module in jrProfile" search="_profile_id in `$list`"}
brian
@brian
10 years ago
10,149 posts
yep that works - sorry I didn't get the specific search conditions in, but glad it is working.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags