XenForo
Administrative
- Thread starter
- Admin
- #1
Is there a way to find posts by max characters?
I wanna do something like in this query
SELECT * FROM xf_posts WHERE CHAR_LENGTH(message)<10;
with $finder, something like
PHP:
PHP:
is this possible...
Read more
ادامه مطلب...
I wanna do something like in this query
SELECT * FROM xf_posts WHERE CHAR_LENGTH(message)<10;
with $finder, something like
PHP:
Code:
public function isCharacterLengthLongerThan($max = 10)
{
$this->where(CHAR_LENGTH(message), '<', $max);
return $this;
}
Code:
$finder = \XF::finder('XF:Posts');
$users = $finder->isCharacterLengthLongerThan(15)->order('post_date', 'DESC')->limit(10);
is this possible...
Read more
ادامه مطلب...