Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Auto populate PM and send as part of a form

10 years 3 months ago
  • Charles's Avatar
    Topic Author
  • Charles
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Expired

Is there a way set it so that a pm is sent with some default message when a form is submitted instead of just linking to the message popup? Using this,

include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
include_once JPATH_ROOT.'/components/com_community/libraries/messaging.php';
// Add a onclick action to any link to send a message
// Here, we assume $usrid contain the id of the user we want to send message to
$onclick = CMessaging::getPopup($userid);
echo '<a onclick="'.$onclick.'" href="#">Send message</a>';

Thanks

10 years 3 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

Hi Charles.

To be honest custom modifications are beyond our support scope, so there's not much I can do to help you, however maybe someone from the tips and tricks section could help you > www.jomsocial.com/community/groups/viewg...omsocial-tips-tricks

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW