Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author AntoineH

    (@antoineh)

    which shortcode?

    Thread Starter sillery4ever

    (@sillery4ever)

    [fp-predictionform match]

    Thread Starter sillery4ever

    (@sillery4ever)

    in the same time is it possible to hide this buton in this shortcode when all the match are closed ?

    Thread Starter sillery4ever

    (@sillery4ever)

    in the same time is it possible to hide this buton in this shortcode when all the match are closed ?

    Plugin Author AntoineH

    (@antoineh)

    A simple approach without changing the inner parts of the plugin could be something like this:

    if ( ! is_user_logged_in() ) {
    	echo '<style>.buttonblock { display: none;}</style>';
    	echo '<p>YOU ARE NOT LOGGED IN!</p>';
    }
    
    echo '<script>if ( jQuery( "tr.open" ).length == 0 ) jQuery( ".buttonblock" ).hide();</script>';

    This only works if there is just one form on the page.

    Thread Starter sillery4ever

    (@sillery4ever)

    TY

    Hi, I would like to implement this modification too… could you please tell me where to place this code. Which file and line? Thanks!!

    Plugin Author AntoineH

    (@antoineh)

    If I’m not mistaken, then sillery4ever is using a plugin to insert custom php code in his blog. You can use such a plugin or add the code in your footer.php from your theme.

    it worked in the footer page… thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide "save" button for visitors’ is closed to new replies.