example:
plugin modification:
Code
add it near the top under the first conditional statement:
Code
function smarty_function_pnhelp($params, &$smarty)
{
if (!pnModAPILoad('pnhelp', 'help'))
{
$smarty->trigger_error('pnhelp: could not load pnhelp API');
return false;
}
if($params['modules'] != ''){
$modules = explode(',',$params['modules']);
if(!in_array(pnModGetName(),$modules)){
return;
}
}
..
...
....
{
if (!pnModAPILoad('pnhelp', 'help'))
{
$smarty->trigger_error('pnhelp: could not load pnhelp API');
return false;
}
if($params['modules'] != ''){
$modules = explode(',',$params['modules']);
if(!in_array(pnModGetName(),$modules)){
return;
}
}
..
...
....
maybe it's useful to others as well. more info on the pnHelp module is available from http://www.elfisk.dk
