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

XF 1.1 Template if url is

A

account8226

Guest
#1
Hello XenForo, I would like to know the conditional if that would show a message on only one page on my forum.

(I would like to show a FAQ only on my profile).

Thanks :)

Best regards.
 
A

account8226

Guest
#4

Jake Bunce

XenForo moderator
Staff member
#5
This will allow you to check the requestUri:

Code:
<xen:if is="{$requestPaths.requestUri} == '/members/admin.1/'">

</xen:if>
If your forum is in a subdirectory then you need to include that:

Code:
<xen:if is="{$requestPaths.requestUri} == '/community/members/admin.1/'">

</xen:if>
 
A

account8226

Guest
#6
This will allow you to check the requestUri:

Code:
<xen:if is="{$requestPaths.requestUri} == '/members/admin.1/'">
 
</xen:if>
If your forum is in a subdirectory then you need to include that:

Code:
<xen:if is="{$requestPaths.requestUri} == '/community/members/admin.1/'">
 
</xen:if>
Hey,

How could I disallow signatures in private messages ?

<xen:if is="{$requestPaths.requestUri} == '/conversations'">

</xen:if> isn't working.