Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Fidde Posted February 20, 2016 Posted February 20, 2016 So I followed the example plugin, but I have a question. How do I force the temple to use the setting "Replace the chosen element(s)." When there is content to display and either use the "Insert content inside the chosen element(s), at the start." (so that it doesn't show when clicked) or simply hide it all together. What I want to achieve is this (before you click, no access to the content of the site): And after they've accepted, they get the normal site:
bfarber Posted April 8, 2016 Posted April 8, 2016 Probably the way I'd go about what you are after is If the user visits the site and has not accepted, show the box you have now Clicking accept sends to a special URL that either sets a cookie or sets a property for the member in the database to flag they've accepted Redirect user back to the page, and when the page loads since they've now accepted, show it normally You don't need to really get into difficult or complex plugin capabilities that way.
Fidde Posted May 2, 2016 Author Posted May 2, 2016 On 2016-04-08 at 3:57 AM, bfarber said: Probably the way I'd go about what you are after is If the user visits the site and has not accepted, show the box you have now Clicking accept sends to a special URL that either sets a cookie or sets a property for the member in the database to flag they've accepted Redirect user back to the page, and when the page loads since they've now accepted, show it normally You don't need to really get into difficult or complex plugin capabilities that way. If there is a simple way of doing this I haven't found it, could you guide me in some kind of direction on how to do this?
bfarber Posted May 2, 2016 Posted May 2, 2016 You'd just write two plugins as I see it. One would check if the cookie/flag is set, and if not show the form with a link to a special URL. Then another plugin would act on that special URL when visited to set the cookie/flag and send the user back.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.