Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble with actiwation plugins in subfolders and solution

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar