2013-09-02, 02:29 PM
in mybb, there is badword filter, that we can use it for replace badwords, but how can i use it for replace bad url ??? users use diffresnt page of one bad url, and i have to define alot of filters.
such as :
badurl.com
badurl.com/badpage.php
badurl.com/folder/badpage.php
and more link page...
how can i use one filter to replce all of the page of one url ???
i guss that i change 'parse_badwords' funtion in class_parser.php
specially this part :
$message = preg_replace("#(^|\W)".$badword['badword']."(\W|$)#i", "\\1".$badword['replacement'].'\\'.$index, $message);
i ask this question before :: http://community.mybb.com/thread-143333.html
but users dont understand my mean !! i ask it in difrent way.
such as :
badurl.com
badurl.com/badpage.php
badurl.com/folder/badpage.php
and more link page...
how can i use one filter to replce all of the page of one url ???
i guss that i change 'parse_badwords' funtion in class_parser.php
specially this part :
$message = preg_replace("#(^|\W)".$badword['badword']."(\W|$)#i", "\\1".$badword['replacement'].'\\'.$index, $message);
i ask this question before :: http://community.mybb.com/thread-143333.html
but users dont understand my mean !! i ask it in difrent way.