Advertisement:

Author Topic: GDPR Compliance and Osclass script  (Read 13646 times)

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: GDPR Compliance and Osclass script
« Reply #195 on: May 08, 2018, 10:33:51 pm »
Don't know if is that you need, to get user id. If not, sorry.

Code: [Select]
<?php //$user = User::newInstance()->findByPrimaryKey( osc_item_user_id() );
//View::newInstance()->_exportVariableToView('user', $user);
?>


<?php $id osc_item_user_id(); $user User::newInstance()->findByPrimaryKey($id); ?>

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1619
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: GDPR Compliance and Osclass script
« Reply #196 on: May 08, 2018, 10:40:06 pm »
That's it. I found it just before reading your post, but thank you:)

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #197 on: May 08, 2018, 10:53:18 pm »
Okay, here's what I'm going to do.

  • Add the following in my TOS:
  • What data we collect?
  • How do we use the data we collect?
  • Add the following at the registration page:
  • Uncheck "I accept TOS" and hide "Submit" button until user accepts them.
  • Checkbox to show user data (address and contact information) on their public profile.
  • Add the following at the ad post page:
  • Checkbox to show user phone on the ad page.
  • Checkbox to show user email on the ad page (already exists?).
  • Checkbox to show user address on the ad page.
  • Add a modal at first visit:
  • Modal will ask to accept TOS
  • If user accepts, it will save a cookie that it accepted. If not, it will redirect him to some kind of access denied page.
  • Add at user profile:
  • Download user data.
  • Delete user.
  • EVENTUALLY - download user items

That's all that I could remember. Do I need anything else?

Regards.

p206ab

  • Sr. Member
  • ****
  • Posts: 332
Re: GDPR Compliance and Osclass script
« Reply #198 on: May 08, 2018, 10:56:49 pm »
I managed to disable all cookies apart from necessary ones.
It's quite easy, as European cookie law plugin by Conejo has this function:
Code: [Select]
if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") {
Just install this plugin, wrap the if sentence around analytics, pixel, adsense, addthis and whatever makes cookies on your website and all cookies will be disabled if you choose to do so.

Although the law requires for this to be changed easily, so I must still figure it out how to make a link for this notification window to reappear on demand to change the consent.
« Last Edit: May 08, 2018, 10:59:28 pm by p206ab »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1619
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: GDPR Compliance and Osclass script
« Reply #199 on: May 08, 2018, 10:57:41 pm »
Add a modal at first visit:
Modal will ask to accept TOS
If user accepts, it will save a cookie that it accepted. If not, it will redirect him to some kind of access denied page.

You will loose seo if you do that.... the session cookie is "accepted" .... or nor, but lets say it is if the users are not posting comments or items(if you allow them to do that without registration).

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #200 on: May 08, 2018, 10:59:50 pm »
Add a modal at first visit:
Modal will ask to accept TOS
If user accepts, it will save a cookie that it accepted. If not, it will redirect him to some kind of access denied page.

You will loose seo if you do that.... the session cookie is "accepted" .... or nor, but lets say it is if the users are not posting comments or items(if you allow them to do that without registration).

Well, users can't comment or post ads without logging in. I guess I could add that modal only for existing users (if they are logged in). That should not affect SEO.

Regards.

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #201 on: May 08, 2018, 11:04:03 pm »
I managed to disable all cookies apart from necessary ones.
It's quite easy, as European cookie law plugin by Conejo has this function:
Code: [Select]
if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") {
Just install this plugin, wrap the if sentence around analytics, pixel, adsense, addthis and whatever makes cookies on your website and all cookies will be disabled if you choose to do so.

Although the law requires for this to be changed easily, so I must still figure it out how to make a link for this notification window to reappear on demand to change the consent.

Is this the plugin you are talking about: https://market.osclass.org/plugins/analytics/european-cookie-law_85?

Regards.

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: GDPR Compliance and Osclass script
« Reply #202 on: May 08, 2018, 11:06:00 pm »
Okay, here's what I'm going to do.

  • Add the following in my TOS:
  • What data we collect?
  • How do we use the data we collect?
  • Add the following at the registration page:
  • Uncheck "I accept TOS" and hide "Submit" button until user accepts them.
  • Checkbox to show user data (address and contact information) on their public profile.
  • Add the following at the ad post page:
  • Checkbox to show user phone on the ad page.
  • Checkbox to show user email on the ad page (already exists?).
  • Checkbox to show user address on the ad page.
  • Add a modal at first visit:
  • Modal will ask to accept TOS
  • If user accepts, it will save a cookie that it accepted. If not, it will redirect him to some kind of access denied page.
  • Add at user profile:
  • Download user data.
  • Delete user.
  • EVENTUALLY - download user items

That's all that I could remember. Do I need anything else?

Regards.

Just for curiosity, why you needed get number of views? I meant, related with GDPR. That data information need be exported too by user including inside of file downloaded?

So, all data, it will need be really all data related with items published too. That's crazy.

After read your last post with your list...

I don't like cookies, and users avoid them too. Maybe it can be done by session values without cookies, and after post a item delete that variable sessions, or after register, etc.

Yes, a checkbox to display email already exists to non registered users, but on item post form, and not on profile settings if I'm not wrong.

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #203 on: May 08, 2018, 11:11:05 pm »
I asked nothing about the views, that was @marius-ciclistu. ;)

About the cookies, only registered users can post ads so I could store a value that will say that they accepted the terms of service in the database. About the checkbox values, I will save them using a attributes plugin.

Regards-

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1619
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: GDPR Compliance and Osclass script
« Reply #204 on: May 08, 2018, 11:11:35 pm »
Guys how to use the results of this query
osc_query_item("author=$userId");

in static page?
The functions ends with

View::newInstance()->_exportVariableToView("customItems", $mSearch->doSearch());

and it's located in osclass/helpers/hItems.php
Thank you.


edit.
Got it
« Last Edit: May 08, 2018, 11:18:23 pm by marius-ciclistu »

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: GDPR Compliance and Osclass script
« Reply #205 on: May 08, 2018, 11:16:08 pm »
I asked nothing about the views, that was @marius-ciclistu. ;)

About the cookies, only registered users can post ads so I could store a value that will say that they accepted the terms of service in the database. About the checkbox values, I will save them using a attributes plugin.

Regards-

I'm sorry, my mistake, was not marius-ciclistu posted the list. The message was mixed, and is for you both (marius-ciclistu, patrickFromCroatia). Sorry again.

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #206 on: May 08, 2018, 11:17:03 pm »
No problem. ;)




I might have an idea, there are some developers here (I am too, but a beginner). If we can join, we can probably do this.
Someone can do the plugin for checkboxes at item post and registration form. Someone can try to create a function/plugin to export data for users. Someone can try to create a function/plugin to export user items. Someone can create a simple function/plugin to show a "Delete user" button at the user page.

It would be much easier if everybody does something.

Edit:
Delete feature already exists.
Someone can create a simple function/plugin to show a "Delete user" button at the user page.
Isn't that part of user menu by default?
I mean this inside functions:
Code: [Select]
$options[] = array(
                'name'  => __('Delete account', 'bender'),
                'url'   => '#',
                'class' => 'opt_delete_account'
            );

Regards.
« Last Edit: May 08, 2018, 11:26:16 pm by patrickFromCroatia »

p206ab

  • Sr. Member
  • ****
  • Posts: 332
Re: GDPR Compliance and Osclass script
« Reply #207 on: May 08, 2018, 11:17:56 pm »
I managed to disable all cookies apart from necessary ones.
It's quite easy, as European cookie law plugin by Conejo has this function:
Code: [Select]
if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") {
Just install this plugin, wrap the if sentence around analytics, pixel, adsense, addthis and whatever makes cookies on your website and all cookies will be disabled if you choose to do so.

Although the law requires for this to be changed easily, so I must still figure it out how to make a link for this notification window to reappear on demand to change the consent.

Is this the plugin you are talking about: https://market.osclass.org/plugins/analytics/european-cookie-law_85?

Regards.

Yep, that's the one. Check here for more documentation if you need to adjust things: http://cookiecuttr.com/

Someone can create a simple function/plugin to show a "Delete user" button at the user page.
Isn't that part of user menu by default?
I mean this inside functions:
Code: [Select]
$options[] = array(
                'name'  => __('Delete account', 'bender'),
                'url'   => '#',
                'class' => 'opt_delete_account'
            );
« Last Edit: May 08, 2018, 11:23:18 pm by p206ab »

patrickFromCroatia

  • Hero Member
  • *****
  • Posts: 759
Re: GDPR Compliance and Osclass script
« Reply #208 on: May 08, 2018, 11:20:29 pm »
I managed to disable all cookies apart from necessary ones.
It's quite easy, as European cookie law plugin by Conejo has this function:
Code: [Select]
if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") {
Just install this plugin, wrap the if sentence around analytics, pixel, adsense, addthis and whatever makes cookies on your website and all cookies will be disabled if you choose to do so.

Although the law requires for this to be changed easily, so I must still figure it out how to make a link for this notification window to reappear on demand to change the consent.

Is this the plugin you are talking about: https://market.osclass.org/plugins/analytics/european-cookie-law_85?

Regards.

Yep, that's the one. Check here for more documentation if you need to adjust things: http://cookiecuttr.com/

Thanks.

Edit: Yes, the delete button already exists. Fixed. ;)

Regards.
« Last Edit: May 08, 2018, 11:26:57 pm by patrickFromCroatia »

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: GDPR Compliance and Osclass script
« Reply #209 on: May 08, 2018, 11:40:40 pm »

I might have an idea, there are some developers here (I am too, but a beginner). If we can join, we can probably do this.
Someone can do the plugin for checkboxes at item post and registration form. Someone can try to create a function/plugin to export data for users. Someone can try to create a function/plugin to export user items. Someone can create a simple function/plugin to show a "Delete user" button at the user page.

It would be much easier if everybody does something.

I understand your idea, and of course is good, but the problem is:

Why osclass team do not says anything about this long topic? That was created a long time ago, and we read him, inclusive they.

They can say what is the correct path to follow, they are the correct people to do that.

I think we will lose our time with something wrong or obsolete, or with a different sctructure, when they broke the silence. That for me is time lost to do something now.

That's, I'm affraid can happens that, must sure will.

I suggest we need wait for some notice from them.

Regards