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

Guest Welcome message

#1
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 ;)
 

Brogan

XenForo moderator
Staff member
#3
#6
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
 

Brogan

XenForo moderator
Staff member
#9
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.