advert help?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • brentg
    replied
    thanx for all the help

    Leave a comment:


  • n00b
    replied
    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:


  • n00b
    replied
    Originally posted by modfiles View Post
    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

    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:


  • n00b
    replied
    Originally posted by subzero View Post
    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>
    thanx il go try it now subzero

    Leave a comment:


  • modfiles
    replied
    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:


  • brentg
    replied
    modfiles thanx.

    but when i check on my phone the adsense code appears not the mobile code

    :confused:

    Leave a comment:


  • modfiles
    replied
    Originally posted by brentg View Post
    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>";
    }
    if are php functions and should be embedded within <?php ?> tag :D
    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:


  • brentg
    replied
    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:


  • subzero
    replied
    You can easy to decode mobile redirt script

    Like in the include to include web and include wap

    Leave a comment:


  • modfiles
    replied
    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:


  • brentg
    replied
    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:


  • subzero
    replied
    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:


  • n00b
    replied
    its still to the left with that code... modfiles

    my site!

    <!-- START CUSTOM WIDGETBUCKS CODE --><div align="CENTER"><script src="http://api.widgetbucks.com/script/ads.js?uid=OdQH5FQfygNxd1QH"></script></div><!-- END CUSTOM WIDGETBUCKS CODE -->
    Last edited by n00b; 16.05.09, 14:09.

    Leave a comment:


  • modfiles
    replied
    Originally posted by n00b View Post
    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 -->

    <!-- 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:


  • n00b
    started a topic advert help?

    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 -->
Working...
X