Hi Adib,
On 2/9/07, Adib Saikali <[EMAIL PROTECTED]> wrote:
I have added some code to roller which allows a theme author to randomly
select an image from a sub directory of the resources folder. For example
you can add the following code to a theme and use the
$ImageRandomizer.getImage("/a") to pickup an image randomly selected from
directory a under
${uploads.dir}/$bloghandle/a
That's a nice feature. I've always wanted something like that.
You can see an example of the code running on www.sereneambition.com , the
flickr style badge on the right hand side is picking random images form the
roller uploads directory rather than the flickr site.
I have no idea what extension mechanism the roller developers have in mind
for people that need to add new features to roller. Is there a plug-in
framework? I only had about 10 hours to get this code written, working and
deployed so I did not have time to dig deeply into roller.
I hope you find this code useful to add to the next release of roller. To
make this code contribution useful and usable by users the upload feature on
the admin page should be enhanced to allow the user to specify where the
uploaded file should be placed in the resources directory. In the mean time
I am using scp to load up new images.
There is no formal "plugin framework" at this point, but creating a
model as you have is the right way to make your code available to
Roller users. Would you be interested in adding your code to the
Rolelr Support project on Java.Net? That's where we make additional
plugins and themes available.
I have needs for a few more features that I am willing to add and contribute
back to roller community unless some one has already developed them and is
willing to share with me. The main thing I need next is a polling feature
kind of like what you see Slashdot. Has this already been developed?
I don't know of any polling component, but I have heard requests for one.
- Dave