Alternate add/toplist link

Started on the old forum in December 2011 · view the original in the archive · old links redirect here

#add #alternative #link #random #toplist

2 replies · 532 views · started 14 years ago · 1 min read

3 participants
pyramid_raider Developer · 60 posts #1

Hi

i started using mobday and i want to create an alternate link for toplist so if no add is available then it display toplist link

here is their php code

echo '<a href="http://ads.mobday.com/clk.php?pubid=1234&ad=adult"><img src="http://ads.mobday.com/img.php?pubid=1234&ad=adult" alt="" /></a>';

can anyone help on this code?

shushant Developer · 207 posts #2

Ya They Have Php Ad Code

just_m3. Developer · 199 posts #3

pyramid_raider wrote: Hi

i started using mobday and i want to create an alternate link for toplist so if no add is available then it display toplist link

here is their php code

echo '<a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'ads.mobday.com', '/clk.php?pubid=1234&ad=adult']);" rel="nofollow" href="http://ads.mobday.com/clk.php?pubid=1234&ad=adult"><img src="http://ads.mobday.com/img.php?pubid=1234&ad=adult" alt="" /></a>';

can anyone help on this code?

just an idea 🙂

<?php 
function grab($link){
$crl = curl_init(); 
curl_setopt ($crl, CURLOPT_URL,$link); 
curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);
$grab = curl_exec($crl); curl_close($crl);
return $grab;}

$check = grab('http://ads.mobday.com/clk.php?pubid=1234&ad=adult');

if (empty($check)){echo"nothing to show"; /*add your toplist link*/}
else { /*show the add by their function*/
// why to show by their function and not from the cached/curl 
//so you won't be banned by them as YOU request the ads by your server!
echo '<a href="http://ads.mobday.com/clk.php?pubid=1234&ad=adult"><img src="http://ads.mobday.com/img.php?pubid=1234&ad=adult" alt="" /></a>'; }
?>

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close