Projects


EasySpamKillerEasyBook

Short
Observes EasyBook entries

Description

This tries to protect EasyBook against spam.

Required changes to Easybook:
In folder:
[JROOT]/components/com_easybook/controllers/
Open the file
entry.php
on line ~#80 find the following code:

if((!$id && $canAdd) || ($id && $canEdit))
{
....

Add the following code:
/*
* ADD NiK START
* We load the plugin group 'easy' and define an event 'onSubmitEasyBook'
*/

//--Easy plugins
JPluginHelper::importPlugin('easy');

//--Get reference to dispatcher
$dispatcher =& JDispatcher::getInstance();

//--Custom handlers
$results = $dispatcher->trigger('onSubmitEasyBook', array(&$admins, &$temp));

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
   
easyspamkillereasybook_1.0_090202_0439.tar.gz 1.6 KB 2009-Feb-02

Powered by AutoIndex PHP Script


Hinzufügedatum: 2008-12-27 09:07:04    Hits: 2995
Powered by Sigsiu.NET