• Resolved dejudicibus

    (@dejudicibus)


    I created five pop-ups. I wish that each popup is shown on the cover page only if it is within a specific time range. So I created a filter in functions.php to do that:

    if( ! function_exists('rfa_theme_load_popup') ){
    	function rfa_theme_load_popup( $is_loadable, $popup_id ) {
    		$popups = array(6003, 6019, 6625, 6024, 6026) ;
    		$stimes = array('08:00', '10:00', '13:00', '16:00', '20:00') ;
    		$dont_load_it = false;
    		foreach( $popups as $key => $popup ) {
    			$dont_load_it = $dont_load_it || (($popup == $popup_id) && ! isCurrentTimeBetween($stimes[$key],$stimes[($key+1)%count($stimes)]));
    		}
    		return $is_loadable && ! $dont_load_it;
    	}
    	add_filter('popmake_popup_is_loadable', 'rfa_theme_load_popup', 100, 2 );
    }

    However the problem is that I do not know how to distinguish between the automatic display of popup, and when popup is explicitly called through a button. I wish that in the latest case, any popup can be shown at any time. But how?

    https://www.ads-software.com/plugins/popup-maker/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter dejudicibus

    (@dejudicibus)

    OK, I tried also from other desktops… The automatic popup DOES NOT load when I go to url https://academy.romafilm.it Only the buttons work.

    I am puzzled. Are you telling that it works for you????

    Thread Starter dejudicibus

    (@dejudicibus)

    It does not work in private browsing too.

    Plugin Author Daniel Iser

    (@danieliser)

    @dejudicibus – I just tried from my iPhone. It has never been to your site with any browser. Both Safari and Chrome loaded the same Popup.

    Just a note I also get a Popup notice about the site using cookies. So on a fresh page load it seems to show 2 Popups. So if you are not getting those I am not sure where to go with this. From every device I have tried even non private I am getting a Popup like image below. The only thing that explains it is browser and server caches but private browsing and a few days for site cache to refresh should have cleared it up for you as well.

    https://www.dropbox.com/s/xa9rrfttczlq9iy/File%20Feb%2017%2C%207%2048%2003%20PM.png?dl=0

    Thread Starter dejudicibus

    (@dejudicibus)

    OK. It must be a problem with my laptop, because I cannot see automated popup by Chrome, only manual ones. Really a mystery.

    Just a question: when I have several popup, should the popup key be the same for all or different? And what’s the cookie name set by popup maker? I cannot find any inspecting my page. I see only the following ones:

    _ga
    __utmc
    __utmb
    __utma
    _gat
    __utmt
    wp-settings-time-1
    wp-settings-1
    wordpress_logged_in_…
    wordpress_test_cookie
    viewed_cookie_policy
    PHPSESSID

    Plugin Author Daniel Iser

    (@danieliser)

    @dejudicibus – Just checked and the scheduling is no longer working. Did you disable it?

    I will try to put some time into the extension this week or next and get at least a workable prototype for you to play with. May help.

    Thread Starter dejudicibus

    (@dejudicibus)

    OK, thank you.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Show popup by clicking on a link AT ANY TIME’ is closed to new replies.