Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Surbma

    (@surbma)

    Hi gameslopedy,

    there is no option yet for this setting, sorry.

    I’m preparing to release a new version soon with improved display for sites with server side caching. So I will consider to have this option too.

    Thread Starter gameslopedy

    (@yiggory)

    Hi

    I used to use this code for my previous content warning plugin:

    /**
     * Maybe Show Dialog
     * @param  bool $bool    Default true
     * @param  WP_Post  $post_ob A WP_Post object
     * @return bool           True to show the dialog, false to hide it.
     */
    function maybe_show_dialog( $bool = true, $post_ob = null ) {
        if ( is_user_logged_in() ) {
            return false;
        }
    
        return $bool;
    }
    add_filter( 'cwv3_should_gate', 'maybe_show_dialog', 10, 2 );

    Maybe we can change something with this and make it work for surbma too?

    Or
    If you give me the javascript codeblock of your surbma yesno plugin then I may be able to use my s2member hiding codes for it?

    I saw some codeblocks in your surbma yes/no plugin file. But Im not sure which is the proper dialog code.

    Plugin Author Surbma

    (@surbma)

    You can hide all popups with CSS. Not an ideal solution, but it works:

    
    .logged-in #surbma-yes-no-popup {display: none !important;}
    

    But I’m sure, I will add this option too, because it is a very useful feature.

    • This reply was modified 7 years, 3 months ago by Surbma.
    • This reply was modified 7 years, 3 months ago by Surbma.
    Thread Starter gameslopedy

    (@yiggory)

    Hi
    It worked but now the scroll is broken. Our users cannot scroll into down on our site.
    I think it should be possible to hide complete javascript or plugin for logged in users. But which way , i dont know.

    Plugin Author Surbma

    (@surbma)

    Oh yes, it is not a good solution, sorry!

    I’ll release the new version today or tomorrow with this option.

    Thread Starter gameslopedy

    (@yiggory)

    Okay thanks now waiting for the new update.

    Plugin Author Surbma

    (@surbma)

    Almost ready. Need some testing to work properly with all new settings.

    Thread Starter gameslopedy

    (@yiggory)

    Okay. Can you also add option to disable or redirect “Enter/Success” button ?

    Plugin Author Surbma

    (@surbma)

    What is the benefit to hide the Success button?

    If it’s something, that is useful for everybody, I do it for free, if it’s something useful for you, than I do it for some donation.

    https://surbma.com/donate/

    Thread Starter gameslopedy

    (@yiggory)

    I think it would be beneficial for member-based websites.
    So only can members views/access to the content.

    Also Is it possible to add function to make scrolling enable when the surbma popup appeared?

    Thread Starter gameslopedy

    (@yiggory)

    I will try to delete success button javascript code from the js files of this plugin.

    Plugin Author Surbma

    (@surbma)

    Membership mode is coming to the new release, it will have three options:

    • Hide Popup for logged in users
    • Always show Popup for NOT logged in users
    • One button mode (Show only Popup Button 1)

    I’m almost ready with the development. ??

    Also Is it possible to add function to make scrolling enable when the surbma popup appeared?

    I’m afraid it is not coming. This popup is intentionally obtrusive.

    Plugin Author Surbma

    (@surbma)

    The new version is released. ?? Enjoy!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to disable this popup for logged in users?’ is closed to new replies.