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

how to put a textblock underneath the breadcrumb ?

Discussion in 'XenForo Questions and Support' started by erich37, Apr 4, 2011.

  1. erich37

    erich37 Well-Known Member

    how do I put a textfield with the orange border underneath the breadcrumb, so ctually the same as it is at the "Welcome Block" from Floris.
    But I do not want the Welcome-Block-plugin, just a simple textbox.

    Into which template would I need to enter this and what would be the code for this ?

    Many thanks.
     
  2. Tilkißey

    Tilkißey Well-Known Member

    open PAGE_CONTAINER template
    find this line
    HTML:
    <xen:hook name="page_container_content_top" />
    add below your content
    text area's code
    HTML:
    <div class="importantMessage">your content</div>
     
    erich37 and Brogan like this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Look for this in the PAGE_CONTAINER template and include your own template or code below it:
    Code:
    <xen:hook name="page_container_breadcrumb_top">
    <div class="breadBoxTop">
        <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
        <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
    </div>
    </xen:hook>
    I would suggest using the important message class.

    Edit: Ninja'ed by Mr Fox ;)
     
    erich37 and Tilkißey like this.
  4. Tilkißey

    Tilkißey Well-Known Member

    Paul's hook is well for scene then mine =)
     
  5. erich37

    erich37 Well-Known Member

    do you have any which css to use to make it show the same as the box which Floris created for his plugin?
    I do not need a hook, just the normal HTML and CSS-code.

    Appreciate your help!
     
  6. Tilkißey

    Tilkißey Well-Known Member

    class importantMessage's css is defined for orange bg and border as u wish ;)
    it is XenForo's default class
     
    erich37 likes this.
  7. erich37

    erich37 Well-Known Member

    thank you very much!
     
    Tilkißey likes this.
  8. erich37

    erich37 Well-Known Member

    what would be the code to show this block to "guests" only ?

    Meaning that this block disappears for logged-in users ?

    Many thanks!
     
  9. James

    James Well-Known Member

    Wrap it in:
    Code:
    <xen:if is="!{$visitor.user_id}">
    //code
    </xen:if>
    
     
    erich37 likes this.
  10. erich37

    erich37 Well-Known Member

    like this ?

    Code:
    <xen:if is="!{$visitor.user_id}">
    <div class="importantMessage">your content</div>
    </xen:if>
    
     
    James likes this.
  11. James

    James Well-Known Member

    You got it!
     
    erich37 likes this.

Share This Page