امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hi,
I have a custom thread field called "Display order". The custom field is a number , however it looks like it returns as a string in the query, I have tried casting to an integer but nothing seems to work. Essentially the order will look like
1, 10, 11, 12, 13
The finder query
PHP:
Read more
I have a custom thread field called "Display order". The custom field is a number , however it looks like it returns as a string in the query, I have tried casting to an integer but nothing seems to work. Essentially the order will look like
1, 10, 11, 12, 13
The finder query
PHP:
کد:
$recent_activities = $this->finder('XF:Thread')
->where('user_id', '=', $user->user_id)
->where('discussion_type', '=', 'article')
->order('CustomFields|ProfileOrder.field_value'...
Read more
