Submitted by ramez.hanna on Sun, 13/06/2004 - 07:04.

i created a reservation module (finally) for drupal that works like a poll but i would record who is chose what option so that we can count who is coming to events and who isn't
still needs a little tweaking but should be ready by noon today yippiiieee :D


Alaa's picture
Submitted by Alaa on Sun, 13/06/2004 - 10:16.

since you already hacked poll module, we'll also need a vote module, this will be used for our voting system (to seperate votes from polls and to make calculation of quorum and majority automatic).

can you prototype this?

cheers,
Alaa


http://www.manalaa.net


ramez.hanna's picture
Submitted by ramez.hanna on Sun, 13/06/2004 - 10:59.

ok so give me the specs


the best things in life are free --- so as myself


Alaa's picture
Submitted by Alaa on Sun, 13/06/2004 - 14:18.

spec is the charter I suppose, but we haven't decided the details yet so I just ask for a prototype.

the module should.

  • calculate quorum by querying the number of senior users, admis and moderators (user roles) and display a message saying n many votes needed to reach quorum.
  • keep track of voting period, it should have a counter saying n days left for poll, there should be a way to edit the value of the counter manualy but it should default ot 10 and decrement once every day.
  • it should highlight majority, majority is defined in the charter not as simply the the option with more votes but as the option with more votes that gets at least a minimum number of votes, if an option reaches this minimum is should be highlighted (displayed in different colors)
  • if a poll fails to reach majority or quorum it is an failed poll and needs to be repeated, indicate this somehow after passing half the voting period so people would know before hand.

maybe we could automate the vote repeat process too, dunno, as I said it will be a prototype only there is still much to consider and think about.

cheers,
Alaa


http://www.manalaa.net


Alaa's picture
Submitted by Alaa on Fri, 18/06/2004 - 22:03.

Hey, I tried using reservation module today but it needs a reservation database table.

whats the table structure?? preferably send me the create table SQL statement.

cheers, Alaa


http://www.manalaa.net

"u know i once dream that the office of mobinil is from el 7`os :S and the one that answer u and tell u rasidak a girl called ghada"


ramez.hanna's picture
Submitted by ramez.hanna on Sun, 20/06/2004 - 13:00.

just copy the polls tables
1- create reservation,reservation_choices that are identical to poll,poll_choices
2- alter reservation_choices and add a field "chusers" of type "longinteger"


the best things in life are free --- so as myself


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.