• Resolved qwik3r

    (@qwik3r)


    Is there an automated way to create a pop up each time a specific post is published? Sort of like an automatic announcements type thing? I’d like it then so that if they close the post, the next time one is published it pops up again, thus clearing the cookie. Not sure if it’s possible, thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Maria T

    (@mariatogonon)

    Hello @qwik3r, thanks for writing in!

    Note that the popups are simply containers for HTML content. What you insert inside your popup is entirely up to you. And, we don’t have anything built in to automatically create a popup each time a specific post is published for you.

    If you have any other questions or concern, just let us know.

    Have a great day!

    Thread Starter qwik3r

    (@qwik3r)

    Yeah I pretty much knew I could put anything into the pop up, it was more so about if there was a way to trigger a new one dynamically every time a new post was created. Thanks.

    Maria T

    (@mariatogonon)

    We understand, @qwik3r

    As of the moment, our Popup Maker plugin does not support this feature. However, I can forward this to our lead developer as a feature request/improvement for our plugin. That said, we cannot provide any ETA for this.

    Thank you for your kind understanding.

    Plugin Support mark l chaves

    (@mlchaves)

    Hello @qwik3r, @mariatogonon,

    I hope you don’t mind me jumping in.

    That’s a great question @qwik3r.

    One idea is to have your popup “sleep” until a post goes from draft to publish. Have the popup “wake up” when a post goes from draft to publish. Then, have the popup go back to “sleep” after a week or so.

    If you’re game and assuming you have your new post popup already created (hopefully, it’s a time delay popup), you can do the following:

    1) Disable your new post popup first.

    2) Write an action to hook into draft_top_publish to re-enable your popup when a post goes from draft to publish state.

    3) Write a cron to disable (reset) the popup after a certain length of time (e.g., weekly or monthly).

    Here are examples of the hooks you’d need.

    https://gist.github.com/marklchaves/2c08d4976fa54604352541302f7c2548

    Shout if you have any questions ??

    NOTE: Make sure your post is always saved as a draft first before it’s published.

    P.S. If you come across any other ideas, please share.

    Thread Starter qwik3r

    (@qwik3r)

    Thanks for taking the time to work through a possible solution.

    I have two concerns basically.

    1. I want them to be able to close the pop up so it isn’t intrusive. So after they see it, it goes away

    2. If a cookie can be reset on the NEXT newly created draft – > published post so they see that one. I don’t want them to of course close the one pop up and permanently hide all potential new posts notifications.

    Thanks.

    Plugin Support mark l chaves

    (@mlchaves)

    Hello @qwik3r,

    Thanks for the follow-up.

    For concern #1, you can set up your Popup Maker popup however you want. The automation doesn’t interfere with the internals of your popup. When you review the gist, you should see that it simply automates the enabling and disabling (wake up and sleep) of the notification popup of your choice.

    Concern #2 isn’t really applicable with the automation I recommend. If you look at the code, you should notice that it’s tailored to work with 1 popup only.

    I’ve added a README file to the code gist that explains more how the automation idea works. Please check it out. Here’s the link again.

    https://gist.github.com/marklchaves/2c08d4976fa54604352541302f7c2548

    Since this automation goes beyond Popup Maker and this thread is already closed, please post any questions about the automation directly on the gist.

    Cheers!

    Thread Starter qwik3r

    (@qwik3r)

    There’s nowhere to comment on the code on git so if you have an area that it can be discussed other than here i’d gladly do that.

    It would be great if you could do this cookie based, i.e. if someone closes the notification. This is all based on a cron just putting it to sleep which means someone could see it many times. It’s also not based on the user itself. IT sounds like it would hide it for every single person whether they saw it or not…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pop up for new posts’ is closed to new replies.