RisteD
Guest
Member
PHP:
Code:
Read more
Continue reading...
Code:
Code:
class Thread extends XFCP_Thread
{
public function actionApprove(\XF\Entity\Thread $thread)
{
$this->thread = $thread;
$userpoints = $this->thread->User['points'] ?? 0;
$topicpoints = $this->thread->Forum['points_per_topic'];
$replypoints = $this->thread->Forum['points'];
\XF::dumpSimple($this->thread);
$totalpoints = $userpoints + $topicpoints...
Read more
Continue reading...