Changing what shows in the Groups Tab on profile pages
Ning To Jamroom
You could actually show the groups a profile's user belongs to in the sidebar with code something like this -
{capture assign="groups"}
{literal}
{if isset($_items)}
{jrCore_module_url module="jrGroup" assign="murl"}
{foreach $_items as $item}
<a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.group_title_url}">{$item.group_title}</a><br>
{/foreach}
{/if}
{/literal}
{/capture}
{jrCore_list module="jrGroup" search="group_members LIKE \"`$_user_id`\":" template=$groups}
Its a bit of a 'dirty' way of doing it as its picking out occurances of the _user_id in the group's members stored JSON string but it should work.
The template just lists group titles but when its working you can refine that.
hth
updated by @paul: 03/27/15 05:47:25AM