Fork me on GitHub

pnHelp mod - display on defined pages  Bottom

  • I added an option to the pnRender plugin that allows a user to define which modules the help link is available from.

    example:


    plugin modification:

    Code

    if($params['modules'] != ''){
    $modules = explode(',',$params['modules']);
      if(!in_array(pnModGetName(),$modules)){
        return;
      }
    }

    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;
      }
    }
    ..
    ...
    ....



    maybe it's useful to others as well. more info on the pnHelp module is available from http://www.elfisk.dk

This list is based on users active over the last 60 minutes.