Jump to content

Template logic: send PM to database record creator?


xtech

Recommended Posts

Posted

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

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>

 

.

Posted

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 ..

 

.

Posted

​.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...