SMFHacks.com

GDPR Pro => Support => Topic started by: Shades on May 06, 2021, 01:35:24 pm

Title: Privacy Link
Post by: Shades on May 06, 2021, 01:35:24 pm
How can I change the privacy policy link at bottom to point to ?action=agreement and the link text to "Terms and Privacy Policy"?
Title: Re: Privacy Link
Post by: SMFHacks on May 06, 2021, 03:17:31 pm
On SMF 2.0.X
Title: Re: Privacy Link
Post by: Shades on May 06, 2021, 05:28:27 pm
yes sorry 2.0.18
Title: Re: Privacy Link
Post by: SMFHacks on May 14, 2021, 11:11:51 am
It is added to
Sources/QueryString.php

Code: [Select]

if (!empty($modSettings['gdpr_enable_privacy_policy']) && $modSettings['gdpr_showprivacypolicylink'] == 1)
{
global $txt;
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><a href="' . $scripturl . '?action=gdpr;sa=privacypolicy">' . $txt['gdpr_privacypolicy'] . '</a>', $buffer);
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><a href="' . $scripturl . '?action=gdpr;sa=privacypolicy">' . $txt['gdpr_privacypolicy'] . '</a>', $buffer);
}

You can change the link url and text there as well