امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I want to do something like
How to use strpos in templates xenforo 2.1
- if featured image present show featured image
- else if thread first post message contain Media='youtube' tag show bbcode
- else show website logo
<xf:if is="$thread.custom_fields.FeaturedThumbs">
<img src="/forums/images/thumb_cache/{$thread.thread_id}.jpg" />
<xf:elseif is="{{ strpos($thread.FirstPost.message, 'MEDIA=youtube') !== false }}" />
<div class="tooltip-content-inner">
{{ bb_code($thread.FirstPost.message...
Click to expand...
How to use strpos in templates xenforo 2.1
