• I have setup Rotating Ads V2 with several ads and would like to retrieve the ad data and intall same on my other blogs without having to manually re-enter the information each time.

    Where is the ad data stored? I am not using WordPress MU. Is ad duplication to other blogs possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author datafeedr

    (@datafeedrcom)

    Ad information is stored in the wp_options table. You would have to copy that row from one database to another.

    I’ve currently got 56 separate sites in my network, and growing. All of which should be displaying the same set of ads. It seems that it should be possible to set datafeedr to pull from a specific blog’s options table instead of having to copy the datafeedr options over for every new site.

    Any hints on how to do that? I don’t see anywhere in your code where you’re actually pulling the data from the options table…

    Thanks.

    Plugin Author datafeedr

    (@datafeedrcom)

    It’s in the wp_options table under “dfrads”. https://i56.tinypic.com/2a8455i.jpg

    Allowing the same set of ads to be shown across network sites would be awesome. Maybe an option in dfrad settings that allows user to choose a blog to pull ads from?

    Got it working.

    Add

    switch_to_blog(1);

    (or the blog where you have your master ads)

    just after
    function dfrads($group_id=false) {
    at approximately line 389

    A few lines later, just after

    $dfrads = get_option ('dfrads');

    add the line

    restore_current_blog();

    This allows it to put the ads from the wp_options table instead of wp_xx_options table.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Random / Rotating Ads V2] Duplicating Ads to Multiple Sites’ is closed to new replies.