<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Pre-home functionality before entering the site]]></title><description><![CDATA[<p dir="auto">We need to redo a site in the area of ​​alcohol, which involves displaying a prevention message before entering the site (example here: <a href="https://www.associationdesbarmendefrance.fr" rel="nofollow ugc">https://www.associationdesbarmendefrance.fr</a>), is this possible with AppDrag, if so how?</p>
<p dir="auto"><img src="/assets/uploads/files/1702408641192-4e18cfb5-947b-4f82-8504-2943c8209431-image.png" alt="4e18cfb5-947b-4f82-8504-2943c8209431-image.png" class="img-responsive img-markdown" /> ![alt text](<img src="/assets/uploads/files/1702408621325-fe2f6569-3c99-4480-92bd-8a4410f48d9a-image.png" alt="fe2f6569-3c99-4480-92bd-8a4410f48d9a-image.png" class="img-responsive img-markdown" /> image url)</p>
]]></description><link>https://community.appdrag.com/topic/1361/pre-home-functionality-before-entering-the-site</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 08:48:50 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/1361.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Dec 2023 19:15:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pre-home functionality before entering the site on Wed, 13 Dec 2023 13:57:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a> Great, I will try <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--pray" title=":pray:" alt="🙏" /> !</p>
]]></description><link>https://community.appdrag.com/post/4920</link><guid isPermaLink="true">https://community.appdrag.com/post/4920</guid><dc:creator><![CDATA[Julien LAMOURET]]></dc:creator><pubDate>Wed, 13 Dec 2023 13:57:42 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-home functionality before entering the site on Wed, 13 Dec 2023 11:18:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/76">@mj-lamouret</a> you can do that in Javascript, I recommend checking a localstorage or cookie to check if was already accepted or not by a visitor, if not you redirect to the "blocker" page asking user confirmation</p>
<p dir="auto">You can place this block of script in the footer of your site so it will be applied to ALL pages <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<pre><code>&lt;script&gt;
    if ( localStorage.getItem("TermsAccepted") != "yes"){
          window.location.href = '/confirm.html'
    }
&lt;/script&gt;
</code></pre>
<p dir="auto">Then on the confirm.html page on your accept button you can place this javascript action:</p>
<pre><code>localStorage.setItem("TermsAccepted", "yes");
</code></pre>
]]></description><link>https://community.appdrag.com/post/4919</link><guid isPermaLink="true">https://community.appdrag.com/post/4919</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Wed, 13 Dec 2023 11:18:16 GMT</pubDate></item></channel></rss>