Announcement

#1 2011-09-05 16:31:55

Joergen
Guest

How to implement a kind of Terms and Conditions confirmation

Hi,

is it possible to implement a confirmation for terms and conditions before user registration?

I want users to confirm the terms and conditions before registration to be a bit legaly correct.

I could not find any thread for this. Is there a possibility?


Thanks
Joergen

 

#2 2011-09-06 17:31:41

Joergen
Guest

Re: How to implement a kind of Terms and Conditions confirmation

Hi,

nobody an idea how to add  terms and conditions before registration?

Any hint would be welcomed!

Joergen

 

#3 2011-09-06 21:38:47

flop25
Piwigo Team
2006-07-06
7037

Re: How to implement a kind of Terms and Conditions confirmation

Hello
please don't forget we're voluntaries, not paid for helping, just satisfied when someone is satisfied too.

So for your request, you need to create a custom theme with register.tpl, or a Template Extension for register.tpl : see the doc and this forum for further info
You can also create an "Legal Mention" page with additional page

Last edited by flop25 (2011-09-06 22:07:20)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2011-09-06 22:06:00

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: How to implement a kind of Terms and Conditions confirmation

flop25 wrote:

So for your request, I need to create a custom theme with register.tpl, or a Template Extension for register.tpl : see the doc and this forum for further info
You can also create an "Legal Mention" page with additional page

It seems to be a bit complicated in my opinion.

1) create a plugin "Terms Agreement" that adds a mandatory checkbox on register.tpl + custom label for the checkbox
2) create a "Terms Of Use" page with plugin Additional Pages
3) force registration with $conf['guest_access'] = false; in your local configuration with LocalFiles Editor
4) in the plugin "Terms Agreement", set the label to I agree with <a target="_blank" href="./pages/terms_of_use">Terms of use</a>

Of course, creating the "Terms Agreement" plugin is not "easy".

In a first step, I would not even have a checkbox. I would simply have a sentence before the register button "by submitting this form, I agree with the Terms of use. Depending on the theme you want to use, if jQuery is already loaded, you can add a small piece of jQuery to insert this sentence dynamically, with no plugin required.

Offline

 

#5 2011-09-06 22:12:39

flop25
Piwigo Team
2006-07-06
7037

Re: How to implement a kind of Terms and Conditions confirmation

Joergen, my solution only requires to type text on register.tpl, with something like "by submitting this form, I agree with the Terms of use." But you do as you wish
Copy/paste register.tpl from themes/default/template in /template-extension. Add you text in that new  register.tpl . Go to the Template page and associate "register.tpl" with "register.tpl"
that's all folks ^^

Plg solution is more elegant, from a developer view

Last edited by flop25 (2011-09-06 22:13:20)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2011-09-06 22:21:11

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: How to implement a kind of Terms and Conditions confirmation

flop25 wrote:

Plg solution is more elegant, from a developer view

Yes, you're right.

The problem with the template-extension is that there is no chance you update it when register.tpl will be modified (for security reason for example) and it will be hard to find the origin of the bug.

But on a short term basis, template-extensions are good.

Offline

 

#7 2011-09-06 22:29:03

Joergen
Guest

Re: How to implement a kind of Terms and Conditions confirmation

Sorry if my second question sounds demanding.

I appreciated the support that is given here, I come from the German Forum because my questions seems to be very special.
I wounder if this issue was not ask before and many Web sites work without this.
Anyway for me it would be enough to add a text, telling something like "If you register you agree to the Terms ..."
This should cover the legal requirement I need.
(I prepare the Album Site for an adult education centre called VHS in Germany, also as an volunteer)

I think the checkbox solution would be the perfect way, but I am not able to create a plugin (not yet) ;-)
Adding text to the register.tpl sounds much easier for me.

I will try this and feeback my result.

Thanks for help

 

#8 2011-09-07 00:15:40

Joergen
Guest

Re: How to implement a kind of Terms and Conditions confirmation

Hi,

the solution seems to work, thanks for the help.

I have added a text line with a link to the Terms document.

I had to use the template from the stripped theme, the mentioned register.tpl from themes/default/template did not work.

Here a link to the German Forum with a sample pic (I can not add pictures here).

http://de.piwigo.org/forum/viewtopic.php?pid=872#p872

Thread #4


Good night

 

#9 2011-09-07 15:38:02

mol
Piwigo Team Germany
germany
2010-05-26
108

Re: How to implement a kind of Terms and Conditions confirmation

a solution with the Plugin "UserAdvManager" is also possible (same thread in the german forum) :-)

Offline

 

#10 2013-03-21 20:45:56

obucek
Member
2013-03-10
13

Re: How to implement a kind of Terms and Conditions confirmation

Hello!

How can I add checkbox for Terms and Conditions confirmation that it is possible to check whether a check box has been checked or not?

Thx for answer

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact