Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
xtech Posted May 15, 2015 Posted May 15, 2015 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
不中用 Posted May 15, 2015 Posted May 15, 2015 .if you can grab the memberID ..then you can change the URL to ..http://community.invisionpower.com/messenger/compose/?to=memberID .
不中用 Posted May 15, 2015 Posted May 15, 2015 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> .
xtech Posted May 15, 2015 Author Posted May 15, 2015 Thank you! This saves the day! Btw: is there any place at this site where one can look at the API / functions / variables??
不中用 Posted May 16, 2015 Posted May 16, 2015 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 .. .
Joel R Posted May 16, 2015 Posted May 16, 2015 .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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.