advert help?

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

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

    #2
    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 -->

    Comment


      #3
      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.

      Comment


        #4
        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>
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          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

          Comment


            #6
            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";
            }

            Comment


              #7
              You can easy to decode mobile redirt script

              Like in the include to include web and include wap
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                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>";
                }

                Comment


                  #9
                  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 />";
                  }
                  ?>

                  Comment


                    #10
                    modfiles thanx.

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

                    :confused:

                    Comment


                      #11
                      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

                      Comment


                        #12
                        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

                        Comment


                          #13
                          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

                          Comment


                            #14
                            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>

                            Comment


                              #15
                              thanx for all the help

                              Comment

                              Working...
                              X