![]() |
| |||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
| Feature Requests & Bug Reports Is there anything you'd wish to see in Phex, or did you find some bugs? |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| Would you like to help us, refine the filters? Currently you can look at them in the following file: SourceForge.net Repository - [phex] View of /phex/trunk/src/main/java/phex/rules/DefaultSearchFilterRules.java They work in the following way: # Create the adult rule Rule adultRule = new Rule(); # the condition when the filter gets active FilenameCondition adultcondition = new FilenameCondition( ); adultcondition.addTerm( "blah" ).addTerm( "foo" ) -> activate when the search contains any one (or several) of the terms "Blah" and "Foo". # Add the condition to the rule adultRule.addCondition( adultcondition ); # What should happen: Don't show it in searches. adultRule.addConsequence( FilterFromSearchConsequence.INSTANCE ); # Should it be active all the time? adultRule.setPermanentlyEnabled( false ); # is it a default rule of Phex (can't be deleted)? adultRule.setDefaultRule( true ); # Now assign it to the name. ADULT_FILTER_RULE = adultRule; If you want to contribute a default rule, you can just create it in phex and then give us the parameters, so we can add it. You can see the terms we filter on for adult material in the link above. If you think, some should be changed, just tell us which Alternatively you can naturally also post a patch... Best wishes, Arne
__________________ -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| |