Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hello
    Use the global $wpdb object.

    Search:

    // Update the email address in signups, if present.
            if ($user->user_login && isset($_POST[ 'email' ]) && is_email($_POST[ 'email' ]) && $wpdb->get_var($wpdb->prepare("SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $user->user_login))) {
                $wpdb->query($wpdb->prepare("UPDATE {$wpdb->signups} SET user_email = %s WHERE user_login = %s", $_POST[ 'email' ], $user_login));
            }

    And Replace with:

    // Update the email address in signups, if present.
    		global $wpdb;
            if ($user->user_login && isset($_POST[ 'email' ]) && is_email($_POST[ 'email' ]) && $wpdb->get_var($wpdb->prepare("SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $user->user_login))) {
                $wpdb->query($wpdb->prepare("UPDATE {$wpdb->signups} SET user_email = %s WHERE user_login = %s", $_POST[ 'email' ], $user_login));
            }

    R.F.

    (@rf-1)

    Hello uporabna
    If you insert [adrotate group=”1″] directly in a post, ads are shown everywhere? Normally, the banner should appear only in this post. Do you have a link to the post?

    R.F.

    (@rf-1)

    Hello uporabna
    I would use a sidebar.

    best regards R.F.

    Hello
    Please try with the following entry in the .htaccess
    AddHandler x-httpd-php5-3 .php

    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.

    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 kykoGarcia
    You can find older versions here –> https://wordpress.org/plugins/adrotate/developers/

    Hello

    I want to Show 2 boxes in one line side by side.

    You must position the container via CSS .
    As An Example

    Here the Div-Container

    <div id="container">
    
         <div id="links"><?php echo adrotate_group(1);?></div>
         <div id="rechts"><?php echo adrotate_group(2);?></div>
    
    </div>

    And here the CSS

    #container {
    text-align: center;
    }
    #links {
    width: 250px;
    float: left;
    }
    #rechts {
    width: 250px;
    float: left;
    }

    Best regards R.F.

    Hello Rugged Fellow’s Guide

    Will these changes hold up when the plugin is updated?

    Unfortunately not , you need to make the changes after each update.

    Hello

    Also, when I do this:

    In the File adrotate.php

    FIND
    define(“ADROTATE_FOLDER”, ‘adrotate’);

    Replace with

    define(“ADROTATE_FOLDER”, ‘rotate’);

    I cannot reactivate the plugin after that because it gives me an error

    You must then rename the Folder adrotate to rotate (Sorry, I had this issue not specified).

    Hello Rugged Fellow’s Guide
    Did you also do that here?

    In the File adrotate.php

    FIND
    define(“ADROTATE_FOLDER”, ‘adrotate’);

    Replace with

    define(“ADROTATE_FOLDER”, ‘rotate’);

    then Activate the Plugin again

    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

    Hello
    P.S. I use the adrotate-Version 3.10.13

    In the New-adrotate-Version adrotate.3.11.6 you must

    Find (in the File adrotate-output.php

    /library/jquery.adrotate.responsive.js

    and Replace with

    /library/responsive.js

    Find

    /library/jquery.adrotate.dyngroup.js

    and Replace with

    /library/dyngroup.js

    Find

    /library/jquery.adrotate.clicktracker.js

    and Replace with

    /library/clicktracker.js

    Otherwise, you must take all changes from the top post

    Hello
    In the File adrotate.php

    FIND
    define("ADROTATE_FOLDER", 'adrotate');

    Replace with

    define("ADROTATE_FOLDER", 'rotate');

    then Activate the Plugin again

    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

    In the Folder library

    Rename the File jquery.adrotate.dyngroup.js to dyngroup.js

    Rename the File jquery.adrotate.clicktracker.js to clicktracker.js

    Rename the File jquery.adrotate.responsive.js to responsive.js

    In 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, '0.5.3', $in_footer);
    	if($adrotate_config['clicktracking'] == 'Y') wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/jquery.adrotate.clicktracker.js', __FILE__), false, '0.6', $in_footer);
    	if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/jquery.adrotate.responsive.js', __FILE__), false, '0.4', $in_footer);

    Replace with

    if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/dyngroup.js', __FILE__), false, '0.5.3', $in_footer);
    	if($adrotate_config['clicktracking'] == 'Y') wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/clicktracker.js', __FILE__), false, '0.6', $in_footer);
    	if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/responsive.js', __FILE__), false, '0.4', $in_footer);

    After these changes , you can use the new widget “My not blocked AdRotate widget”

Viewing 15 replies - 1 through 15 (of 19 total)