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

XF 1.1 Ad in first post

Discussion in 'Styling and Customization Questions' started by lazer, Jan 25, 2014.

  1. lazer

    lazer Well-Known Member

    Hi guys

    What code do I need, and where do I put it, to achieve this in the first post?

    code.PNG

    Thanks
     
  2. FredC

    FredC Well-Known Member

    lazer likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    lazer likes this.
  4. lazer

    lazer Well-Known Member

    Thanks guys but this is for (currently) a 1.1 install.
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    The above post still applies.

    Just disregard the respsonsive elements, for example:

    Code:
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
        <div style="min-height: 150px; margin-left: 10px; float: right">
            Ad code here
        </div>
    </xen:if>
     
    lazer likes this.
  6. lazer

    lazer Well-Known Member

    Ah, ok thanks :)
     
  7. FredC

    FredC Well-Known Member

    Alternately you can click on the "Version History" tab and download the last 1.1 compatible version.
     
  8. RoldanLT

    RoldanLT Well-Known Member

    Wait, May I ask @Brogan
    On this presentation: http://xenforo.com/community/attachments/code-png.65712/
    How can I force it to display in first post even if I have quotes beside it?
    I want the quotes to automatically shrink for the ads to display fine without overlapping the ads.
    Without using z-index.

    Thanks !
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Add overflow:auto to the SP.

    upload_2014-1-25_16-32-7.png
     
    semprot and RoldanLT like this.
  10. RoldanLT

    RoldanLT Well-Known Member

    Awesome:


    Thanks a lot @Brogan !
     

    Attached Files:

  11. RoldanLT

    RoldanLT Well-Known Member

  12. Brogan

    Brogan XenForo Moderator Staff Member

    I don't use it but you can try adding overflow to the class.
     
  13. RoldanLT

    RoldanLT Well-Known Member

    I tried but it breaks the design :)
    Maybe I'll remove it then.
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    This is now default for the quote and spoiler elements from 1.3 Beta 3.
     
  15. RoldanLT

    RoldanLT Well-Known Member

    I must suggest, Instead of applying it to BB Code Quote only, apply it to all BB Code Block.
    With the current update, BB Code Code, Html, Php will still not work beside adsense.
     

Share This Page