Is it possible to add a status bar (say, as a block) to this module? I'm thinking of the one that mediawiki had.

Comments

lapurd’s picture

Hi, not sure what you mean. I'm not familiar with mediawiki or it's status bar. Could you explain this a bit more?

harriska2’s picture

Sure, at the top of wikipedia & wikibooks was a horizontal status bar indicating the fraction of donations that have been garnered compared to their goal. It would also show total amount collected to date. I suspect this was used in conjunction with this particular program. I'd give you a screen shot but they don't have it anymore as their fundraising period is over. I take it you converted it to a module for drupal? If so, wow. Nice.

Ryanbach’s picture

harriska2’s picture

Ryanbach, are you interested in how it was done also? I suspect it needed some sort of graphics package.

Ryanbach’s picture

Yes I am interested, it would be nice to have as a block IMHO.

lapurd’s picture

Hi, it looks like this should be really added! I'll make this the first thing I update about this module following these requests! Since this feature will add a dependency upon the gd library for drawing, I'll make sure it will also support servers which do not have the gd library installed. Oh and harriska2, this donations module was purely created for donorge.org which I did as well. Hope that clears up that part.

I should note that the current module actually already partly supports what you are looking for trough donation goals. It is possible to setup a donation goal in Donorge which makes it an item which reaches for a target and then in this module you can also see the percentage completed etc. Although both the part on donorge.org itself and in this module is not really user friendly yet.

Right now I am in the middle of moving Donorge to a new codebase which is taking it's time and makes implementing new features such as this more troublesome as it largely relates to the older codebase or moving targets, but I'll see what can be done. For sure this feature will be implemented at some point.

As for how such a progress bar is drawn, it can be done in several ways. The most practical way on general Drupal supporting servers is trough the GD Graphics Library which often is supported by default. The latest Drupal 5 also uses it for it's custom theming coloring, but I'm not sure about that. Here is more info on that library if you need it: http://www.libgd.org/Main_Page

As for not standing still completely, the status bar itself could already be created and optimized without having the rest ready yet. So perhaps that is something which someone could already offer help with if they wanted to. There would be 2 possible bars, 1 related to a money goal and another related to collection time. The money bar would have a goal amount and could index against that and print text on the bar as well. The time bar would display collection time and/or target date etc. Which bars are shown would be up to the admin or trough some other method perhaps.

harriska2’s picture

Most excellent. Thanks a ton.

Ryanbach’s picture

>>Right now I am in the middle of moving Donorge to a new codebase.

I understand, please do that first and when that is done go ahead and work on this next, etc. I understand where you are coming from and doing it in the order you want will save you, me and everyone time.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 16484)