Description
Required changes to WingedMessenger:
In folder:
[JROOT]/components/com_wmessenger/
Open the file
controller.php
on line ~#32 find the following code:
function senden()
{
global $mainframe;
// Check for request forgeries
JRequest::checkToken() or jexit( 'Invalid Token' );
....
Add the following code:
/*
* ADD NiK START
* We load the plugin group 'easy' and define an event 'onSaveWingedMessengerEntry'
*/
//--Easy plugins
JPluginHelper::importPlugin('easy');
//--Get reference to dispatcher
$dispatcher =& JDispatcher::getInstance();
//--Custom handlers
$results = $dispatcher->trigger('onSaveWingedMessengerEntry', array());
foreach( $results as $result )
{
if( JError::isError($result) )
{
//--A plugin returned an error - hopefully it has displayed some message cause..
//--We will end here
return false;
}
}//foreach
/*
* ADD NiK END
*/
This will define a custom event which will give other plugins the ability to do 'something'.
Install / uninstall
Standard Joomla! installer
Publish and review parameters
EasySpamKillerHelper is required
Incubator
These versions are unstable and may contain bugs
Powered by AutoIndex PHP Script