Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    Seems like both plugins are working just fine 🙂

    Thread Starter xrundel1

    (@xrundel1)

    That means Adrotate absolutly useless for users with Adblock.
    Therefore Adrotate Pro just total waste of money.

    Thanks for honest explanation. 🙂

    Plugin Author Arnan de Gans

    (@adegans)

    In your opinion perhaps. AdRotate Pro has plenty of worth for those who buy it.
    Just that you don’t see it or that adblockers do their job doesn’t make AdRotate Pro worthless.

    Hello xrundel1
    Here is your solution 😉

    First deinstall the Plugin from your WordPress, then download the plugin again and follow my instructions.

    Step one: Rename the Folder from adrotate to rotate.
    Step two: Rename the File jquery.adrotate.clicktracker.js (in the Folder adrotate\library ) to clicktracker.js
    Step Three: Rename the File jquery.adrotate.dyngroup.js (in the Folder adrotate\library ) to dyngroup.js
    Step Four: Rename the File jquery.adrotate.responsive.js (in the Folder adrotate\library ) to responsive.js
    Step Five: Open the File adrotate.php and
    Find
    define("ADROTATE_DB_VERSION", 51);
    After ad
    define("ADROTATE_FOLDER", 'rotate');
    Find

    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-setup.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-manage-publisher.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-functions.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-statistics.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-export.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-output.php');
    include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-widget.php');

    Replace with

    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-setup.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-manage-publisher.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-functions.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-statistics.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-export.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-output.php');
    include_once(WP_CONTENT_DIR.'/plugins/rotate/adrotate-widget.php');

    Step Six:
    Open the File adrotate-output.php
    Find

    if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/jquery.adrotate.dyngroup.js', __FILE__), false, null, $in_footer);
    	if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/jquery.adrotate.responsive.js', __FILE__), false, null, $in_footer);
    
    	// Make clicktracking and impression tracking a possibility
    	if($adrotate_config['stats'] == 1){
    		wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/jquery.adrotate.clicktracker.js', __FILE__), false, null, $in_footer);

    Replace with

    if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/dyngroup.js', __FILE__), false, null, $in_footer);
    	if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/responsive.js', __FILE__), false, null, $in_footer);
    
    	// Make clicktracking and impression tracking a possibility
    	if($adrotate_config['stats'] == 1){
    		wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/clicktracker.js', __FILE__), false, null, $in_footer);

    Find
    $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\n";
    Replace with
    /* $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\n"; */
    Step Seven: Upload the ‘rotate’ folder to the ‘/wp-content/plugins/’ directory.
    Activate the plugin through the ‘Plugins’ menu in WordPress.

    best regards: R.F.

    Hello xrundel1
    For the Widget use this:
    In your Theme –> functions.php

    Add

    // Adrotate-Hack
    require_once WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'rotate' . DIRECTORY_SEPARATOR . 'adrotate-widget.php';
    
    class My_Nicename_Rotator extends adrotate_widgets {
    
    function My_Nicename_Rotator() { // or just __construct if you're on PHP5
    parent::WP_Widget(false, 'My not blocked AdRotate widget', array('description' => "Show unlimited ads in the sidebar."));
    }
    }
    add_action('widgets_init', create_function('', 'return register_widget("My_Nicename_Rotator");'));
    //ENDE Adrotate-Hack

    You must then use the new widget “My not blocked AdRotate widget”

    best regards R.F.

    Plugin Author Arnan de Gans

    (@adegans)

    Have fun doing that on every update and coming up with new names when adblockers update their filters. Or re-doing your widgets with every name changes you introduce. 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adrotate vs. Adblock [not resolved]’ is closed to new replies.