[FM Discuss] php challenge... Plugins

adam adam at xs4all.nl
Fri May 14 05:25:39 PDT 2010


hey John,


at the moment there is a mailing list:
http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net

Booki and Objavi are in Python....the php script is standalone 

any tips on how to make a basic structure for adding the kind of
functionality I mentioned as plugins?

at the moment the script does this:
1. enter the name of the book you want
2. enter a template wrapper to put around the content
3. the publishing script sends this info to Objavi
4. Objavi gets the content and adds the template and returns a url
5. the publishing script gets the templated content and saves it locally

i am a basic php-er so I need to help in designing a simple structure
for extending the functionality of the content (eg comments etc) through
plugins


adam




On Fri, 2010-05-14 at 08:05 -0400, John Rigdon wrote:
> I'm much more familiar with other languages than with PHP, but I do hack at 
> it on a regular basis and have toyed with Booki for some projects so I have 
> a basic vague idea of where we are and where we're going with this.
> 
> Having said that I have a LOT of experience in system design from a meta 
> standpoint and would love to help where I can here.
> 
> Are the discussions regarding Booki held here or somewhere else?  I have not 
> been able to find an appropriate forum at the Booki site.
> 
> John Rigdon
> www.ngohaiti.com
> 
> 
> --------------------------------------------------
> From: "adam hyde" <adam at flossmanuals.net>
> Sent: Friday, May 14, 2010 7:48 AM
> To: "fm" <discuss at lists.flossmanuals.net>
> Subject: [FM Discuss] php challenge... Plugins
> 
> > hi
> >
> > so...recently I've been working on the new scripts for publishing
> > content created in Booki.
> >
> > Its pretty basic and based on an idea of Dougs to have a script that can
> > fetch templated html content from Booki for storing on a local server.
> > In this way Booki and Objavi dont store/host published content but
> > instead books (talking about templated html versions of booki books) are
> > published under any domain you want...
> >
> > So, after some pondering and discussions with Aco (Doug is away on
> > holidays at the moment) the idea has grown from a 'book fetching' script
> > to a script that can manage everything we do now at FM...'publishing'
> > static html, linking to epubs and pdf in the html, listing books per
> > category, remixing, blogging...
> >
> > im writing it in php with (if possible) no additional libs and no
> > database. I want to make it as simple to install and use as possible. So
> > far I have stage one working which is the basic script that fetches a
> > book from Booki )actually it gets it from Objavi, wraps it up in a
> > template and stores it locally).
> >
> > Eventually I want to extend this as mentioned above but...i want to
> > think a little about the structure of the code before plunging into
> > it...and this is where I need some help from any keen php-ers out
> > there...
> >
> > I'm going to tackle all the remix stuff etc later (please feel free to
> > help!) but focus now solely on the basic fetching script...and to this I
> > would like to take things in a slightly new direction...
> >
> > At the moment FM publishes manuals as static html with a basic template
> > wrapped around it. We have no capacity for any interesting methods for
> > adding extra functionality to the manuals. By interesting functionality
> > I mean:
> > * adding comments/forums features
> > * generating anchors on headings
> > * adding tests/quizs (one of Andys requests)
> >
> > so instead of building this into Booki/Objavi it might be more
> > appropriate to build this into the publishing script I'm working on
> > now...this would mean that when you install the script on a server and
> > fetch a book you could decide to also include a comment feature, anchors
> > etc......these features would be added at publish (fetch) time and added
> > to the fetched static content on your server.
> >
> > So...I want to add these features as plugins and design a simple method
> > for creating new plugins to extend the functionality of books...i dont
> > know what else could be added but there must be many many other ideas..
> >
> > so...is there anyone out there that could help me design the basic
> > architecture for the plugins? i really dont know the best way to do it
> > and would appreciate any help/advice...
> >
> >
> > adam
> >
> >
> > -- 
> > Adam Hyde
> > Founder FLOSS Manuals
> > German mobile : + 49 177 4935122
> > Email : adam at flossmanuals.net
> > irc: irc.freenode.net #flossmanuals
> >
> > "Free manuals for free software"
> > http://www.flossmanuals.net/about
> >
> >
> > _______________________________________________
> > Discuss mailing list
> > Discuss at lists.flossmanuals.net
> > http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net 
> 
> _______________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net





More information about the Discuss mailing list