Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 15, 20159 yr Hi, i would like to know how to insert a link to send a pm to the record creator when displaying a record (inside the display template).Can you help me?Regards
May 15, 20159 yr .if you can grab the memberID ..then you can change the URL to ..http://community.invisionpower.com/messenger/compose/?to=memberID .
May 15, 20159 yr Hi, i would like to know how to insert a link to send a pm to the record creator when displaying a record (inside the display template).Can you help me?Regards.this creates a button .. and button will open a popup .. so your members will not navigate away from that page ..the last part of the href .. " ?to=1 " .. replace 1 with your member/author ID variable .. <a class="ipsButton ipsButton_important ipsButton_Small" data-ipsdialog="" data-ipsdialog-size="medium" data-ipsdialog-title="PM Author" title="PM to the Author" href="https://yoursite.com/messenger/compose/?to=1">PM Author</a> .
May 15, 20159 yr Author Thank you! This saves the day! Btw: is there any place at this site where one can look at the API / functions / variables??
May 16, 20159 yr Thank you! This saves the day! Btw: is there any place at this site where one can look at the API / functions / variables?? . Nothing is better then to dive in the templates/css/php/.. itself to see the code working, give it a tweak and see the results .. Documentation here on IPS site is still minimal .. and mostly without good examples .. .
May 16, 20159 yr .this creates a button .. and button will open a popup .. so your members will not navigate away from that page ..the last part of the href .. " ?to=1 " .. replace 1 with your member/author ID variable .. <a class="ipsButton ipsButton_important ipsButton_Small" data-ipsdialog="" data-ipsdialog-size="medium" data-ipsdialog-title="PM Author" title="PM to the Author" href="https://yoursite.com/messenger/compose/?to=1">PM Author</a>.You deserve a badge for the most technically helpful non-developer person in the entire community. I always see you post helpful technical solutions to help out others, which is great.
Archived
This topic is now archived and is closed to further replies.