Menu

Plugin writing help

Help
2004-04-06
2012-10-11
  • Thierry Cabuzel

    Thierry Cabuzel - 2004-04-06

    I want to try to write a new plugin for phpWiki. The goal is to translate something like:

    $$ A taisha variation
    $$  ------------------
    $$ | . . . . . . . . .
    $$ | . . . . . . . . .
    $$ | . . 7 3 X d . . .
    $$ | . . O 1 O 6 . . .
    $$ | . . 4 2 5 c . . .
    $$ | . . 8 X a . . . .
    $$ | . . . b . . . . .
    $$ | . . . . . . . . .
    $$ | . . . . . . . . .

    into a graphical board game. (see http://senseis.xmp.net/?HowDiagramsWork for a complete description of what is needed to do).

    My questions are:

    Is there some documentation of how to write a plugin?
    Is thete some documentation of how to add new text formating rules?
    Is there some kind of template plugin where I can complete it to make the desired result?
    If I want to create this new plugin, do I need to make some modifications in the phpwiki core source or just a new plugin?

    All in all: Is there is a "Writin phpwiki plugin for Dummies" somewhere ? :)

     
    • Anonymous

      Anonymous - 2004-04-07

      I did something similar to this; check out this page: http://mpickering.homeip.net/phpwiki/index.php/ChessPlugin

      You basically have to implement getName (returns the name of your plugin), getDescription (returns a description), getVersion (returns the version), getDefaultArguments (sets the default values for each argument your plugin accepts), and run (the actual plugin logic that generates HTML).

       

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.