On Tue, Mar 02, 2004 at 08:06:19AM -0500, Matthew Leingang wrote:
> Hi guys,
>
> I've installed two sites lately based on the 0.8 alpha distro. It seems to
> work well. Some bugs I've found, however, are:
>
> 1. Extra question marks in the config_setup.php script URLs so that after
> completing a step, the script starts from the beginning (I'm guessing this
> one was caught already.)
>
Haven't seen this.
> 2. Backend.php doesn't work because it doesn't load the right classes. I'm
> in the middle of tracing through the code to see which classes are
> necessary.
>
thanks.
> In composing this e-mail I've answered the second question, too: I found
> that all you need are the four lines from modules/story/index.php:
>
> AddClassRequirement("story_base",$_PSL['moduledir'] .
> "/story/Story_base.class");
> AddClassRequirement("story","story_base");
> AddCl
> assRequirement("story",$_PSL['moduledir'] .
> "/story/Story.class");
> AddClassRequirement("story_plugin_i",$_PSL['moduledir
> '] ."/". $_PSL['module']['Story'] ."/Story_plugin_i.class");
>
>
>
> Now that that's done, I'm interested in adding a photo album module, perhaps
> based on http://photoframe.sourceforge.net/. I think it's a good candidate
> because it's a single file with a lot of functions and variables to deliver
> its content. So configuration could be handed over easily from a block
> options menu, etc.
>
> But *how in fact do I add a module?* I'm still a little scared by the
> prospect, since I haven't contributed since the pre-"everything is a block"
> days. :-)
>
Short answer - Just return all output like "return $content". Don't
display any output directly.
index.php for the basic module public access. Ideally the only one.
Blocks should be another php file similar to index.php and called via a
module block option. This way we don't have to register new block types
for each new module.
admin.php - any needed administration functions - This is the basic
layout for internal modules.
also see:
http://sourceforge.net/mailarchive/forum.php?thread_id=3940749&forum_id=153
Joe
> --Matt
>
> --
> Matthew Leingang
> Preceptor in Mathematics, Harvard University
> leingang-c2Vpf+SSmYbWs/AcZQh2Cw@xxxxxxxxxxxxxxxx
>
>
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Phpslash-devel mailing list
> Phpslash-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpslash-devel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|