Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1918

Extension Writers Discussion • Re: Modifying post data

$
0
0
Hello!

Which event should I use to parse custom BB codes in post_text:
(view topic)

Code:

static public function getSubscribedEvents()    {        return [            'core.viewtopic_modify_post_data' => 'load_language_on_setup',        ];    }    /**     * Load the Acme Demo language file     *     acme/demo/language/en/demo.php     *     * @param \phpbb\event\data $event The event object     */    public function load_language_on_setup($event)    {        //die();    print_r($event);
so I can access $event[post_text], and change that.

Thanks!

Statistics: Posted by zvunks — Thu Feb 29, 2024 12:01 pm



Viewing all articles
Browse latest Browse all 1918

Trending Articles