[3.2][RC] Privacy Policy

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
david63
Jr. Extension Validator
Posts: 14898
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Privacy Policy

Post by david63 » Wed May 23, 2018 2:53 pm

@hurghanico - Are you OK at editing code?

If so openprivacypolicy/core/privacypolicy_lang.php
Find (should be around line 136

Code: Select all

public function get_text($lang_name, $lang_id, $validate = true)
	{
		if ($validate)
		{
			// Is the user a Guest? If so then we need to default
		    if ($this->user->data['user_id'] == ANONYMOUS)
			{
				$lang_valid = false;
			}
Replace with

Code: Select all

public function get_text($lang_name, $lang_id, $validate = true)
	{
		if ($validate)
		{
			// Is the user a Guest? If so then we need to default
		    if ($this->user->data['user_id'] == ANONYMOUS)
			{
				$lang_valid = true;
			}
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
hurghanico
Registered User
Posts: 49
Joined: Mon May 07, 2018 10:59 am

Re: [3.2][RC] Privacy Policy

Post by hurghanico » Wed May 23, 2018 3:10 pm

david63 wrote:
Wed May 23, 2018 2:53 pm
@hurghanico - Are you OK at editing code?

If so openprivacypolicy/core/privacypolicy_lang.php
Find (should be around line 136

Code: Select all

public function get_text($lang_name, $lang_id, $validate = true)
	{
		if ($validate)
		{
			// Is the user a Guest? If so then we need to default
		    if ($this->user->data['user_id'] == ANONYMOUS)
			{
				$lang_valid = false;
			}
Replace with

Code: Select all

public function get_text($lang_name, $lang_id, $validate = true)
	{
		if ($validate)
		{
			// Is the user a Guest? If so then we need to default
		    if ($this->user->data['user_id'] == ANONYMOUS)
			{
				$lang_valid = true;
			}
Fantastic!.. it works!!.. I changed "false" to "true" and saved the file.. that's the solution!

Thanks a lot for your time! :)

User avatar
david63
Jr. Extension Validator
Posts: 14898
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Privacy Policy

Post by david63 » Wed May 23, 2018 3:23 pm

Thanks
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

Havym
Registered User
Posts: 46
Joined: Sun Jan 29, 2017 3:50 pm
Location: Netherlands
Name: Marco

Re: [3.2][RC] Privacy Policy

Post by Havym » Wed May 23, 2018 7:09 pm

When trying to download the csv file in your own profile i get an error.
Het verstuurde formulier is ongeldig. Probeer het nogmaals te versturen.
The submitted form is invalid. Try sending it again.

I'm using xammp

User avatar
david63
Jr. Extension Validator
Posts: 14898
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Privacy Policy

Post by david63 » Wed May 23, 2018 8:30 pm

Havym wrote:
Wed May 23, 2018 7:09 pm
When trying to download the csv file in your own profile i get an error.
Het verstuurde formulier is ongeldig. Probeer het nogmaals te versturen.
The submitted form is invalid. Try sending it again.

I'm using xammp
The most common reason for that error message is the time between opening the page and performing the download.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
tlem
Registered User
Posts: 76
Joined: Sun Jan 24, 2016 4:47 pm
Location: France
Name: Thierry
Contact:

Re: [3.2][RC] Privacy Policy

Post by tlem » Wed May 23, 2018 8:58 pm

Good evening David
david63 wrote:
Wed May 23, 2018 7:13 am
I do not believe that there is a bug with this.
I do not know what other users think, but I think there is a big logic problem!

If I take the capture from hurghanico message :
Image

Since in the comboBox the English language is selected, where is the logic to display all the "files" of policy?
Imagine an administrator who needs to have policies translated into 5 or more languages ... This would make him a list of 20 lines. ^^
Logic wants the choice of combobox to filter the list in relation to the selected language.

david63 wrote:
Wed May 23, 2018 7:13 am
But this also has the advantage that you can install this extension without having a language file translation
It can also be a disadvantage
david63 wrote:
Wed May 23, 2018 7:13 am
and you can have the policy files translatable in your language.
I'll just point out that installing an extension requires a minimum of knowledge. Moreover if you want this extension in your language, you must also add the translated files to the right places or translate them yourself! The technique needed for this kind of thing is no more advanced than having a "text" file with BBCode formatting as displayed in the editing interface. But this is only my opinion. You are the devellopper and as such it is normal that you decide how you develop your extension.
david63 wrote:
Wed May 23, 2018 7:13 am
There is no right or wrong/better or worse ways to do this as both have their advantages and disadvantages. As I said before I had to make a decision on which way to go and one of the main underlying factors was the constraints with extensions about editing files which would be necessary if language files were used.
As a participant and probably future user, I shared my opinion and my logic. I will survive your choices. :lol:

Anyway, thank you very much for your great work. If one day you go through Bordeaux, it is with pleasure that I welcome you and share a good bottle of wine with you.

Edit :
I'm probably going to be an idiot, but how does one display the image directly in the message? I tried different image hosting sites and I used the IMG tag, but it does not work.
That's what I get if I do [ img]https://imgur.com/i6A6Yvj[ /img] : Image
Last edited by tlem on Wed May 23, 2018 9:24 pm, edited 2 times in total.

User avatar
Acorn
Registered User
Posts: 392
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

Re: [3.2][RC] Privacy Policy

Post by Acorn » Wed May 23, 2018 9:17 pm

You need the link to the actual image (right click on the image and choose 'view image', then copy the url from that) and put the img tags around that.

Image
Getting braver all the time. :D

User avatar
tlem
Registered User
Posts: 76
Joined: Sun Jan 24, 2016 4:47 pm
Location: France
Name: Thierry
Contact:

Re: [3.2][RC] Privacy Policy

Post by tlem » Wed May 23, 2018 9:23 pm

Tank you Acorn.
It was simply missing the file extension (that the site i.imgur.com does not generate in its link)

Havym
Registered User
Posts: 46
Joined: Sun Jan 29, 2017 3:50 pm
Location: Netherlands
Name: Marco

Re: [3.2][RC] Privacy Policy

Post by Havym » Wed May 23, 2018 10:21 pm

david63 wrote:
Wed May 23, 2018 8:30 pm
The most common reason for that error message is the time between opening the page and performing the download.
Well i waited a minute on the profile page before requesting the download but still this error. How can i fix it?

User avatar
hurghanico
Registered User
Posts: 49
Joined: Mon May 07, 2018 10:59 am

Re: [3.2][RC] Privacy Policy

Post by hurghanico » Wed May 23, 2018 10:28 pm

tlem wrote:
Wed May 23, 2018 9:23 pm
Tank you Acorn.
It was simply missing the file extension (that the site i.imgur.com does not generate in its link)
with imgur.com instead of using the "Image link" you can choose the already made BBcode, or the "Direct link" (and then add the img tags around it), both options include the image file extension..

Image

Lech-u
Registered User
Posts: 14
Joined: Fri Dec 30, 2016 6:50 am

Re: [3.2][RC] Privacy Policy

Post by Lech-u » Thu May 24, 2018 6:06 am

David,
I have a problem.
Before I used version [RC] 2.1.0-rc2. Everything was OK.
Now I changed into version [RC] 2.1.0-rc5 and on ACP is not possible to enable this version.
It is mistake.

What wrong I did?

User avatar
david63
Jr. Extension Validator
Posts: 14898
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Privacy Policy

Post by david63 » Thu May 24, 2018 8:34 am

Havym wrote:
Wed May 23, 2018 10:21 pm
david63 wrote:
Wed May 23, 2018 8:30 pm
The most common reason for that error message is the time between opening the page and performing the download.
Well i waited a minute on the profile page before requesting the download but still this error. How can i fix it?
It is a bug, that I introduced, that is fixed in the next release
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

bill1980
Registered User
Posts: 127
Joined: Wed Jan 25, 2012 6:27 pm

Re: [3.2][RC] Privacy Policy

Post by bill1980 » Thu May 24, 2018 5:22 pm

DELETED

ammar rauf
Registered User
Posts: 6
Joined: Thu May 24, 2018 7:11 pm

Re: [3.2][RC] Privacy Policy

Post by ammar rauf » Thu May 24, 2018 7:27 pm

how can i active david63-privacypolicy-3.2 extension , i download the extension and unzip it to ext/david63/privacypolicy, but i can't find in (acp) Extensions Manager to enable it, please help

janus_zonstraal
Registered User
Posts: 2690
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.2][RC] Privacy Policy

Post by janus_zonstraal » Thu May 24, 2018 7:39 pm

Can you place a screenprint from your ftp so we can check the directories?
Sorry! My English is bat ;) !!!

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: fagbutlil, nextgen and 29 guests