solved Private Notes and Notifications?

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
Is it possible to change private notes to "alerts" and place it in the menu bar so it is visible?
updated by @zachary-moonshine: 10/21/15 12:55:32PM
paul
@paul
10 years ago
4,335 posts
You can use the 'User Menu Editor' tool in the ACP Core Tools section to change the language string.
If you want a link to Private Notes to show in the menu maybe edit the skin's profile_menu.tpl template and add it in before or after the foreach loop.
You can use the jrPrivateNote_unread_count() function in the template to get unread count. Also remember that you'll need to wrap the menu button in some conditional statements to check that its the profile owner - {if jrProfile_is_profile_owner($_profile_id)}
hth


--
Paul Asher - JR Developer and System Import Specialist
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
thanks man gonna try this
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok i am completely lost here
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
I found the profile menu tpl but cant find the string to add?
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
I don't have to change the name of it so much as just to make it visible in the profile menu would definitely help
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
can you show me the code i need and i can copy and paste it ?
douglas
@douglas
10 years ago
2,806 posts
If your using the jrNingja skin, open your skins/jrNingja/profile_menu.tpl and change this:

{if isset($_items)}
    {foreach from=$_items key="module" item="entry"}
        {if $entry.active == '1'}
            <a href="{$entry.target}"><div class="profile_menu_entry profile_menu_entry_active">{$entry.label}</div></a>
        {else}
            <a href="{$entry.target}"><div class="profile_menu_entry">{$entry.label}</div></a>
        {/if}
    {/foreach}
{/if}

to this:

{if isset($_items)}
    {foreach from=$_items key="module" item="entry"}
        {if $entry.active == '1'}
            <a href="{$entry.target}"><div class="profile_menu_entry profile_menu_entry_active">{$entry.label}</div></a>
        {else}
            <a href="{$entry.target}"><div class="profile_menu_entry">{$entry.label}</div></a>
        {/if}
    {/foreach}
{/if}
{if jrProfile_is_profile_owner($_profile_id)}
    <a href="{$jamroom_url}/{jrCore_module_url module="jrPrivateNote"}/notes"><div class="profile_menu_entry">Alerts {jrPrivateNote_unread_count()}</div></a>
{/if}

that will add an "Alerts" button at the end of your profiles menu.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 09/18/15 09:12:32AM
douglas
@douglas
10 years ago
2,806 posts
Actually, it should be this:

{if isset($_items)}
    {foreach from=$_items key="module" item="entry"}
        {if $entry.active == '1'}
            <a href="{$entry.target}"><div class="profile_menu_entry profile_menu_entry_active">{$entry.label}</div></a>
        {else}
            <a href="{$entry.target}"><div class="profile_menu_entry">{$entry.label}</div></a>
        {/if}
    {/foreach}
{/if}
{if jrProfile_is_profile_owner($_profile_id)}
    <a href="{$jamroom_url}/{jrCore_module_url module="jrPrivateNote"}/notes"><div class="profile_menu_entry">Alerts {$_user.user_jrPrivateNote_unread_count}</div></a>
{/if}

just tested this and it works for me.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
yesssssssssss thank you man it works!!!!!!
douglas
@douglas
10 years ago
2,806 posts
Your welcome! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
but the number stays at zero?
douglas
@douglas
10 years ago
2,806 posts
Do you have any unread private notes?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
10 years ago
3,605 posts
This is terrific! I just added it and I love it.

Mine read "1" when I had an unread message, then a few minutes after I read the PM, the number switched to "0". I made mine say "New Messages".
There still remains the usual number next to "private messages" in the top navbar drop down menu from the username link. But this is an extra place which is great because many members don't think to check the drop down menu very often. This one's in a big TAB right there on your profile page without having to click to check it.
Wheeee! Little treat for the day! :D

Edit: adding a screenshot showing how this resulting code TAB looks on Profile Pages on my site after I added it.

new-tab.jpg
new-tab.jpg  •  273KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 09/19/15 03:30:27PM