3 replies
Hello, I've been searching for cpa widget rotator and found this:

<?php
$rand
= rand(1, 2);
if (
$rand==1){
***
lead code
}else{
Adsend code
}
?>



I can't make it work. I don't know where i'm wrong. My website is wordpress. I go to Appearance -> Editor -> header.php (that's where my widget is).


If anyone can help me make this thing working please help. All replies are welcome.
#cpa #rotator #widget
  • Profile picture of the author Jeremy_AM
    If you were top place your Javascript code where you have "Adscend code" then it's going to be treated as PHP. Do this instead:


    <?php
    $rand = rand(1, 2);
    if ($rand==1){?>
    ***lead code
    <?}else{?>
    Adsend code
    <?}?>
    Signature

    Adscend Media : Offers walls, content locking, and monetization solutions for app developers. CPA. CPI.
    http://adscendmedia.com

    {{ DiscussionBoard.errors[3440722].message }}
    • Profile picture of the author vasko_prasko
      Thanks. It worked. But if i complete a cpalead survey and continue to the site on the next page will be the adscend widget. So that way my visitors will have to complete 2 surveys to have access to my site.
      Signature

      {{ DiscussionBoard.errors[3441363].message }}
  • Profile picture of the author Jeremy_AM
    Yep.
    Well, run both for a little while and then switch to using only one of them -- whichever earns you the most.
    Signature

    Adscend Media : Offers walls, content locking, and monetization solutions for app developers. CPA. CPI.
    http://adscendmedia.com

    {{ DiscussionBoard.errors[3441636].message }}

Trending Topics