[geeklog-devel] PLG_get???Options missing CUSTOM hook

Joe Mucchiello joe at ThrowingDice.com
Tue Sep 4 02:16:45 EDT 2007


Could someone modify PLGINT_getOptionsForMenus() as follows:

     $counter = 0;
// line 862 of lib-plugins.php from CVS a day or two ago
     $func_array = array();
     foreach ($_PLUGINS as $pi_name) {
         $function = $function_name . $pi_name;
         if (function_exists ($function)) {
             $func_array[] = $function;
         }
     }
     $custom_func = str_replace('plugin_', 'CUSTOM???', 
$function_name);  // assume $function_name is 'plugin_something_'
     $custom_func = str_replace('_', '', $custom_func);  // 
$custom_func is now 'CUSTOM???something_', remove trailing _
     $custom_func = str_replace('???', '_', $custom_func); // 
$custom_func is now 'CUSTOM???something', convert ??? to _
     if (function_exists($custom_func)) {
         $func_array[] = $custom_func;
     }
     foreach ($func_array as $function) {
// line 865 of lib-plugins.php
             $plg_array = $function();
// remove this line (around 898 before inserting code above)
         }

----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com 




More information about the geeklog-devel mailing list