solved Private note directly to item owner from item list

Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
I was trying to open on click the private note compose message window with the item owners name added to the box if end user is following the item owner.

<a href="{$jamroom_url}/note/new">                         {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="medium" crop="auto" class="iloutline img_scale" alt=$_note_user.user_name width=false height=false name=$item._profile_id}</a>

This is obviously close but no cigar. How would I properly pass the item_id=$item._user_id to the profile notes module url?
updated by @developer-networks: 05/15/16 09:35:54PM
michael
@michael
8 years ago
7,715 posts
just added info on this to the docs:

Docs: "Private Notes -> For Developers"
https://www.jamroom.net/the-jamroom-network/documentation/modules/286/private-notes#for-developers
Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
Thank you so much! That was very helpful! :]

There was a typo in the example. you added a http:// in front of {$jamroom_url}


Moreover, can you explain a little more about token passing and whats going on here.

Im understanding that the system needs to know the url has been called from with in, however when I pass the cookie exactly like you suggested I revieve this error.

"invalid location redirect token received - please try again"




updated by @developer-networks: 02/14/16 07:56:44PM
Developer Networks
Developer Networks
@developer-networks
8 years ago
566 posts
Found this in my search..

https://www.jamroom.net/the-jamroom-network/forum/jamroom-developers/6538/jrcore-validate-location-url

So I applied this to my link and were in business.

Thanks for the help!

onclick="jrCore_window_location('{$jamroom_url}/note/new/user_id={$item._profile_id}');">

updated by @developer-networks: 02/14/16 08:30:02PM

Tags