First off, this is a great module, much appreciated.
Here's a feature I'm going to hack together for my purposes for now but I think should be properly implemented in signup.
It involves a new field called "Registration Limit" in create/edit node interfaces.
Ideally, it would be a textbox where admins enter a number and when registered user count hits that number, it closes the registration for that node automatically.
Since the amount of registered users per node is already being counted to display "0 individuals signed up", one can combine that value and the Close Signups feature to implement this.
Something like:
$registered_user_limit = something like 45; // some textbox/integer field defined in node/add & node/edit
$registered_user_count = db_num_rows(db_query('SELECT * FROM {signup} WHERE nid = %d'));
db_query('UPDATE {signup} SET completed = 1 WHERE nid = %d AND $registered_user_count <= $registered_user_limit');
Thanks again for your time!
Comments
Comment #1
dwwWe already have signup registration limits. ;) http://drupal.org/node/32482
See the CHANGELOG and scroll down to the 5.x-2.1 section.
p.s. it's actually much more complicated than what you propose, but thankfully it's already done and done right, so you don't have to worry about it. ;)
Comment #2
daftie commentedwow there's already a "close_signup_limit" field which will make everything easier.
btw, I'm sorry if this is in dev, couldn't find anything on it.
Comment #3
daftie commentedlol awesome, sorry about this then.
Comment #4
daftie commented