You can answer most of those questions yourself: /** * Modify the sort data SQL query for getting additional fields if needed * * @event core.viewforum_modify_sort_data_sql * @var int forum_id The forum_id whose topics are being listed * @var int start Variable containing start for pagination * @va...
Hello, How could I go about adding a custom "sort filter" in the viewforum? Is there an extension that has already done this as a reference? Is this the correct event? core.viewforum_modify_sort_data_sql the code for the event is this? (topicrow.SCORE its from my extension) class sort_poin...
david63 wrote: ↑Sun Mar 13, 2022 9:37 pm
Assuming you are trying to do this in a template then you should be able to achieve that by using the in command in Twig
<!-- IF topicrow.TOPIC_TITLE in 'Wordx' -->test<!-- ENDIF -->
error 500 after posting a new topic Do you have access to the server error logs? That will point to where the problem is with that code. For completeness though, here is the full code. static public function getSubscribedEvents() { return [ 'core.submit_post_end' => 'pm_topic', ]; } public function...
Seems you still don't understand what a == b means. That condition means, whenever a user is creating a topic, it will trigger a message. Test it, debug it with var_dump or print_r & you will get some answers. no? WHERE topic_poster = $data['poster_id']; 'core.submit_post_end' when the new topi...
There is a difference in first post as first post ever made or first post as just every first topic post or just first post by some random poster in some random topic. Which one it is? To OP: That is what i said. It will keep sending messages whenever it meets condition a == b & no, there is no...