XF 2.0 how to extend thread XFCP_Thread with listener

Hello,

Why not extend via class extensions

admin.php?class-extensions/add

Regards
XenConcept
 

Attachments

  • Screenshot_1.webp
    Screenshot_1.webp
    10.6 KB · Views: 22
You are mixing class extensions with static code event listeners.

Adding a method to an entity class must be done via the class extension system.
 
Also, your regex has a case insensitive match option but you are testing for img|IMG bbcode tags.

Additionally, that regex will fail on the new XF2.1 [img] format. Example; [IMG align="left" width="337px" alt="PHP versions"]
 
Also, your regex has a case insensitive match option but you are testing for img|IMG bbcode tags.

Additionally, that regex will fail on the new XF2.1 [img] format. Example; [IMG align="left" width="337px" alt="PHP versions"]
ahh then how can i get the external image thoud i raget
 
Top Bottom