XF 1.1 Template if url is

  • Thread starter Thread starter account8226
  • Start date Start date
A

account8226

Guest
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.
 
This will allow you to check the requestUri:

Rich (BB code):
<xen:if is="{$requestPaths.requestUri} == '/members/admin.1/'">

</xen:if>

If your forum is in a subdirectory then you need to include that:

Rich (BB code):
<xen:if is="{$requestPaths.requestUri} == '/community/members/admin.1/'">

</xen:if>
 
This will allow you to check the requestUri:

Rich (BB code):
<xen:if is="{$requestPaths.requestUri} == '/members/admin.1/'">
 
</xen:if>

If your forum is in a subdirectory then you need to include that:

Rich (BB 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.
 
Top Bottom