امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I'm trying to auto-create a new thread when I add a new entity in my add-on. However, I can't use a phrase for the thread message because some variables may not exist so I need to be able to use
PHP:
Read more
<xf:if /> code. So, I was thinking how about using a template, such as something like this:PHP:
کد:
protected function getThreadMessage()
{
$category = $this->category;
$entity = $this->entity;
$message = \XF::someWayToGetTemplateContents($entity)...
Read more
