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

Guest Welcome message

Discussion in 'XenForo Questions and Support' started by TazDevilLooney, Dec 12, 2010.

  1. TazDevilLooney

    TazDevilLooney Active Member

    Hi there, How would i go about adding a message above the forum block for guests?

    Example : If you’re just joining us here at blar,blar, welcome! Our community works together to bring you the information found here, we are looking forward to you being a part of it! Registration is simple and quick, and a one time thing.

    Thankyou ;)
     
    erich37 likes this.
  2. steven s

    steven s Well-Known Member

    There is a thread. I'm sure someone will beat me to it.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    TazDevilLooney likes this.
  4. steven s

    steven s Well-Known Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    I'll leave the next one for you ;)
     
  6. TazDevilLooney

    TazDevilLooney Active Member

    Grate stuff, could you give a bit of a idiots guide to that Brogan,
    I have no problem placeing the information in the template, however....

    Do i make a template for this or place the text between the lines "<xen:include template="welcome_message" />"

    Thanks guys
     
  7. TazDevilLooney

    TazDevilLooney Active Member

    you answered before i replyed, ill check the links, thanks
     
  8. steven s

    steven s Well-Known Member

    Name your template welcome_message and then use <xen:include template="welcome_message" />" to place it.
     
    TazDevilLooney likes this.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    You create the template called "welcome_message" and write your text in that template.
    Then use the xen:include to add it to the other templates.

    Or you can do it all inline between the IF statement, e.g.
    <xen:if is="!{$visitor.user_id}">
    <div class="importantMessage">Hello, welcome to our forum</div>
    </xen:if>

    It's up to you how you do it but I prefer to use separate templates.
     
    TazDevilLooney likes this.
  10. TazDevilLooney

    TazDevilLooney Active Member

    Grate stuff guys, got it working, thankyou so much :) It was driving me crazy. hehe :)
     

Share This Page