adding adsense text after first post in vBullletin

Discussion in 'Forum Management' started by CarterMarkham, Jul 4, 2008.

  1. #1
    I have added text ads like found here after first post, but I would like to put a background around it like on here. Can someone explain that?
    Thanks
    CM
     
    CarterMarkham, Jul 4, 2008 IP
  2. Dreads

    Dreads Well-Known Member

    Messages:
    1,884
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    150
    #2
    go to your
    css file in the skin
    and find background there they will have a css code. take that code and place it inside the adsense code
     
    Dreads, Jul 4, 2008 IP
  3. CarterMarkham

    CarterMarkham Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    can you be more specific. I am not too knowledgeable with VB. I see many CSS attributes.
     
    CarterMarkham, Jul 4, 2008 IP
  4. CarterMarkham

    CarterMarkham Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    so I added this in ad_showthread_firstpost right before the google code. I looked at the source code on the DP forum. I did have to change the width to 97% in order to keep it from expanding beyond users posts. I am not sure why it does it at 100%. My forum is fluid style.

    <div style="padding:6px 0px 0px 0px" id="adsense_inline">
    <table class="tborder" cellspacing="1" border="0" width="97%" align="center">
    <tr>
    <td class="alt2" style="padding:1px" align="center">
     
    CarterMarkham, Jul 4, 2008 IP
  5. CarterMarkham

    CarterMarkham Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    This is what I mean

    [​IMG]
     
    CarterMarkham, Jul 4, 2008 IP
  6. CarterMarkham

    CarterMarkham Greenhorn

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    I could really use some help :)
     
    CarterMarkham, Jul 5, 2008 IP
  7. hermione_dies

    hermione_dies Peon

    Messages:
    309
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Add the css background attribute to the table/div in your html using the "style" attribute. e.g. style="background-color: #FFF"

    About the width: The 97% is probably referring to the whole screen. If you look at the posts they don't stretch out to the whole screen which means they're not 100% width. Keep messing with the percentage until you find that it fits with the posts, or add margins or padding.
     
    hermione_dies, Jul 7, 2008 IP