Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Flag Signup enables users to signup to content via the flag module, e.g. to participate in workshops, signup for subscriptions, or any other case where a limit is required.

Features

  • Create a new flag type "signup" available under /admin/structure/flags
  • Add a signup limit per flag created
  • Add a "booked message" to be displayed instead of flag link when limit is reached or exceeded.

What does it do?

Flag Signup adds a new flag type ("signup"), which allows for a configurable limit of sign-ups to content (only nodes are suppported).

Once a limit is reached, the flag link is disabled and displays a configurable Booked Message such as "Fully Booked". Any attempt to flag the item anyway, will result in a relevant error message.

What does it not do?

Flag Signup is deliberately kept at a minimum to not interfere with the options the Flag module offers, such as:

  • Views integration, e.g. display a list of nodes a user has signed-up to
  • Rules integration, e.g. confirm registration with an email to the user.

Options

Because Flag Signup uses the Flag module as its engine, there are all the options available that are available for Flag:

  • Flag Coolnote can add a form to a signup
  • A confirmation page can be enabled like for any other flag
  • Views is supported the same way as any other flag
  • Rules support
  • etc.

Configuration

  • Create a new flag under /admin/structure/flags/add
  • Give it a name and select "Signup" as flag type
  • Set all options as for any other flag, except there is no "Global" option because a signup will always be user specific. Hence, also no anonymous signup.
  • Under "Signup Options":
    • Enable "Limit Number of Signups" - if not enabled, no limit check will be executed and flag will behave like any other flag
    • Set either Limit 1 or Limit 2. Flag Signup accepts tokens with these limits so a per-node limit is feasible. There are two limits to allow a scenario where a per-node limit is given yet a global limit is to be enforced. Tokens can link to fields ([node:]) and will only work with integer fields.
    • Set a "Booked Message": this message will be displayed instead of the "Flag This" link once the limit is reached.

Required

Not required but useful are Views to manage sign-ups and Rules to manage the sign-up process. See the Flag module for more information on how to integrate.

Project information

  • Created by silberling on , updated