[RSS Feed/News] new ForumTypes and ThreadTypes

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I am playing around with probably creating an own Forum/ThreadType.

But, I struggle with extending the ForumType/Discussion class. Are these classes not extendable?

I have this code to test:
PHP:

Code:
<?php

namespace cv6\Test\XF\ForumType;

class Discussion extends XFCP_Discussion
{

    public function getTypeIconClass(): string
    {
        return 'fa-angry';
    }

}

And of cource I added the Class Extension.

I even ran the rebuildForumTypeCache Function. But the Icon is not...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom