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

dww’s picture

Version: 5.x-2.x-dev » 5.x-2.1
Status: Active » Closed (duplicate)

We 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. ;)

daftie’s picture

Version: 5.x-2.1 » 5.x-2.x-dev
Status: Closed (duplicate) » Active

wow 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.

daftie’s picture

lol awesome, sorry about this then.

daftie’s picture

Status: Active » Closed (duplicate)