Gallery Block Module development: Usable permissions control
nipungupta
Joined: 2010-11-28
Posts: 3 |
Posted: Fri, 2010-12-03 17:09 | |||
Dear Gallery-contribs, I am trying to develop a plug-in like ImageBlock (courtesy Mr. Alan Harder, Cryptographite, etc.), which shows your access-control permissions and latest news feed in the LeftHand Sidebar for Gallery2. I have been involved in this long before Gallery3 was released, that's why I have chosen Gallery2. I would really appreciate if someone can throw light on how to structure my module in order to develop it in an efficient manner. I was thinking of doing it the same way as ImageBlock, but it turns out to be pretty complicated and impossible to do. I have already developed a new table for the entries I require. But still I am very confused and need do complete this asap. My idea of the plug-in is attached in the image. Please concentrate on the LeftHand sidebar below View Slideshow (Fullscreen). Waiting eagerly for a reply, Nipun Gupta Access control and ImageBlock, that's it.
|
||||
Posts: 8339
Gallery already puts a link in the sidebar to edit permissions if the current user has permission to do so.
What good would it be to broadcast that info to those without?
As for the latest news, do you already have the code to format this block?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 3
Hi suprsidr,
Thanks a lot for your prompt reply. The link makes them realize that here are the permission, and they "can" edit them. Putting the link here for Editing Permissions is a very small part of what I want to achieve. All the users who own an account on any gallery server can manage their access permissions better using this. It shows the latest news feed (latest changes etc made to the albums owned by the user), most viewed album, and random permissions (the same way imageblock shows random image). An ambitious initiative would be to make the Edit Permissions page a lot more usable and related to the context of these random permissions shown in the sidebar.
No, I don't have code to format this block since I don't really understand how the modules with blocks work, no tutorial is available for the same. I really need your help, if possible. Thanks again!
Nipun Gupta
Carnegie Mellon
Access control and ImageBlock, that's it.
Posts: 8339
well, I'm not going to comment on the permissions as I think its a flightless bird.
But my mediaBlock has sample code for retrieving latest items.
I actually use it to format a small "Latest Media Items" block on the bottom of my front page.
But formatting the returned info is simple.
and there are many ways to insert the info into the sidebar w/out the weight of a full fledged module.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2