WordPress.org

Ready to get started?Download WordPress

Ideas

Create fork of plugin in the same directory in one plugin

  1. KwarK
    Member

    Hi,

    I have tested this structure for a plugin with a main plugin containing some function (a plugin to activate mandatory)

    And in the same plugin folder, i have a fork of some dependencies to activate or deactivate for user with administrator capabilities on a network of wordpress sites.

    This works fine but i think for the svn-repository, some display options of dependances exist ?

    /*
    Plugin Name: ...
    Plugin URI: ...
    Description: ...
    Author: ...
    Version: 1.0
    Author URI: ...
    */

    if i have multiple php file containing this information with a different Plugin name, all works fine and activation/deactivation of each part of the plugin works fine.

    But, options exists for svn repository for these sub-parts of a plugin with this structure ?

    something like this

    /*
    Plugin Name: ...
    Plugin URI: ...
    Description: ...
    Author: ...
    Version: Sub
    Author URI: ...
    */

    Posted: 2 years ago #
  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    I think you can do that... I know there are some plugins I've used that made 'extra' components.

    http://wordpress.org/extend/plugins/simple-facebook-connect/ does (or used to do).

    Look at the code in http://plugins.svn.wordpress.org/simple-facebook-connect/tags/1.0/

    You'll see http://plugins.svn.wordpress.org/simple-facebook-connect/tags/1.0/sfc-base.php references "SFC-Plugins"

    Follow that down the rabbit hole :)

    Posted: 2 years ago #
  3. KwarK
    Member

    Give the permission to download part by part on plugin page for users and make "special" for text file for the repository to permit that, it's not a good idea ?

    I think, it's possible to do very lightly plugin with very simple Query with this structure... or this is just a feeling ...

    Posted: 2 years ago #
  4. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Eeeeeh.

    Personally I abhor the idea of a plugin downloading components from outside. I mean, your plugin on the repo should have everything you need. If you need to fork, you make your own plugin folder because you can prevent it from being overwritten.

    Posted: 2 years ago #
  5. KwarK
    Member

    No from outside (not really a fork).

    All free and from wordpress.org only ....

    The idea is just to seperate each download with multiple buttons from the plugin page.

    And if a mendatory part of the plugin is not active (for the download core in administration), it is not possible to activated the SUB parts or an automatic installation/activation of mendatory SUP part start automatically...

    a picture http://img190.imageshack.us/img190/5657/capturexhk.png

    All plugin-livetv-* have this information (with different name)

    /*
    Plugin Name: ...
    Plugin URI: ...
    Description: ...
    Author: ...
    Version: 1.0
    Author URI: ...
    */

    and activate/deactivate work. That's all. No need to see evil everywhere ..

    Posted: 2 years ago #
  6. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Okay. So you want different 'parts' of your plugin to be activatable? Like sub-plugins.

    You can already do that. Look at the example I gave you. It's a little complicated, but it works. Just put the checks in the 'sub plugins.'

    Posted: 2 years ago #
  7. KwarK
    Member

    At least, my bad English will have the merit to inspire you for your blog lol.

    Ok, i go to do that, thank you for this information.

    Posted: 2 years ago #
  8. Tikolan
    Member

    12345

    in my Home Repository i use this feature for any extra Plugins in one Folder,

    what do the wordpress.org plugin repository with this action, i dont need, but i am interessted, because i brought in my First Plugin in last week.

    Posted: 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    4 Votes
  • Status

    This idea is under consideration