-
Notifications
You must be signed in to change notification settings - Fork 40
mk4createmodulesguide
There are four main steps involved in creating a module.
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>
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.
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.