hi gigamaster.
Quote:
And as usual i start to put my self in troubles
changing "formmail4fleamarket" to "formvalidation"
I had to go through phpmyadmin to fix smarty bug..
If you copy the smarty plugin like "formmail" with different name, you have to change the code of the plugin.
function smarty_function_formmail( $params , &$smarty )
{
$controller =& new PicoFormProcessBySmartyFormmail() ;
$controller->parseParameters( $params ) ;
// toEmails from 'adminmail'
if( empty( $controller->toEmails ) ) {
if( trim( $GLOBALS['xoopsConfig']['adminmail'] ) != '' ) {
$controller->toEmails[] = $GLOBALS['xoopsConfig']['adminmail'] ;
}
}
$controller->execute( $params , $smarty ) ;
}
class PicoFormProcessBySmartyFormmail extends PicoFormProcessBySmartyBase
{
function __construct()
{
$this->mypluginname = 'formmail' ;
}
function executeLast()
{
$this->sendMail() ;
}
}