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.
I'm new to php and working on a plugin that posts an event to an agenda when you join an event. However, when I try to use the hooks from JomSocial, none seems to trigger. The Joomla hooks do trigger when I use them. What am I missing?
The php code for the plugin:
<?php
defined('_JEXEC') or die('Restricted access');
jimport('joomla.plugin.plugin');
class plgSystemJomSocialToAgenda extends JPlugin {
public function plgSystemJomSocialToAgenda(& $subject, $config) {
parent::__construct($subject, $config);
JPlugin::loadLanguage('plg_system_jomsocialtoagenda', JPATH_ADMINISTRATOR);
require_once( JPATH_ROOT . '/components/com_community/libraries/core.php' ); // loading the core library now
}
public function onEventJoin($event) {
echo('<script>console.log("Event join triggered")</script>');
}
I'm sorry but we don't support developing issues.
Please, read our Support Policy:
www.jomsocial.com/support
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you