امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I've been searching but I don't see anything about strpos. What would be the equivalent in a template?
Basically, I want to do this:
Code:
because I just need to see if the URL contains certain words so I can do an if/else.
Basically, I want to do this:
Code:
کد:
<xf:if is="strpos({$xf.uri}, 'forums') !== false">
forums
<xf:else />
{$xf.uri}
</xf:if>
because I just need to see if the URL contains certain words so I can do an if/else.
