Helping my members see their 'pending' Followers
Using Jamroom
great. So the way a programmer thinks is: figure out where I need to put it, then put it there. You now know that the location that contains
( position 3 ) is the location that you want to deal with so you can remove all of the other location edits you put in because we know where to edit now.
So just above that, put in the code to check for the entry we want to check for:
{if $entry.menu_label == "Private Messages"}
THE CUSTOM CODE HERE
{/if}
The result is:
{foreach from=$_items name="loop" item="entry"}
{if isset($entry.menu_function_result) && strlen($entry.menu_function_result) > 0}
{if is_numeric($entry.menu_function_result)}
<li><a href="{$entry.menu_url}">{$entry.menu_label} [{$entry.menu_function_result}]</a></li> ( position 1 )
{else}
<li><a href="{$entry.menu_url}">{$entry.menu_label} <img src="{$entry.menu_function_result}" alt="{$entry.menu_label}"></a></li> ( position 2 )
{/if}
{else}
{if $entry.menu_label == "Private Messages"}
{* THE CUSTOM CODE HERE *}
{if jrUser_is_logged_in()}
<li><a href="{$jamroom_url}/{$_user.profile_url}/follow">Pending Followers: {jrCore_list module="jrFollower" search1="follow_profile_id = `$_user._profile_id`" search2="follow_active = 0" return_count=true no_cache=true}</a></li>
{/if}
{/if}
<li><a href="{$entry.menu_url}">{$entry.menu_label}</a></li> ( position 3 )
{/if}
{/foreach}
{if jrUser_is_logged_in()}
<li><a href="{$jamroom_url}/{$_user.profile_url}/follow">Pending Followers: {jrCore_list module="jrFollower" search1="follow_profile_id = `$_user._profile_id`" search2="follow_active = 0" return_count=true no_cache=true}</a></li> (position 4 )
{/if}
and it should be close to what you're after.
updated by @michael: 01/18/18 07:08:03PM