Projects


EasySpamKillerWingedMessenger

Short
Observes WingedMessenger entries

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


FileDownloadsSizeModified
   
easyspamkillerwingedmessenger_1.0_090102_1804.tar.gz 1.8 KB 2009-Jan-11
easyspamkillerwingedmessenger_1.0_090202_0441.tar.gz 1.6 KB 2009-Feb-02

Powered by AutoIndex PHP Script


Hinzufügedatum: 2009-01-02 19:56:25    Hits: 326
Powered by Sigsiu.NET