Helping my members see their 'pending' Followers
Using Jamroom
Michael, thank you for this suggestion. I'm afraid it's a little beyond my abilities still- in looking at your code and instructions, I'm completely confused and I'd have to bother for with a million step by step questions to do that. Sorry... maybe next year I'll be able to build a simple module... i'm a slow learner.
Paul, I see what you are saying and can do that, but my custom skin's menu.tpl has different code than what you are showing, so I'm not sure where to relocate Michael's earlier custom code (which has produced a nice working link but not in the desired place in the menu link list).
Here is the current code in my custom skin's menu.tpl ...with Michael's custom code currently sitting at the bottom:
{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>
{else}
<li><a href="{$entry.menu_url}">{$entry.menu_label} <img src="{$entry.menu_function_result}" alt="{$entry.menu_label}"></a></li>
{/if}
{else}
<li><a href="{$entry.menu_url}">{$entry.menu_label}</a></li>
{/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>
{/if}
and here's a screenshot of the resultant user menu dropdown as it appears, and an arrow to show where I'd like to move that link. I want the 'pending followers' link to be right under the Private Messages link because my members keep wondering why they can't send private messages once two people have 'followed' each other- they become unaware that they have pending follows. And right UNDER the Pending Followers reminder link (people trying to follow me), will be the reciprocal link to 'Members I'm Following'.
I think the nice trio of function-connected links from top to bottom there (private messages, pending followers, members i'm following) makes a nice logical and helpful order of links there.... right 'in yer face' in the menu underneath the topmost link of Account Settings. It will do wonders to get members on my site to go check on and approve their Pending followers that they seem to so often be totally unaware of.
-I still want Account Settings to be the topmost link though. And the 'My Profiles' link only shows to me since I'm the only Power user with more than one profile anyway... so that link can remain at very top above Account Settings.
I think this kind of menu link for Pending Followers could be very helpful to a lot of JR site owners. I can only guess that there must be other site owners who have lots of members inadvertently accumulating pending followers, despite receiving one notification that they had a new follower and might want to go approve them. I wasn't aware of this situation myself until just a couple months ago.
Do you have a suggestion on where exactly I should position that code in my menu.tpl in order to put the link in the place in my screenshot?
updated by @strumelia: 01/14/18 09:25:27AM