Use JomSocial built-in personal messaging system


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Include Jomsocial core
  2. $jspath = JPATH_ROOT.DS.'components'.DS.'com_community';
  3. include_once($jspath.DS.'libraries'.DS.'core.php');
  4. // Include Messaging library
  5. include_once($jspath.DS.'libraries'.DS.'messaging.php');
  6. // Add onclick action
  7. $onclick = CMessaging::getPopup($userid);
  8. echo '<a onclick="<?php echo $onclick; ?>" href="javascript:void(0);">';

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.