Can't find filter for New posts

steve1209

Beta Tester
Evening everyone,

There was recently a filter posted that would only show English Forums new posts (when clicking on new posts button) and not Russian, I lost the filter and can't find the post can someone help with the user filter again (I'll be glad when all User filters stay).

Appreciate the help again!!
 

Rian

Beta Tester
Evening everyone,

There was recently a filter posted that would only show English Forums new posts (when clicking on new posts button) and not Russian, I lost the filter and can't find the post can someone help with the user filter again (I'll be glad when all User filters stay).

Appreciate the help again!!
is this the one

Code:
forum.adguard.com###cat1
 

steve1209

Beta Tester
Rian,

Very Sorry for the very slow response that user filter doesn't work for me on English only new posts??
 

steve1209

Beta Tester
Boo,

No when I click on the NEW post tabs see here it shows new posts for Russian and English forums, I only want to see new posts for English forum, there was a filter shown for that, not long ago
 

mysteriously

Beta Tester & Translator
I made the update yesterday:
http://forum.adguard.com/showthread.php?1605-Adguard-Forum-acting-weird&p=30127&viewfull=1#post30127

forum.adguard.com###cat1

Hides only Rusian subforum part at main forums page. To hide russian posts on "new posts" lists I just made filter that block all content with russian letters. Yes I know it's not perfect but I don't know any other way to do it.



You can export your user filters to text file, then add my filters from pastebin to this text file and reimport user filters.
 
Last edited by a moderator:

avatar

Administrator
Staff member
Administrator
Interesting question, Steve:)

Add these 3 rules to your User Filter:
Code:
forum.adguard.com#%#var AG_check_russian = function(li) { var forumTitle = li.find('.threadpostedin a[href^="forumdisplay.php"]').attr('title'); if (forumTitle.match(/[А-я]+/)) { li.remove(); } };
Code:
forum.adguard.com#%#var AG_remove_russian = function() { $('#searchbits>li').each(function() { AG_check_russian($(this)); });};
Code:
forum.adguard.com#%#window.addEventListener('DOMContentLoaded', function() { AG_remove_russian(); });
 

Boo Berry

Moderator + Beta Tester
Moderator
I wonder if there's a mod or option within the forum software to allow this as an account setting?
 
Top