Search found 3 matches

by iRusel
Mon May 14, 2018 2:24 pm
Forum: Extension Writers Discussion
Topic: core.search_get_topic_data
Replies: 7
Views: 745

Re: core.search_get_topic_data

Show your full public function search_newpost_filter($event) as it is now, github is not updated. public function search_newpost_filter($event) { $forums_id = $this->user->data['user_newpost_filter']; if($forums_id) { $forums_id_ary = str_replace(" ", ",", $forums_id); $forums_i...
by iRusel
Mon May 07, 2018 11:02 pm
Forum: Extension Writers Discussion
Topic: core.search_get_topic_data
Replies: 7
Views: 745

Re: core.search_get_topic_data

Try appending to the existing sql_where value instead of overwriting it. Also you should be using $db->sql_in_set() : $event['sql_where'] .= ' AND ' . $this->db->sql_in_set('t.forum_id', $forums_id_ary); Not working. SQL: SELECT t.*, f.forum_id, f.forum_name, tp.topic_posted, tt.mark_time, ft.mark_...
by iRusel
Mon May 07, 2018 3:49 pm
Forum: Extension Writers Discussion
Topic: core.search_get_topic_data
Replies: 7
Views: 745

core.search_get_topic_data

Tell me how to change forums_id. Made through sql_where: $forums_id_ary = array("1","2","3"); $event['sql_where'] = " t.forum_id IN (" . $forums_id_ary . ") "; The code works, but shows all the topics in the "New Messages" section, there is...

Go to advanced search