Set Cookies if user has active subscription

Permalink Browser Info Environment
Hello,

We are looking for an option to set cookies if the user has an active subscription.

Our last goal to set cookies is to hide ads if the user has a subscription active. We use Ezoic as a mediator for Google AdSense and it has the option to hide ads based on cookies.

So if we can set cookies for active subscriptions we can hide the ads.


Do let us know if you need any other information.

Type: Ticket
Status: Resolved
ExRxNet
View Replies:
concrete5cojp replied on at Permalink Reply
concrete5cojp
We don't have a plan to implement that type of feature, but I think you can try to implement it by yourself. You can check if the current user belongs to the specific user group.

$user->inGroup($group)

https://documentation.concretecms.org/developers/users-groups/groups...

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.1
Version Installed - 8.5.4
Database Version - 20190301133300

# concrete5 Packages
C5J Stripe Subscription (1.0.1), CloudFlare IP Proxy (1.0.0), Easy Image Gallery (1.4.2), Fruitful (1.2), HTML5 Audio Player Basic (2.0.5), Hutman Ads (1.1.1), Responsive Embed (1.0.0), Spacer (0.9.3), Thumbnail Generator (11.0.0), Touch Gallery 3 (3.2.4), Website Optimizer (1.0.4)

# concrete5 Overrides
blocks/image/templates/gif_passthrough.php, blocks/image/templates, blocks/image/view.php, blocks/image, blocks/videotoken/add.php, blocks/videotoken/controller.php, blocks/videotoken/db.xml, blocks/videotoken/divSizer.js, blocks/videotoken/edit.php, blocks/videotoken/expired.mp4, blocks/videotoken/modalViewer.js, blocks/videotoken/norange.mp4, blocks/videotoken/sqldenied.mp4, blocks/videotoken/videoTokenCss.css, blocks/videotoken/view.php, blocks/videotoken, controllers/single_page/samplepage.php, controllers/single_page, js/redactor.js, single_pages/admin_4cd6_fcb707193226.php, single_pages/samplepage.php

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.3.29

# PHP Extensions
cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 4000
memory_limit - 2048M
post_max_size - 8M
upload_max_filesize - 2M
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.