امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hello,
Here is the scenario. I want to show the "XFES: Similar Threads" widget in a "Question" type forum only. Here is the condition which works well:
PHP:
I also created a custom user field to allow users to hide the widget as a preference. Instead of creating a template modification to check the user preference (which works without problem), I wanted to use the widget display condition as I can access the Profile entity in the...
Read more
Here is the scenario. I want to show the "XFES: Similar Threads" widget in a "Question" type forum only. Here is the condition which works well:
PHP:
$context.thread.discussion_type == 'question'I also created a custom user field to allow users to hide the widget as a preference. Instead of creating a template modification to check the user preference (which works without problem), I wanted to use the widget display condition as I can access the Profile entity in the...
Read more
