1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ad Banner Rotator for XF

Discussion in 'XenForo Questions and Support' started by swatme, Mar 22, 2011.

  1. swatme

    swatme Well-Known Member

    hi guys

    do you know of any ads/banner rotator for xf?

    like for every refresh of webpage
    it will rotate your banners/ads from adsense to your own local ads

  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. swatme

    swatme Well-Known Member


    any other 3rd party script that can support adsense and img src?

    can we use the generic 3rdparty banner rotator script available on internet
    in ad_header templates?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Only one way to find out.

    It depends on the contents of the script but give it a try.
  5. swatme

    swatme Well-Known Member


    in the ad_template is or any templates.
    is it possible to add php codes there something
    use the script here

    or php code below?

    //Random number selection
    $num = Rand(1,2);
    //Based on a number between the two given a random banner is shown
    switch ($num)
    case 1:
    echo “ads one”;
    case 2:
    echo “ads two”;

Share This Page