Fidde Posted February 20, 2016 Share 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: Link to comment Share on other sites More sharing options...
bfarber Posted April 8, 2016 Share 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. Link to comment Share on other sites More sharing options...
Fidde Posted May 2, 2016 Author Share 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? Link to comment Share on other sites More sharing options...
bfarber Posted May 2, 2016 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.