Modify search in discuz7.2. on the php page, I want to modify the search in discuz. the php page search type is not the original title and full-text search, but must be changed to post and user, that is, to search all posts that match the post + keyword, another is to search all posts under the user + keyword. How to modify it? in a hurry !!!!!!! ------ Solution ---------- modify the search. php page of discuz 7.2
Ladies and gentlemen, I want to modify the search in discuz. the php page search type is not the original title and full-text search, but must be changed to post and user, that is, to search all posts that match the post + keyword, another is to search all posts under the user + keyword. How to modify it? in a hurry !!!!!!!
------ Solution --------------------
You can learn from Baidu and use keywords in special formats to cut words. for example, if you want to search for topics related to the "user group" published by the admin user, you can enter "user :( admin) user group ", then, perform regular expression processing on $ keyword to obtain the username and keywords, and then spell SQL. You cannot simply search for the "admin user group" as this way, which makes it very difficult to process the program.
------ Solution --------------------
No 7.2 code modification is nothing more than the files in source \ module \ search. check that your search corresponds to that module.
------ Solution --------------------
Block a piece of code in search. php ..
// If ($ allowsearch = 2 & $ srchtype = 'fulltext '){
// Periodscheck ('searchbanperiods ');
//} Elseif ($ srchtype! = 'TITLE '){
// $ Srchtype = 'title ';
//}