Chào mừng bạn đến vói vietvbb.vn. Hãy Đăng nhập hoặc Đăng Ký để tham gia thảo luận tại diễn đàn.



Results 1 to 3 of 3

Mod: A Neater Google Adsense After First Post

  1. A Neater Google Adsense After First Post Detail »»

  2. A Neater Google Adsense After First Post

    Poster Last Online: May 2012  Show Printable Version  Email this Page
    • vB Version: 4.1
      Rating:  (0 votes - 0 average)
      Installs: 4
    • Release Date: 11 Jun 2011
      Last Update: Never
      Downloads: 0
      • Not Supported Not Supported
      • Template EditsTemplate Edits
    Ok, so i haven't found any google adsence products for vb 4 yet that sit neatly under your first post only, on every page. Credits to Miko and my self for a few tiny edits.

    How To Install
    Step.1:
    GoTo Postbit Templates>>open postbit_legacy and add at the very bottom:
    Code:
    <vb:if condition="$post['isfirstshown']">
    <li class="firstpost_advert_container"><div class="firstpost_advert">
          REPLACE THIS WITH YOUR ADSENSE CODE HERE
    </div>
    </li>
    </vb:if>
    Step.2:
    GoTo CSS Templates>>open additional.css and add this code:
    Code:
    .firstpost_advert_container {
        clear: both;
        display: block;
        float: left;
        margin-bottom: 12px;
        position: relative;
        width: 100%;
        border: 1px solid #E5E6F4;
    }
    
    .firstpost_advert {
        with: 100%;
        background: #F1F1FA;
        border: 1px solid #fff;
        min-height: 90px;
        margin: 0;
        padding: 7px;
        text-align: center;
        vertical-align: middle;
    }
    Feel free to customize to your needs, i had to mess around to suit my custom style. I changed the min-height to 90px for a neater look for 728x90 ads and changed margin-bottom: to 18px. But how the code is above is perfect for Vbulletin 4 Default.
    DEMO: http://www.teencelebrity.net/test-tr...html#post20417
    http://www.chatforums.net/general-of...vbulletin.html
    Please Note: im not a coder, i just wanted to share this with others, its VERY easy to add to your styles and looks neat. Good Luck.
    This coding is also different than Mod Version: 1.00, by Allan. You shouldn't have any problems with this and it will do you till a product version comes out.

    Demo:


    Link source: http://www.vbulletin.org/forum/showthread.php?t=241944
    Download Now
    Only members can download files, Click Here to register.
    Show Your Support
  3. The Following 5 Users Say Thank You to leedongquang For This Useful Post:

    bluesky2010 (21 October 2011),huyhoangt6 (11 July 2011),khương tử nha (29 September 2011),thanhthai1 (9 August 2011),windy198x (10 August 2011)

  4. Similar Mods

    1. [Mini Mods] Google Adsense after first post (or other advertisements)
      By MrBlackStar in forum vBulletin 4.x.x Template
      Replies: 7
      Last Post: 6 January 2013, 08:11 PM
    2. [Integration with vBulletin] Ain - Advanced Google AdSense
      By N.E.M D.Â.M in forum vBulletin 3.8 Add-ons
      Replies: 4
      Last Post: 1 October 2011, 02:48 PM
  5. Comments

  6. #2
    Join Date
    23 September 2009
    Posts
    83
    Thanks
    39
    Thanked 9 Times in 3 Posts
    Rep Power
    10
    Hay quá... 3 mark nàh

  7. #3
    Join Date
    8 July 2008
    Age
    31
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    11
    nice. thank you



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •