July 22, 201015 yr Maybe a seperate '5.0 plugins' section is in order, as this section should discuss the plugin structure etc. ? I'm working on a new plugin which shows the phyisical representation of the unRAID server and allows interaction to map disk's to their physical location. So mouseover the physical disk and the logical disk in the list is selected and vice versa See attached screenshot for a preview in which I have 2x WD MyBook + Antec P160 tower (with 3 bays) and a SQA-Ex e-sata device. Data is still dummy data. The physical design can be accomplished using multiple css files. I already have templates for the mentioned hardware (and will throw in a Norco 4020 for good measure in the next preview). Not yet ready for a public release, PM if you would like to help with the templates..
July 22, 201015 yr I've made some plugins too. I borrowed a lil help from Bubba's pages. I creates a file Utility section (to operate on files in some manner). Under this I create a FilesSearchSection Here is where I put my locate.page. So maybe we should have a disk section. root@unraidvm:/usr/local/webGui# ls -l files* -rw-r--r-- 1 root root 192 Jul 22 12:41 files.page -rw-r--r-- 1 root root 183 Jul 22 12:41 filesSearchSection.page root@unraidvm:/usr/local/webGui# ls -l locate* -rw------- 1 root root 189 Jul 22 12:40 locate.page -rw------- 1 root root 1020 Jul 22 10:37 locate.php -rw------- 1 root root 6404 Jul 21 19:40 locate.png root@unraidvm:/usr/local/webGui# more files.page filesSearchSection.page locate.page :::::::::::::: files.page :::::::::::::: Author="<a href='http://lime-technology.com/forum/index.php?action=profile;u=557'>WeeboTech</a>" Version="1.0.0" Title="File Management Utilities" Menu="Tasks" Icon="network.png" Type="xmenu" :::::::::::::: filesSearchSection.page :::::::::::::: Author="<a href='http://lime-technology.com/forum/index.php?action=profile;u=557'>WeeboTech</a>" Version="1.0.0" Menu="files" Title="File System Search Utilities" Type="menu" Icon="" :::::::::::::: locate.page :::::::::::::: Author="<a href='http://lime-technology.com/forum/index.php?action=profile;u=557'>WeeboTech</a>" Version="1.0.0" Menu="filesSearchSection" Title="Locate Files" Type="php" Icon="locate.png" I am working on the slackbuilds now so it is a really easy drop in. EDIT: I am starting to see the need for subdirectories. I may have to switch things around a lil.
July 22, 201015 yr You can use subdirs.... just the .page and toplevel .php file jhave to be in webGui. /usr/local/webGui/myplugin/<yourstuff> /usr/local/webGui/myplugin.page /usr/local/webGui/myplugin.php and then your top-level php code in myplugin.php can use includes and other things from /usr/local/webGui/myplugin/<yourstuff> Also, Tom has said he intends to also scan another user-directory for user plugins (as yet not identified).
Archived
This topic is now archived and is closed to further replies.