امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I would like to display an additional value for every thread in the thread view and the thread list (forum view), which i calculate with an php function.
My problem: what is the best way to make a variable useable in an tempalte from an php file? And How?
I found 2 solutions. The callback tag in template (which calls the php function) or the possiblity to add the variable to an object like $forum (in my case $thread) in php.
What solution is more efficient and advisable in my case...
Read more
My problem: what is the best way to make a variable useable in an tempalte from an php file? And How?
I found 2 solutions. The callback tag in template (which calls the php function) or the possiblity to add the variable to an object like $forum (in my case $thread) in php.
What solution is more efficient and advisable in my case...
Read more
