WordPress.org

Ready to get started?Download WordPress

Forums

  1. websanity
    Member
    Posted 1 year ago #

    Click 'continue' to accept cookies and the cookie message remains on screen. Also click to find out more opens in new window - which I can kind of see the need for, but it's messy.

    http://wordpress.org/extend/plugins/electric-studio-eu-cookie-law-compliance/

  2. websanity
    Member
    Posted 1 year ago #

    I think this might be a Firefox thing. Currently to clear the cookie the Continue link, links to #. Very interesting says Firefox, I'll just do nothing.

    If you update line 43 in escn-ajax.php to say this:
    a href="<?php echo add_query_arg( 'rnd', rand(1,65535) ); ?>" id="escn-continue"><span class="escn-icon continue"></span><?php printf( '%s', 'Continue' ); ?>

    Then all should be well again.

    This leads to Continue adding a random number as a parameter:
    http://www.mysite.co.uk/?rnd=RANDOM_NO
    or
    http://www.mysite.co.uk/?existing_param=1&rnd=RANDOM_NO

    Which will force a refresh of the page and thus allow Continue to Continue!

    Nice plugin - if you fix it, and I hope you do, please post response here and I'll change my 'Broken' to 'Working'!

    Cheers,
    Gerald

  3. websanity
    Member
    Posted 1 year ago #

    Hang on that'll get the wp-admin directory in there

    Try this instead:
    " id="escn-continue"><span class="escn-icon continue"></span><?php printf( '%s', 'Continue' ); ?>

    Sorry,
    G

  4. Electric Studio
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi, just update the JQuery script, you can add this to your functions.php file:

    function es_load_jquery () {
    	$url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js';
    	$check_url = @fopen( $url, 'r' );
    	wp_deregister_script( 'jquery' );
    	if( !$check_url )
    		wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js', false, 1 );
    	else
    		wp_register_script( 'jquery', get_template_directory_uri() . 'LINK-TO-JQUERY-IN-YOUR-THEME', false, 1 );
    	wp_enqueue_script( 'jquery' );
    }
    add_action( 'wp_enqueue_scripts', 'es_load_jquery' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.