WordPress.org

Ready to get started?Download WordPress

Forums

AdRotate
use images from media library (6 posts)

  1. mantish
    Member
    Posted 3 years ago #

    Hi, According to the guide, I should be able to select images uploaded with the wordpress media manager. However in the dropdown no images are shown. Anyone knows what can be wrong?

    http://wordpress.org/extend/plugins/adrotate/

  2. retrohunter
    Member
    Posted 3 years ago #

    Yeah, dido. Having the same issue with WP 3.0.1 and AdRotate 2.6.1

  3. darcius
    Member
    Posted 3 years ago #

    I had this problem too, but found a quick fix. It looks like one of the options isn't set correctly when adRotate installs, so you can either dive into the DB and change it, or just alter one of the adrotate plugin files with a quick change (my choice).

    Do get it to show images from the media manager, open up the file 'adrotate.php' in the adRotate plugins directory. Goto line 55 and replace this...

    $adrotate_config = get_option('adrotate_config');

    With this...

    $adrotate_config = get_option('adrotate_config');
    $adrotate_config['browser'] = 'Y';

    There's probably a more elegant fix, but this should do the trick!

  4. mantish
    Member
    Posted 3 years ago #

    In my case it wasn't saving the option correctly, but it got fixed a few days ago...maybe it was conflicting with another plugin.
    anyway, thank you darcius for the fix!!!

  5. Arnan de Gans
    Member
    Posted 3 years ago #

    Go into settings > AdRotate and tick the box for "media browser"

    Darcius fix IS NOT a good one and will break every other setting in the plugin.

  6. darcius
    Member
    Posted 3 years ago #

    Agreed that it's not a great fix, but it certainly won't break every setting in the plugin, it's simply changing the value for that array key to 'Y' which enables the media browser. I've been using it fine for weeks with no issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags