Menu

help understanding how plugins work...

2004-09-02
2004-09-02
  • Stefano Garuti

    Stefano Garuti - 2004-09-02

    I played a litte with this fantastic v.3
    Some questions:
    when I wrote a plugin... how can I run it? only from the plugin page? or is there a way to integrate it in the generation process?

    I would like the write a plugin to build modules for PostNuke, PHPNuke, etc that manage tables...
    I should start from a "template" module, generate the generator code, etc...
    Can you confirm that this can be made (at least in theory)... ;-)
    I'll need some more input from user (like module name, etc...) can the plugin manage this?

    thanks a lot!!!
    Stefano

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-09-02

      When you write a plugin.. just make sure you all it...  *.plugin.class.php and make a folder for it and drop it in the ..web/userPlugIns directory.. or just put the file directly in the ..web/userPlugIns directory and PCG will automatically detect it when you go to userPlugins option from the application.

      Also put these somewhere in your plugin file as comments
      <?
      /*
      <PLUGINNAME>pluginClassName</PLUGINNAME>
      <DESCRIPTION>This plugin does something.</DESCRIPTION>
      <AUTHOR>Your Name</AUTHOR>
      */
      ?>
      where pluginClassName is the name of your plugin Class..

      Sorry I have not done a good job at documenting it correctly. Maybe after you write your first plugin you can help write some better documentation on how to do a PCG plugin :)

      Let me know how it works for you.

      Thanks,
      Nilesh

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.