Skip to content

mk4createmodulesguide

sebkinne edited this page Apr 16, 2013 · 11 revisions

Module Creation

Creating modules (infusions) for the WiFi Pineapple is an easy process, well within the ability of anyone with a good grasp of php.

There are four main steps involved in creating a module.

Develop

Using your preferred method, create or copy your php files in your modules root directory. This will be:

/pineapple/modules/Bartender/projects/[Your Module Name]/

Remember: As the pineapple currently uses php version 4, you may have to re-implement some of the methods you are used to using.

In order to maintain the WiFi Pineapple look and feel, you can use this skeleton to create your modules.

    <head>
        <title>Pineapple File Browser</title>
        <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
        <link rel="stylesheet" type="text/css" href="/includes/styles.css" />
        <link rel="icon" href="/favicon.ico" type="image/x-icon">
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    </head>
    <body>
        <?php include("/pineapple/includes/navbar.php"); ?><br />
        <div class="sidepanelLeft">
            <div class="sidepanelTitle">[Left Side Panel Title]</div>
            <div class="sidepanelContent">
                [Left Side Panel Content]
            </div>
        </div>
        <div class="content">
            <div class="contentTitle">[Main Content Title]</div>
            <div class="contentContent">[Main Content]</div>
        </div>
        <div class="sidepanelRight">
            <div class="sidepanelTitle">[Right Side Panel Title]</div>
            <div class="sidepanelContent">
                [Right Side Panel Content]
            </div>
        </div>
    </body>
</html>

Export

Once your module is complete, go back into bartender and edit your module. Be sure to set the Version, Author, Start Page (the initial php page for your module, for example: "index.php") and the Support Link.

Once this is saved, download your completed module.

Upload

To use the Bartender, please register a module developer account at http://wifipineapple.com/?portal.

Once your account has been activated, you can publish your module.

When you are happy with the way your module looks and works, simply hit the download link and submit the resulting file through the Module Submission System. Just upload your completed module, enter the Version Number and a Description and your done.

When your module has been verified, it will appear in the list of available modules on wifipineapple.com.

Clone this wiki locally