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

Xenforo for DUMMIES

swatme

Well-known member
#1
Hi

i want to learn about xenforo modding but sad to say theres still no book
like XENFORO FOR DUMMIES.

so my question is,
i want to use the IF CONDITIONALS
example:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">

<xen:if is="{$visitor.user_id}==x">
This content will show to user x only
</xen:if>

<xen:if is="{$post.position} == 0">
This content will show after the first post
</xen:if>

The red text above, what do you call them? variables?
if i call them variables, how and where will i know
the variable of that specific item.

let say, thread posts. After 5 threads, i want to add text "hello"

<xen:if is="{$threadpostsometing.position} == 5">
HELLO
</xen:if>

How will i know the variable name of the thread post?

thanks for any help