![]() | | ||||||||
| | #1 |
| Vasil Georgiev Join Date: Nov 2009
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts
|
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. |
| | |
| | |
| | #2 |
| Adscend Media rep Join Date: Aug 2009
Posts: 69
Thanks: 0
Thanked 9 Times in 9 Posts
|
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 <?}?> |
|
Adscend Media : Your source for content locking, email submits, mobiles, and much more. http://adscendmedia.com | |
| | |
| | #3 |
| Vasil Georgiev Join Date: Nov 2009
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts
|
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.
|
| | |
| | |
| | #4 |
| Adscend Media rep Join Date: Aug 2009
Posts: 69
Thanks: 0
Thanked 9 Times in 9 Posts
|
Yep. Well, run both for a little while and then switch to using only one of them -- whichever earns you the most. |
|
Adscend Media : Your source for content locking, email submits, mobiles, and much more. http://adscendmedia.com | |
| | |
![]() |
|
| Tags |
| cpa, rotator, widget |
| Thread Tools | |
| |
![]() |