XF 2.2 new ForumTypes and ThreadTypes

Hoffi

Well-known member
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:
<?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 changed.
 
Not sure what might be wrong but those classes are definitely extendable so this should work.
 
Not sure what might be wrong but those classes are definitely extendable so this should work.
So the class above should chnage the icon? Thats not my itention, it's only a test if it works.

Thanks, okay. Will dive into this.
 
Back
Top Bottom