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:
- Add a new varchar(16) field into the legal_accept table named 'sid' or some such. Default value: the empty string.
- Add an optional argument $sid to the function legal_get_conditions(). Default value: the empty string.
- 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
Comment #1
chaldar commentedOops! It should be the legal_conditions table, of course. Sorry about that.
Comment #2
pjbarrie commentedIs 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.
Comment #3
robert castelo commentedI'm not currently working on this. Anyone else?
Comment #4
Eugene Dubois commentedI am very interested too... This is exactly what I need for a new website...
Comment #5
j.patrick1982 commentedi am in need of this too please if any 1 had this plz tell me
arora.abhay@gmail.com
Comment #6
angelmax commentedHi,
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
Comment #7
kenorb commentedComment #8
rokrYes 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.
Comment #9
rokrComment #10
kenorb commentedI'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.
Comment #11
JayShoe commentedHello,
I'm interested in this functionality.
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
Comment #12
rafuel92 commentedHi 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
Comment #13
hoporr commentedThe 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?
Comment #14
robert castelo commented