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.

JomSocial hooks not triggering?

11 years 1 day ago
  • Johan's Avatar
    Topic Author
  • Johan
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

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>');
}

11 years 23 hours ago
Licenses:

HI, Kirsten.

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