DREAM Act Portal Forum

DREAM Act Portal Forum (http://dreamact.info/forum/index.php)
-   Suggestions (http://dreamact.info/forum/forumdisplay.php?f=28)
-   -   new filter (http://dreamact.info/forum/showthread.php?t=10157)

john_smith 03-28-2009 12:15 PM

news filter
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  ){

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

VaeVictis 03-28-2009 01:37 PM

Re: new filter
I was just thinking that. Those anti articles on the front page are seriously depressing.

Nick 03-28-2009 02:16 PM

Re: new filter
The news are taken from all across the internet.

We can use those as an indicator of what is going around in the news or we can filter it to just what we like. The answer is not simple.

john_smith 03-28-2009 06:23 PM

Re: news filter
what we could do is , we could have an special "news page" which doesn't filter anything. Basically a clone of current news page, just name it something else. called it news2 or something, if someone wants to see what is going on , in the word, they just go to that page; at the same time new people to the site would be protected against disgusting news articles. what do you think of that idea?

Nick 03-28-2009 07:09 PM

Re: new filter
Yet another solution is filter them for the front page, but not filter them for the News Room page. That could be a good middle ground. I'll bring this up with the team.

john_smith 03-29-2009 03:12 PM

Re: new filter
that sounds good, also it would be good to add a link for http://dreamact2009.com/ petition in "for students" page or for organizers or on both

Nick 04-03-2009 01:02 PM

Re: new filter

john_smith 04-04-2009 09:33 PM

Re: new filter
Good job! :-D

john_smith 09-18-2013 03:01 AM

Re: new filter
Looks like i influenced the policy of no anti-immigrants news articles, I didn't remember this lol, glad it has worked out great

All times are GMT -4. The time now is 07:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.