Still no joy. class names are correct. kunena is installed, but thought i'd change to what you suggested but still not working. Created a simpler plugin: would love to get users feedback if it works for them:
//xml
<?xml version="1.0" encoding="utf-8"?>
<extension version="1.0.0" type="plugin" group="socialprofiles" method="upgrade" client="site">
<name>Sonet Wifi Redir - jfbconnect</name>
<version>1.0.0</version>
<creationDate>06/10/2015</creationDate>
<author>Southamptonnetwork |
www.southamptonnetwork.com
<authorEmail>
This email address is being protected from spambots. You need JavaScript enabled to view it.
<authorUrl>
www.southamptonnetwork.com
<copyright>Copyright (C) 2010-2015 southamptonnetwork. All rights reserved.</copyright>
<license>
www.gnu.org/licenses/gpl-2.0.html GNU/GPL
<description>login detection for facebook and redirect to ap</description>
<files>
<filename plugin="sonetwifiredirtest">sonetwifiredirtest.php</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field name="secretkey" type="text"
description="secret key needed to communicate with access point"
label="SOwifi Secret key"
size="40"
/>
</fieldset>
</fields>
</config>
</extension>
//end
//php code
/**
* @package JFBConnect
* @copyright (c) 2009-2014 by SourceCoast - All Rights Reserved
* @license
www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @build-date 2014/07/14
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.utilities.date');
jimport('sourcecoast.plugins.socialprofile');
jimport('sourcecoast.utilities');
//require_once JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php';
class plgSocialProfilesSonetWifiRedirTest extends SocialProfilePlugin
{
function __construct(&$subject, $params)
{
$this->_componentFolder = JPATH_SITE ;
parent::__construct($subject, $params);
//$this->defaultSettings->set('import_avatar', '1');
//$this->defaultSettings->set('import_always', '0');
}
/* After the user has logged in we then get the ball rolling
* 1st have the gets (ip/port/challenge) been sent if yes then.
* get secret key from param.
* get logged in users id
* then redir to ap with
*/
function onLogin() {
echo 'wtf';
JFactory::getApplication()->enqueueMessage(JText::_('sonet wifi test seems to be working'));
}
}
//end
sonetwifiredirtest.xml
sonetwifiredirtest.php
Thanks in advanced