• Webmaster forum we offer you the best experience with our webmaster site and freelancer forum categories where you can share information on topics such as web development and digital marketing!
    Participation and use are completely free!
  • Leeching is not allowed. Multiple accounts are not allowed, if you are caught you will be permanently banned.

    All registrations are manually approved by the administrator.

AndyB Forum cookie

XF 2.0 / 2.1 / 2.2 AndyB Forum cookie 1.3

valaiVerified member

Administrator

Staff member
Reputation: 90%
Joined
Dec 27, 2024
Messages
843
Description :

Allows setting a cookie based on user group permissions.

Some ad agencies allow not displaying ads if a certain cookie is set. This is a great way to not show ads to premium members.

(Example of Options page) :

AndyB Forum cookie-1.webp


(Example of User group permissions) :

AndyB Forum cookie-2.webp


Features :
  • Sets cookie after login.
  • Sets cookie on forum list view.
Setup :
  • Set cookie Name and Value in Options page.
  • Set User group permissions. Typically you set Yes to the Premium user group.
Questions and answers :

Q: If a members premium account expires, will the cookie be deleted?
A: Yes. The next time they login or view the forum list their cookie will be deleted if no longer a premium members.

Q: How long will the cookie last?
A: For one year. However if the member is no longer a premium member the cookie will be deleted when they login or view the forum list.

Forum cookie v1.1 changes : Fixed issue with cookie delete.

Forum cookie v1.2 changes : Now using XenForo cookie functions.

Forum cookie v1.3 changes : Updated PHP code to be more compatible with other add-ons.
 
XF 2.0 / 2.1 / 2.2  [tl] Anonymous Posting  2.1.3

Attachments

Similar threads Most view View more
Back
Top Bottom