1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Affliate box

Discussion in 'XenForo Questions and Support' started by madmartigan, Mar 21, 2012.

  1. madmartigan

    madmartigan Active Member

    I want to make a box for google adsens how can i do this box for it?
    I really would appreciate some help with this one.
     
  2. madmartigan

    madmartigan Active Member

    I tryed this and it dont fit at all, its to much to the right what can i do?

    Code:
    <div class="section visitorPanel">
        <div class="secondaryContent">
            <div class="visitorText">
                <h3>Sponsor</h3>
                  <script type="text/javascript"><!--
    google_ad_client = "ca-pub-.....";
    /* 250x250 */
    google_ad_slot = "4679386166";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
            </div>
     
        </div>
    </div>
    
    [​IMG]
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In the sidebar? Try reducing the dimensions in your code:

    Code:
    google_ad_width = 250;
    google_ad_height = 250;
    
     
    madmartigan likes this.
  4. madmartigan

    madmartigan Active Member

    Im not sure if i can do that maby i break some of there terms i will look it up Thank you.
     
  5. TheBigK

    TheBigK Well-Known Member

    Get rid of the

    Code:
      <div class="secondaryContent">
    ..
    </div>
    The secondyContent div add extra padding.
     
  6. madmartigan

    madmartigan Active Member

    I didnt exactly understand can you please paste the code?
     
  7. Vincent

    Vincent Well-Known Member


    He says to just remove the code he posted above, so it becomes this:
    Code:
    <div class="section visitorPanel">
            <div class="visitorText">
                <h3>Sponsor</h3>
                  <script type="text/javascript"><!--
    google_ad_client = "ca-pub-.....";
    /* 250x250 */
    google_ad_slot = "4679386166";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
            </div>
    </div>
     
  8. madmartigan

    madmartigan Active Member

    Thank you for the help but it didnt work
     
  9. Vincent

    Vincent Well-Known Member

    Jake's solution seems like the best one to me.
    I'm pretty sure you are allowed to modify the code, but feel free to look it up.
     

Share This Page