Custom registration agreement

Custom terms on login page and custom privacy - Custom registration agreement

Custom terms on login page and custom privacy

by tojag » Wed Feb 20, 2019 11:12 am

It is very useful extension but what with default terms on login page?
I see the unchanged link to ../ucp.php?mode=terms and old, default conditions appears instead own custom.
So, user can be confused - Which are the real conditions? :?
Regards
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by rubencm » Wed Feb 20, 2019 1:34 pm

There is no event to modify that
User avatar
rubencm
Development Team Member
Development Team Member
Posts: 89
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain
Contact:

Re: Custom terms on login page and custom privacy

by tojag » Wed Feb 20, 2019 1:37 pm

Is there no way to change value of $lang->TERMS_OF_USE_CONTENT before display it?
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by rubencm » Wed Feb 20, 2019 2:16 pm

Probably not (for now)
User avatar
rubencm
Development Team Member
Development Team Member
Posts: 89
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain
Contact:

Re: Custom terms on login page and custom privacy

by tojag » Wed Feb 20, 2019 4:14 pm

It is a pity.
Is there possibility to do new version of this extension with custom privacy instead the default?
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by rubencm » Wed Feb 20, 2019 4:31 pm

Yes, probably yes
User avatar
rubencm
Development Team Member
Development Team Member
Posts: 89
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain
Contact:

Re: Custom terms on login page and custom privacy

by tojag » Wed Feb 20, 2019 10:09 pm

I have analyzed a bit and what do You think about this event:
@event core.page_header_after
* Execute code and/or overwrite _common_ template variables after they have been assigned.


This is in functions.php.

Just a bit before this event, the template variables are assigned.
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),


When I assign something to U_TERMS_USE or U_PRIVACY in this event, it changing global in template. On the login page too.
Try this, if You would.
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by rubencm » Wed Feb 20, 2019 10:38 pm

That is to change the links, you can create aditional pages and redirect users there when they click on the links
User avatar
rubencm
Development Team Member
Development Team Member
Posts: 89
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain
Contact:

Re: Custom terms on login page and custom privacy

by tojag » Thu Feb 21, 2019 11:45 am

It would be good to create one time the custom agreement text (or privacy) like in Your extension but... to have an access to this text multiple times - on the registration page and on every links to this terms (or privacy). In that case would be possibility to change links to terms and privacy in the @event core.page_header_after.
Can You produce a link (page) to custom terms or is it just a variable containing this text and replacing the original one?
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by tojag » Sun Feb 24, 2019 6:28 pm

I want to change this links on the event login_box_modify_template_data.
So, I have this:

Code: Select all

class main_listener implements EventSubscriberInterface
{
	public static function getSubscribedEvents()
	{
		return array(
			'core.login_box_modify_template_data'	=> 'login_box_modify_template_data',
		);
	}

	public function login_box_modify_template_data($event)
	{
		$login_box_template_data = $event['login_box_template_data'];
		
		$login_box_template_data = array(
			'U_TERMS_USE' => 'https://maindomain.com/rules.html',
			'U_PRIVACY' => 'https://maindomain.com/privacy.html',
		);
		/* early was this but not affected too
		$login_box_template_data['U_TERMS_USE'] = 'https://maindomain.com/rules.html';
		$login_box_template_data['U_PRIVACY'] = 'https://maindomain.com/privacy.html';
		*/

		$event['login_box_template_data'] = $login_box_template_data;
	}
}
I don't know why it doesn't work. What wrong I do?
User avatar
tojag
Registered User
Posts: 408
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Custom terms on login page and custom privacy

by apollodriver » Thu Apr 09, 2020 6:24 pm

good evening dear tojag and rubencm, dear community,

many thanks for raising this topic and discussion these matters in this thread. I am happy - since i just have installed the phpBB and now need to edith the according texts.


we have the following two texts:

- the board’s Privacy Acceptance Policy.-> Privacy acceptance.
- the board’s additional Terms of Use Policy.->Terms of Use Policy.
tojag wrote:I have analyzed a bit and what do You think about this event:
@event core.page_header_after
* Execute code and/or overwrite _common_ template variables after they have been assigned.


This is in functions.php.

Just a bit before this event, the template variables are assigned.
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),


When I assign something to U_TERMS_USE or U_PRIVACY in this event, it changing global in template. On the login page too.
Try this, if You would.
sure thing - i will try this out! i am happy about this idea-exchange here:

by the way - where would you add the following text:


a -legal-notice
b -Disclaimer
c -Liability for contents


what about adding things like this:
As a service provider, we are responsible for our own content on these pages in accordance with § 7 Section 1 of the German Telemedia Act (TMG). According to §§ 8 to 10 TMG, however, we are not obliged as service providers to monitor transmitted or stored third-party information or to investigate circumstances that indicate illegal activity. Obligations to remove or block the use of information in accordance with
general laws remain unaffected by this. However, liability in this respect is only possible from the time of knowledge of a concrete
violation of the law. As soon as we become aware of such violations of the law, we will remove these contents immediately.

Liability for links
Our website contains links to external websites of third parties over whose content we have no influence. Therefore, we cannot take any responsibility for this external content. The respective provider or operator of the pages is always responsible for the contents of the linked pages. The linked pages were checked for possible legal infringements at the time of linking. Illegal contents were not recognizable at the time of linking. However, permanent monitoring of the content of the linked pages is unreasonable without specific indications of a violation of the law. If we become aware of any infringements, we will remove such links immediately.

Copyright
The content and works created by the site operators on these pages are subject to German copyright law. Duplication, editing, distribution and any kind of use outside the limits of copyright law require the written consent of the respective author or creator. Downloads and copies of this site are only permitted for private, non-commercial use. As far as the contents on this site were not created by the operator, the copyrights of third parties are respected. In particular, the contents of third parties are marked as such. Should you nevertheless become aware of a copyright infringement, please inform us accordingly. As soon as we become aware of any such infringements, we will remove such content immediately.

by the way - where would you add the following text: (as a example i take this here: as a template) https://gdpr.eu/privacy-notice/?cn-reloaded=1

GDPR privacy notice template
Here we have provided a sample privacy notice template for a website that collects personal data directly from individuals. It contains all the necessary information in a clean, easy-to-digest format. You should modify the contents depending on whether this is a privacy policy for your website or a privacy notice about some other data processing activity.

Sample: Our Company Privacy Policy
Our Company is part of the Our Company Group which includes Our Company International and Our Company Direct. This privacy policy will explain how our organization uses the personal data we collect from you when you use our website.

Topics:

What data do we collect?
How do we collect your data?
How will we use your data?
How do we store your data?
(( Marketing ))
What are your data protection rights?
What are cookies?
How do we use cookies?
What types of cookies do we use?
How to manage your cookies
Privacy policies of other websites
Changes to our privacy policy
How to contact us
How to contact the appropriate authorities

what do you say...!?


to which of the two parts you would add the above mentioned texts.

- the board’s Privacy Acceptance Policy.-> Privacy acceptance.
- the board’s additional Terms of Use Policy.->Terms of Use Policy.



look forward to hear from you and to your tipps and ideas and the idea-exchange.

yours Apollodriver
for Wordpress-development - i use the Toolset: http://wpgear.org/
User avatar
apollodriver
Registered User
Posts: 106
Joined: Tue Jan 21, 2020 11:35 am
Contact: