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

    (@spacetime)

    Rotation works for each block individually.
    Simply separate ad codes with ||.

    AD code 1
    ||
    Ad code 2

    Of course you could also create block 3 with the following code:

    [adinserter block="1"]
    ||
    [adinserter block="2"]
    Thread Starter gabu69

    (@gabu69)

    But i mean, Is there any way to test ADBLOCK1 vs adblock2?

    I want to A/B test if an ad works better after paragraph 1 or after paragraph 2

    Also are you open for new features suggestions?

    Such as, dont display an adblock if theres less than X paragraph, etc

    Plugin Author Spacetime

    (@spacetime)

    Misunderstanding.

    Use the following code for block 1

    <?php
    if (rand (0,1)) {
    define ("AD1", true);
    ?>
    AD CODE 1
    <?php
    }
    ?>

    and the following code for block 2:

    <?php
    if (!defined ("AD1")) {
    ?>
    AD CODE 2
    <?php
    }
    ?>

    Don’t forget to set positions for block 1 and 2 and make sure PHP processing is enabled for both blocks.

    I’m always open for new features and suggestions ??

    Your proposal
    “dont display an adblock if theres less than X paragraph”
    is already implemented: check “Minimum number of paragraphs”

    Thread Starter gabu69

    (@gabu69)

    Wowwwww, thanks a lot, great plug in by the way and best of luck with it

    Plugin Author Spacetime

    (@spacetime)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rotate Block 1 and 2’ is closed to new replies.