Thread: new filter
View Single Post
#1
03-28-2009, 12:15 PM
Senior Member
From Fort Worth, Texas
Joined in Dec 2008
904 posts
john_smith
I think there is got to be a news filter (anti-m blocker) in the front page because sometime it violates the guidelines of the site, by listing anti-immigrant news articles. It should be easy.... as easy as adding 3 lines of code...
inside the news loop..
PHP Code:
if(strpos("amnesty",strtolower($data)) !== false && strpos("illigal alliens",strtolower($data) )!==false  || strpos("fairus",$data) !== false  ){
 continue;

Basically what this does is, it blocks an article that contains the words "amnesty" and "illigal Alliens" both on the same articles, or anything that mentions the position's site
__________________
`
Daca.Us, a site for dreamers like you and me:


Daca.Us
Last edited by john_smith; 03-28-2009 at 12:49 PM..
Post your reply or quote more messages.