Can we allow multiple sets of T&Cs? Then different T&Cs can be shown to different categories of registrants. This is important when there are separate registration pages for different categories of users (advertisers, for example, as opposed to normal users).

It should be possible to support this quite easily without breaking existing installations. My initial thoughts:

  1. Add a new varchar(16) field into the legal_accept table named 'sid' or some such. Default value: the empty string.
  2. Add an optional argument $sid to the function legal_get_conditions(). Default value: the empty string.
  3. Add a where clause to the SQL query in legal_get_conditions() to compare the sid field in the table with the argument $sid while picking out the latest version of T&C.

The rest can probably be managed by hook_form_alter and hook_user of a module interested in multiple sets of T&Cs.

Comments

chaldar’s picture

Add a new varchar(16) field into the legal_accept table named 'sid' or some such. Default value: the empty string.

Oops! It should be the legal_conditions table, of course. Sorry about that.

pjbarrie’s picture

Is this feature on the Horizon? I have an immediate need and wondered if it was going to be available soon before I attempt to make my on modifications.

robert castelo’s picture

I'm not currently working on this. Anyone else?

Eugene Dubois’s picture

I am very interested too... This is exactly what I need for a new website...

j.patrick1982’s picture

i am in need of this too please if any 1 had this plz tell me
arora.abhay@gmail.com

angelmax’s picture

Hi,
I have a similar need: can we have multiple boxes with different texts in the login page?

I am using drupal 6.x and Legal 6.x

Thanks

kenorb’s picture

Version: 5.x-1.3 » 6.x-8.x-dev
rokr’s picture

Yes there is a need for that. At least to record the acceptance of more than one "terms and conditions" where just displaying "additional checkboxes" is not enough.

rokr’s picture

Title: Alternative sets of T&Cs for multiple registration pages » Alternative/multiple sets of Terms & Conditions
kenorb’s picture

I've done some hacks and improvements (controlled by the extra settings) and I've separated it into http://drupal.org/project/legal_extras
If somebody has some idea about new options and some hook_form_alter/hook_user, let me know, possibly some of the settings are too specific to be in Legal module.

JayShoe’s picture

Hello,

I'm interested in this functionality.

  • Allow user to create any number of TOS documents.
  • Assign a role to each TOS so that users of that role will be required to sign document.

There has been some discussion about this on other posts such as "why not TOC as node" and "roles based legal".

Does anyone know what the status is or if there is a work around?

Jay

rafuel92’s picture

Hi all, congratulations for the module, i need multiple terms and conditions in drupal 7, does a solution already exists? or i need to customize the module? thanks in advice

hoporr’s picture

Issue summary: View changes

The approach mentioned in the original ticket entry is actually pretty good, and I'd say it is the correct approach.

I refer to it in this ticket here https://drupal.org/comment/8203257#comment-8203257 in another thread that has one of the longer discussions on a related part to this problem.

Maybe the discussion can be continued there?

robert castelo’s picture

Status: Active » Closed (outdated)