• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 09:22:47 PM

News:

Wondering if this will always be free?  See why free is better.


GDPR Helper

Started by vbgamer45, June 02, 2018, 07:23:16 PM

Previous topic - Next topic

dowhelp

Thank you for your help vbmer45. It seems to be working now after I followed your instructions. There are now now errors showing.

Regards


bod22

Hi,

I have a question. Does GDPR Helper make any changes in database?

I used it on my 2.0.15. It worked fine. Then 2.0.16 was released and I don't remember if I uninstalled it after upgrading or before but since then I have some issues on my forum and I can't update forum to 2.0.16 and 2.0.17.

Of course I installed the latest version and later uninstalled it so it should have any impact but I'm just curious maybe sth left somewhere?

vbgamer45

Yes, it does add a couple columns to the database and some entries into a few tables.

What are you getting upgraded. I haven't heard of any issues related to a SMF upgrade.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

It does :(

I'm still stuck trying to upgrade to 2.0.17 too.   (link)
Admittedly I've been stuck in a brace for the past few months and unable to type which hasn't helped, but not all of us quite know what we are supposed to be editing when upgrades fail.  :'(

vbgamer45

Did you uninstall gdpr  helper via the package manager?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

Couldn't uninstall as I got errors.

Sorry, but wasn't quite sure what you meant by this

QuoteUninstall then attach those two files.

vbgamer45

Attach the files were it failed when you uninstall.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

ok I'm being really dumb.    Attach which files to where?  :(


In my previous post I included the log showing where the uninstall failed.   Then I posted the relevant parts  of text where I think it is failing. 


I don't ever usually manually edit any of the core files and leave everything to package manager, so I'm a total novice when it comes to editing anything in SMF.

vbgamer45

To this topic. So I can analyze and fix.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

Ah cheers, thought because I'd pasted code that was sufficient. 
Error messages I got when trying to uninstall are included in the other post.

vbgamer45

Fixed files attached.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

August 19, 2020, 08:06:51 PM #171 Last Edit: August 19, 2020, 08:18:50 PM by kitz
Your help is appreciated, but still unable to uninstall and having errors in the same two files, but now 2 errors in Register.php


Subs-Members.php
Find
// Start GPDR Helper
if (empty($modSettings['gpdr_clear_memberinfo']))
{
// Make these peoples' posts guest posts.
$smcFunc['db_query']('', '
UPDATE {db_prefix}messages
SET id_member = {int:guest_id}, poster_email = {string:blank_email}
WHERE id_member IN ({array_int:users})',
array(
'guest_id' => 0,
'blank_email' => '',
'users' => $users,
)
);
}
else
{
global $sourcedir;

require_once($sourcedir . '/gpdr2.php');
GPDR_CleanMemberInfo($users);
}

// END GPDR Helper


Replace
// Make these peoples' posts guest posts.
$smcFunc['db_query']('', '
UPDATE {db_prefix}messages
SET id_member = {int:guest_id}, poster_email = {string:blank_email}
WHERE id_member IN ({array_int:users})',
array(
'guest_id' => 0,
'blank_email' => '',
'users' => $users,
)
);



Register.php

Find
// Start GPDR Helper
if (!empty($modSettings['gpdr_enable_privacy_policy']))
{
if (!isset($_REQUEST['privacy_agree']) && !$user_info['is_admin'])
$reg_errors[] = $txt['gpdr_txt_privacy_fail'];
}
// END GPDR Helper
// Lets check for other errors before trying to register the member.


Replace

// Lets check for other errors before trying to register the member.


and
Find
// Do our spam protection now.
spamProtection('register');
// Start GPDR Helper
if (!is_array($memberID))
{
global $smcFunc, $settings;
        $t = time();
          $smcFunc['db_query']('', "
REPLACE INTO {db_prefix}themes
(ID_MEMBER, ID_THEME, variable, value)
VALUES
                (" . $memberID . "," . $settings['theme_id']  . ",'gpdr_agreementdate','$t')
                ");


if (!empty($modSettings['gpdr_enable_privacy_policy']))
{
          $smcFunc['db_query']('', "
REPLACE INTO {db_prefix}themes
(ID_MEMBER, ID_THEME, variable, value)
VALUES
                (" . $memberID . "," . $settings['theme_id']  . ",'gpdr_policydate','$t')
                ");
    }

        cache_put_data('theme_settings-' . $settings['theme_id'] . ':' . $memberID, null, 60);
}
// END GPDR Helper



Replace
// Do our spam protection now.
spamProtection('register');



From my basic knowledge it looks ok and as if it should work  :/




vbgamer45

Did you replace the files?  Then uninstall mod.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

I ftp'd the new files, then tried running uninstall from package manager.   
I attached a screen cap of what happened when I tried to uninstall to my prev post a few mins ago. .

vbgamer45

Yes that is fine process with uninstall.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

so ignore the errors and just go for it?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kitz

August 19, 2020, 08:55:40 PM #177 Last Edit: August 19, 2020, 09:30:58 PM by kitz
Thank you so much for your help.   The uninstall seemed to go ok.
I now have an error trying to update to 2.0.16 via package manager for Profile-Modify.php, but seeing as this isn't a file that appears to be related to GDPR (&thus not your responsibility) I shall take that elsewhere.

Thanks again  &  tyvm for creating GDPR Helper during the GDPR bedlam that occurred during 2018.   

---
ETA
Managed to sort it myself using knowledge you helped me gain tonight.  :)

vbgamer45

Glad you have it all figured out.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Just upgraded a forum from 2.0.15 to .17, had to uninstall GDPR Pro to install .16 patch, am unable to reinstall mod in .17, target code is not there.

ManageRegistration.php



updateSettings(array('requireAgreement' => !empty($_POST['requireAgreement'])));

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Advertisement: