advert help?
Collapse
X
-
i got it to center just incase anyones intrested heres the code... thanks for your help lads
Code:<CENTER> <!-- START CUSTOM WIDGETBUCKS CODE --><div><script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script></div><!-- END CUSTOM WIDGETBUCKS CODE --> </CENTER>
Leave a comment:
-
Originally posted by modfiles View Posti think you havent read my previous post :p
the browser detection script might help.
and do something like this
dont just use the code i posted. You need a browser detector/redirector script. you can find some in Source codes, small scripts
maybe this will help, upload the file and include this code on your index page
Code:include('mobile_device_detect.php'); mobile_device_detect(true,true,true,true,,true,'http://www.YOUR-SITE.COM',false);Attached Files
Leave a comment:
-
thanx il go try it now subzeroOriginally posted by subzero View PostWell if will not do that way use your style.css file
HTML Code:Place and mite need a edit to center your ads p.margin { margin: 2cm 4cm 3cm 4cm } Place anywhere is the file you want it to be.... <p class="margin"> <!-- START CUSTOM WIDGETBUCKS CODE --> <script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script> <!-- END CUSTOM WIDGETBUCKS CODE --> </p>
Leave a comment:
-
i think you havent read my previous post :p
the browser detection script might help.
and do something like this
dont just use the code i posted. You need a browser detector/redirector script. you can find some in Source codes, small scripts
Leave a comment:
-
modfiles thanx.
but when i check on my phone the adsense code appears not the mobile code
:confused:
Leave a comment:
-
if are php functions and should be embedded within <?php ?> tag :DOriginally posted by brentg View PostThanx
Please correct me if im wrong:
//if detected as pc browser
if ($browser == "$pc_browser") {
echo "<?php include("adsense.php"); ?><br>";
} else {
//browser detected as mobile
echo "<?php
echo admob_request($admob_params);
?><br>
<?php include("dtrade.php"); ?><br>";
}
it should be like this
Code:<?php //if detected as pc browser if ($browser == "$pc_browser") { include ("adsense.php"); echo "<br />"; } else { //browser detected as mobile include ("admob.php"); echo "<br />"; include ("dtrade.php"); echo "<br />"; } ?>
Leave a comment:
-
Thanx
Please correct me if im wrong:
//if detected as pc browser
if ($browser == "$pc_browser") {
echo "<?php include("adsense.php"); ?><br>";
} else {
//browser detected as mobile
echo "<?php
echo admob_request($admob_params);
?><br>
<?php include("dtrade.php"); ?><br>";
}
Leave a comment:
-
You can easy to decode mobile redirt script
Like in the include to include web and include wap
Leave a comment:
-
the browser detection script might help.
and do something like this
//if detected as pc browser
if ($browser == "$pc_browser") {
echo "google_ads";
} else {
//browser detected as mobile
echo "mobile_ads";
}
Leave a comment:
-
ok seeing this topic is about ads i thought ill post here.
On my wap site i have mobile ads admob etc but i want when pc users browse my site that an adsesne ad will appear instead of admob etc.
Anybody can help?
sorry for the hijack
Leave a comment:
-
Well if will not do that way use your style.css file
HTML Code:Place and mite need a edit to center your ads p.margin { margin: 2cm 4cm 3cm 4cm } Place anywhere is the file you want it to be.... <p class="margin"> <!-- START CUSTOM WIDGETBUCKS CODE --> <script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script> <!-- END CUSTOM WIDGETBUCKS CODE --> </p>
Leave a comment:
-
-
Originally posted by n00b View Posthi, i have adverts on my site but it wont aling center/middle could someone help me? to get it to aling center please? this is the code i have it in a .php and use it as include ("advert.php"); it keeps aling to the left
Code:<!-- START CUSTOM WIDGETBUCKS CODE --><div><script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script></div><!-- END CUSTOM WIDGETBUCKS CODE -->
<!-- START CUSTOM WIDGETBUCKS CODE --><div align="CENTER"><script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script></div><!-- END CUSTOM WIDGETBUCKS CODE -->
Leave a comment:
-
advert help?
hi, i have adverts on my site but it wont aling center/middle could someone help me? to get it to aling center please? this is the code i have it in a .php and use it as include ("advert.php"); it keeps aling to the left
Code:<!-- START CUSTOM WIDGETBUCKS CODE --><div><script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script></div><!-- END CUSTOM WIDGETBUCKS CODE -->
Tags: None
Leave a comment: