solved PM Link

Dazed
Dazed
@dazed
10 years ago
1,022 posts
Is there an easy way to do a link to PM a member? So instead of doing a contact form like in JR4, we could create a button that would link to the inbox and just have the users name already set?

Thanks
updated by @dazed: 06/07/14 06:39:11PM
michael
@michael
10 years ago
7,746 posts
You could create a form somewhere that sends the link. That is how the /contact_us form is setup for:

jrFlashback
jrMediaPro
jrNova
jrPhotoPro
jrProjam
....

They all put the form into the page and set the id of the person who its going to go to:
 <input type="hidden" name="note_to_id" value="1">

But there isnt a way to have the.....(goes to check again)

-------------
yes there is, you can do
site.com/note/new?user_id=3

and it will be preset for you.
Dazed
Dazed
@dazed
10 years ago
1,022 posts
very cool. Thanks Michael!
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@Dazed - I was able to do it using this code also:

{capture name="tpl" assign="tpl"}
    {literal}
        {jrCore_module_url module="jrPrivateNote" assign="murl"}
        {foreach $_items as $i}
        <a href="{$jamroom_url}/{$murl}/new/user_id={$i._user_id}"><div class="profile_menu_entry">Send a Note to {$i.user_name}</div></a>
        {/foreach}
    {/literal}
{/capture}
{jrCore_list module="jrUser" limit="1" profile_id=$_post._profile_id template=$tpl}

Complete details here:
https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/2202/how-to-add-a-profile-menu-item
updated by @ilovehousemusic: 05/06/14 05:15:48PM
Dazed
Dazed
@dazed
10 years ago
1,022 posts
It was easier to just do it like this and add an image

<div class="head-180">Info&nbsp;<A HREF="{$jamroom_url}/note/new?user_id={$_user_id}"><IMG SRC="{$jamroom_url}/skins/skin_name/img/mail.png"  ALT="email the artist" ></A>