I would like Privacy Center (category 3) to enable the “Disqus Comments” stack via Privacy Conditional.
Unfortunately the only result is the disappearance of all posts.
I guess I need to have a deep look. If you could send me the project? I don’t have Privacy Center, so please ask the dev before if you could send me this stack also.
I was thinking of an alternative solution, but I’m not sure if it’s feasible or possible.
Considering your PHP Cookie Switch stack - which works perfectly - could totally solve the problem even in different situations in the future, that is
by integrating in PHP Cookie Switch an “if value contains”, in this case the content is displayed if the value of the cookie contains the string fragment.
In the case of my project (example) if the value of the cookie (allow_cookies or another name) contains the following string
%22cat3%22:%22On%22
PHP Cookie Switch displays the content of “available” (displays the comments of Disqus) otherwise the content of “not available” (a button to consent to the disqus cookies) is displayed.
Hi Kennerty, first of all I want to congratulate you for the excellent Privacy Center stack and for its simplicity and for how it works, the speech of placing a conditional Stack in the post only concerns its position within the post (if I insert only the Disqus script in a Privacy Center script works perfectly and is displayed on every page, or even as a Privacy Conditional stack outside the post area works).
The speech of the comments is also similar for Vimeo videos, Youtube or animations such as Genially etc., precisely I would like the conditional stack (more precisely its content) to be positioned in a certain position within the post area, for example a youtube video at left and the comments on the right, or the video above, below the comments, even further below the summary with categories and tags.
@kennerty,
The solution to the problem of inserting the condition based on the cookie string inside a Poster2 post (example for a youtube video) was brilliantly solved by @Jannis.
Unfortunately I encountered another problem, again in Poster2, inserting a Privacy Conditional by Kennerty (outside Poster2) with cat. example 4, (Cat4 enable Custom Font Source example font Lora), the Condizional makes Poster2 disappear completely.
Unfortunately, Jannis’s conditional can only be inserted inside the Poster2 post.
It would take a solution that can be inserted outside of Poster2 that does not create problems but is able to read the cookie string (example, as I said before to enable a google font).
Sorry, but google font was just an example, I could have said a Vimeo or Youtube video, or any other stack conditioned by the cookie category.
Sorry I explained myself wrong in the previous post.
I just wanted to point out that (in case someone on the forum needs it) inserting a condition in a Poster2 post can be done using Jannis’ stack.
But if someone wants to insert a condition outside of Poster, in a page that contains Poster2, unfortunately it cannot be done because there are problems, such as the disappearance of the entire blog.
@Jannis
Maybe you want to tell me why I want to put a conditional privacy stack out of Poster2?
If this is the question, I can give a small example:
at the top the menu
under the menu a website banner video (without embedding the heavy video) that reads Vimeo or Youtube or something else advertising (with the conditional privacy) that always remains in plain sight, above, for each blog page
the menu could be placed at the top of the video banner
under the video banner the blog (Poster2)
but there are many other examples …
However, it does nothing … there is always a solution for everything.
Unfortunately it is the conflict that is created between the various stacks that bothers me, I think, in perspective, one day when Stack5 comes out, all the stacks should be compatible and not risk buying a stack that conflicts with another.
This is an issue that should be explored among developers.
The discussion can be closed,
now it is a fact that in this forum you can only talk about politics between realmac rw9 and stacks5.
Gone are the help, the solutions and the new ideas to solve problems.
I’m very sorry.