Skip to content

Commit 54b3b63

Browse files
committed
Rewrite langauge in ACP about enabling consent
1 parent 6de12e6 commit 54b3b63

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

adm/style/manage_ads.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3>{{ lang('WARNING') }}</h3>
4141
<dd><textarea id="ad_note" name="ad_note" rows="5" cols="60" style="width: 95%;">{{ AD_NOTE }}</textarea></dd>
4242
</dl>
4343
<dl>
44-
<dt><label for="ad_code">{{ lang('AD_CODE') ~ lang('COLON') }}</label><br><span>{{ lang('AD_CODE_EXPLAIN') }}</span></dt>
44+
<dt><label for="ad_code">{{ lang('AD_CODE') ~ lang('COLON') }}</label><br><span>{{ lang('AD_CODE_EXPLAIN') }}{% if S_ADS_CONSENTMANAGER_AVAILABLE %}{{ lang('AD_CODE_CONSENT_EXPLAIN') }}{% endif %}</span></dt>
4545
<dd>
4646
<textarea id="ad_code" name="ad_code" rows="20" cols="60" style="width: 95%;">{{ AD_CODE }}</textarea>
4747
<button class="button2 phpbb-ads-button" id="analyse_ad_code" name="analyse_ad_code"><i class="icon fa-fw fa-stethoscope"></i> <span>{{ lang('ANALYSE_AD_CODE') }}</span></button>

language/en/acp.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
'AD_NOTE' => 'Notes',
3232
'AD_NOTE_EXPLAIN' => 'Enter any notes for this advertisement. These notes are not shown anywhere except in the ACP and are optional.',
3333
'AD_CODE' => 'Code',
34-
'AD_CODE_EXPLAIN' => 'Enter the advertisement code here. All code must use HTML markup, BBCodes are not supported.<br><br>Note: If your advertisement code places cookies, collects user data, or tracks user behaviour (for example, ads from Google AdSense or other third-party ad networks), then you should enable the <strong>Advertising Disclosure</strong> in the <strong>Advertisement Management Settings</strong> panel to ensure compliance. If you are uncertain, it is recommended that you enable it.',
34+
'AD_CODE_EXPLAIN' => 'Enter the advertisement code here. All code must use HTML markup, BBCodes are not supported.<br><br>Note: If this advertisement places cookies, collects user data, or tracks user behaviour, enable <strong>Advertising Disclosure</strong> in the <samp class="error">Advertisement Management » Settings</samp> panel. If you are uncertain, enable it.',
35+
'AD_CODE_CONSENT_EXPLAIN' => ' Also enable <strong>Require marketing consent</strong> below so this advertisement’s scripts are deferred until the visitor allows marketing in their Privacy Settings.',
3536
'ANALYSE_AD_CODE' => 'Analyse advertisement code',
3637
'EVERYTHING_OK' => 'The code appears OK.',
3738
'AD_BANNER' => 'Advertisement banner',
@@ -99,13 +100,13 @@
99100
'ACP_AD_DISABLE_ERRORED' => 'There was an error disabling the advertisement.',
100101

101102
// Analyser tests
102-
'UNSECURE_CONNECTION' => '<strong>Mixed Content</strong><br />Your board runs on a secure HTTPS connection; however, the advertisement code is attempting to load content from an insecure HTTP connection. This can cause browsers to generate a “Mixed Content” warning to let users know that the page contains insecure resources.',
103-
'SCRIPT_WITHOUT_ASYNC' => '<strong>Non-asynchronous javascript</strong><br />This advertisement code loads JavaScript code in a non-asynchronous way. This means it will block any other JavaScript from loading until it has completed loading, which can affect page load performance. Use of the <samp>async</samp> attribute can speed up the page load.',
104-
'MARKETING_CONSENT_RECOMMENDED' => '<strong>Require marketing consent</strong><br />This advertisement contains executable <samp>&lt;script&gt;</samp> tags. If this ad loads marketing, tracking, cookies, or other consent-controlled resources, enable <strong>Require marketing consent</strong> below for this ad so its scripts are deferred until the visitor allows marketing in Privacy Settings.',
105-
'MARKETING_CONSENT_VENDOR_RECOMMENDED' => '<strong>Known ad vendor detected</strong><br />This advertisement contains executable <samp>&lt;script&gt;</samp> tags from a known advertising or marketing vendor. Enable <strong>Require marketing consent</strong> below for this ad so its scripts are deferred until the visitor allows marketing in Privacy Settings.',
106-
'ALERT_USAGE' => '<strong>Usage of <samp>alert()</samp></strong><br />Your code uses the <samp>alert()</samp> function which is not a good practice and can distract users. Some browsers may also block page load and display additional warnings to the user.',
107-
'LOCATION_CHANGE' => '<strong>Redirection</strong><br />Your code appears it can redirect a user to another page or site. Redirects can sometimes send users to unintended, often malicious, destinations. Please verify the integrity of your advertisement code’s redirection destination.',
108-
'IFRAME_USAGE' => '<strong>Usage of <samp>&lt;iframe&gt;</samp></strong><br />Your code contains HTML-encoded <samp>&lt;iframe&gt;</samp> tags. Because iframes can introduce third-party tracking or data collection, please review this advertisement snippet to ensure it complies with your user privacy policies.',
103+
'UNSECURE_CONNECTION' => '<strong>Mixed Content</strong><br>Your board runs on a secure HTTPS connection; however, the advertisement code is attempting to load content from an insecure HTTP connection. This can cause browsers to generate a “Mixed Content” warning to let users know that the page contains insecure resources.',
104+
'SCRIPT_WITHOUT_ASYNC' => '<strong>Non-asynchronous javascript</strong><br>This advertisement code loads JavaScript code in a non-asynchronous way. This means it will block any other JavaScript from loading until it has completed loading, which can affect page load performance. Use of the <samp>async</samp> attribute can speed up the page load.',
105+
'MARKETING_CONSENT_RECOMMENDED' => '<strong>Require marketing consent</strong><br>This advertisement contains executable <samp>&lt;script&gt;</samp> tags. If this ad loads marketing, tracking, cookies, or other consent-controlled resources, ensure <strong>Require marketing consent</strong> is enabled below for this ad so its scripts are deferred until the visitor allows marketing in Privacy Settings.',
106+
'MARKETING_CONSENT_VENDOR_RECOMMENDED' => '<strong>Known ad vendor detected</strong><br>This advertisement contains executable <samp>&lt;script&gt;</samp> tags from a known advertising or marketing vendor. Ensure <strong>Require marketing consent</strong> is enabled below for this ad so its scripts are deferred until the visitor allows marketing in Privacy Settings.',
107+
'ALERT_USAGE' => '<strong>Usage of <samp>alert()</samp></strong><br>Your code uses the <samp>alert()</samp> function which is not a good practice and can distract users. Some browsers may also block page load and display additional warnings to the user.',
108+
'LOCATION_CHANGE' => '<strong>Redirection</strong><br>Your code appears it can redirect a user to another page or site. Redirects can sometimes send users to unintended, often malicious, destinations. Please verify the integrity of your advertisement code’s redirection destination.',
109+
'IFRAME_USAGE' => '<strong>Usage of <samp>&lt;iframe&gt;</samp></strong><br>Your code contains HTML-encoded <samp>&lt;iframe&gt;</samp> tags. Because iframes can introduce third-party tracking or data collection, please review this advertisement snippet to ensure it complies with your user privacy policies.',
109110

110111
// Template location categories
111112
'CAT_TOP_OF_PAGE' => 'Top of page',

0 commit comments

Comments
 (0)