solved Contact button to Profile menu

Eddy
Eddy
@eddy
9 years ago
479 posts
I am using the private notes Module, but wanted to add a "Contact" button to the profile menu for it, could anyone tell me how to do this?

Thank you

Eddy
updated by @eddy: 03/01/16 07:45:08PM
douglas
@douglas
9 years ago
2,790 posts
You can add a link to the new private note form, but the user will still have to enter the profile name for the recipient.

If that will work for you, change your skins/jrNova/profile_menu.tpl from 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}
    <a href="{$jamroom_url}/note/new/"><div class="profile_menu_entry">Contact</div></a>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
9 years ago
479 posts
Thank you @douglas, awesome!

Eddy
douglas
@douglas
9 years ago
2,790 posts
Your welcome! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Eddy, would you consider adding a small screenshot here for what this looks like once applied to your site?

And... Douglas, would this work for a custom Ningjs skin as well, using the same code?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
I don't see any reason why it won't work. If in doubt just add the extra bit of code to your template file. Just one note however if you have private notes set to followers only it might be a wise idea to do a check to dertimine who can see the menu item.
douglas
@douglas
9 years ago
2,790 posts
Strumelia:
Eddy, would you consider adding a small screenshot here for what this looks like once applied to your site?

And... Douglas, would this work for a custom Ningjs skin as well, using the same code?

Yes, just add this:

<a href="{$jamroom_url}/note/new/"><div class="profile_menu_entry">Contact</div></a>

to the bottom of your skins profile_menu.tpl, see the attachment for what it looks like in the jrNingja skin.




gary.moncrieff:
I don't see any reason why it won't work. If in doubt just add the extra bit of code to your template file. Just one note however if you have private notes set to followers only it might be a wise idea to do a check to dertimine who can see the menu item.

I'm not sure adding a check for the profile being a follower or not would matter since it is just a link to the viewers Private Notes > New Note form.


--

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

updated by @douglas: 11/28/15 03:30:59AM

Tags