Active
Project:
Lost & found issues
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2007 at 22:44 UTC
Updated:
8 Mar 2007 at 22:09 UTC
Jump to comment: Most recent
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
Comment #1
lapurd commentedHi, not sure what you mean. I'm not familiar with mediawiki or it's status bar. Could you explain this a bit more?
Comment #2
harriska2 commentedSure, 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.
Comment #3
Ryanbach commentedhttp://fundraising.wikimedia.org/
Comment #4
harriska2 commentedRyanbach, are you interested in how it was done also? I suspect it needed some sort of graphics package.
Comment #5
Ryanbach commentedYes I am interested, it would be nice to have as a block IMHO.
Comment #6
lapurd commentedHi, 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.
Comment #7
harriska2 commentedMost excellent. Thanks a ton.
Comment #8
Ryanbach commented>>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.