Help On My Wapdesire(lavalair Version)

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

6 replies · 847 views · started 18 years ago · 1 min read

4 participants
khan1 Developer · 101 posts #1

how to auto activate users also how to activate users from web coz i can only activate it from phpmyadmin

also what is this for in core.php is it for admob.com if yes how do i add my admob site id

CODE

function mobads() { $mob_mode = "test"; $mob_alternate_link = " <a href="http://dot.com">Best Web n Wap Community</a> ";

$mob_ua = urlencode(getenv("HTTP_USER_AGENT")); $mob_ip = urlencode($_SERVER['REMOTE_ADDR']);

if ($mob_mode=='live') $mob_m = "&m"; $mob_url = 'http://ads.admob.com/ad_source.php?s=ADMOBID&u='.$mob_ua.'&i='.$mob_ip.$mob_m; @$mob_ad_serve = fopen($mob_url,'r'); if ($mob_ad_serve) { while (!feof($mob_ad_serve)) $mob_contents .= fread($mob_ad_serve,1024); fclose($mob_ad_serve); } $mob_link = explode("><",$mob_contents); $mob_ad_text = $mob_link[0]; $mob_ad_link = $mob_link[1]; if (isset($mob_ad_link) && ($mob_ad_link !='')) $ret = " <a href="$mob_ad_link">$mob_ad_text</a> "; else $ret = $mob_alternate_link;

return $ret;

}

ori Lead · 512 posts #2

youll see where i put s=ADMOBID jus put ur admob id in place of where the word ADMOBID is lol easy as

khan1 Developer · 101 posts #3

check this

CODE

function mobads() { $mob_mode = "live"; $mob_alternate_link = " <a href="http://dot.com">Best Web n Wap Community</a> ";

$mob_ua = urlencode(getenv("HTTP_USER_AGENT")); $mob_ip = urlencode($_SERVER['REMOTE_ADDR']);

if ($mob_mode=='live') $mob_m = "&m"; $mob_url = 'http://ads.admob.com/ad_source.php?s=a147dadba28e40d&u='.$mob_ua.'&i='.$mob_ip.$mob_m; @$mob_ad_serve = fopen($mob_url,'r'); if ($mob_ad_serve) { while (!feof($mob_ad_serve)) $mob_contents .= fread($mob_ad_serve,1024); fclose($mob_ad_serve); } $mob_link = explode("><",$mob_contents); $mob_ad_text = $mob_link[0]; $mob_ad_link = $mob_link[1]; if (isset($mob_ad_link) && ($mob_ad_link !='')) $ret = " <a href="$mob_ad_link">$mob_ad_text</a> "; else $ret = $mob_alternate_link;

return $ret;

its just showing AdMob Test Ad please help

khan1 Developer · 101 posts #5

CODE

function mobads() { $mob_mode = "test"; $mob_alternate_link = " <a href="http://dot.com">Best Web n Wap Community</a> ";

$mob_ua = urlencode(getenv("HTTP_USER_AGENT")); $mob_ip = urlencode($_SERVER['REMOTE_ADDR']);

if ($mob_mode=='live') $mob_m = "&m"; $mob_url = 'http://ads.admob.com/ad_source.php?s=a147dadba28e40d&u='.$mob_ua.'&i='.$mob_ip.$mob_m; @$mob_ad_serve = fopen($mob_url,'r'); if ($mob_ad_serve) { while (!feof($mob_ad_serve)) $mob_contents .= fread($mob_ad_serve,1024); fclose($mob_ad_serve); } $mob_link = explode("><",$mob_contents); $mob_ad_text = $mob_link[0]; $mob_ad_link = $mob_link[1]; if (isset($mob_ad_link) && ($mob_ad_link !='')) $ret = " <a href="$mob_ad_link">$mob_ad_text</a> "; else $ret = $mob_alternate_link;

return $ret;

its working just changed alternate mode to test

ori Lead · 512 posts #6

yeh neva worked out y it dnt work on word live they both hav 2 be different

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