Forums

Join
bbPress Support ForumsRequests and FeedbackTrouble with actiwation plugins in subfolders and solution

Info

Trouble with actiwation plugins in subfolders and solution

  1. Hey
    When I was writing plugin last time they dont want run install function after activation. Trouble was in position of plugin file in subfolder in 'my-plugins'.
    When I looked in plugins.php I saw the problem. Script make 'do_action()' on overall path to plugin from my-plugins. For example: 'plugin/plugin.php'. So orginal function have to be 'bb_activate_plugin_plugin/plugin' what in incorrect. I wrote few lines and all works fine.
    After line 66 in bbpress/bb-admin/plugins.php:

    $posSlash = strpos($plugin,'/');
       if(intval($posSlash) != 0){
       $plugin = substr($plugin,$posSlash+1);
    }

    After that all works fine :) May be included in next bbPress version.
    Regards
    D.

  2. If you think this is a problem with the bbPress core, please open a ticket and submit a patch at http://trac.bbpress.org/

    You can log in there with a WordPress.org account if you have one.

  3. This topic is closed