Posted By

kevincam on 05/24/12


Tagged

message send joomla JomSocial


Versions (?)

Use JomSocial built-in personal messaging system


 / Published in: PHP
 

  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  

You need to login to post a comment.