Ignored Forums
Author Message
A simple plugin which adds a listbox on the UserCP -> Edit Options page.  Users can select forums they wish to "ignore".
New posts/threads from ignored forums will simply be hidden from the View New/Today's Posts lists (will also work with the View New Subscribed Posts plugin).
(This post was last modified: 11-23-2014 07:58 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: ignoreforum.php (6.44 KB)
Plugin Version: 1.1
Last Updated: 11-23-2014, 07:58 PM

Downloads: 902
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
ALUX Offline
Junior Member
**
Posts: 1
Joined: May 2013
Post: #11
RE: Ignored Forums
Where exactly do I upload the ignoreforum.php file?

I uploaded it to the plugins folder and nothing.
05-23-2013 01:21 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #12
RE: Ignored Forums
Sounds right but nothing.

My Blog
05-23-2013 04:39 PM
Find all posts by this user Quote this message in a reply
FBI Offline
Junior Member
**
Posts: 19
Joined: Apr 2010
Post: #13
RE: Ignored Forums
this plugin simply very usable,

and I add some message on top of search result,
So, user know whether there is a setting to exclude forum search.

just add:

PHP Code:
$plugins->add_hook('search_results_end', 'ignoreforum_search_guide');

and function

PHP Code:
function ignoreforum_search_guide () {
    global $mybb, $ignoreforum_search_guide_message;
// display message on top of Search Result to let user know, there is an "ignored forum" setting
    $ignoreforum_search_guide_message = '<div class="pm_alert">Too many search result? Don\'t like some forum? Click <a href="usercp.php?action=options" target="_blank">here</a>, and select your ignored forum!</div>';
}


and add this after {$header} in search_results_threads TEMPLATES

Code:
{$ignoreforum_search_guide_message}


It will display additional message alert with directive link to usercp like this screenshot Smile
   


Too lazy to edit/modifying? Here the attachment plugin



Attached File(s)
.php  ignoreforum.php (Size: 6.94 KB / Downloads: 463)

Brand New Portal from MyBB Indonesia  to get local Bahasa (language) support.
My Unique Plugin here Smile
(This post was last modified: 05-09-2014 03:51 AM by FBI.)
05-09-2014 03:42 AM
Find all posts by this user Quote this message in a reply
sheaky Offline
Junior Member
**
Posts: 2
Joined: Jul 2014
Post: #14
RE: Ignored Forums
Thanks FBI. very useful.
Also ZiNgA BuRgA you may want to know this works in 1.8 beta 2 also
07-16-2014 12:18 PM
Find all posts by this user Quote this message in a reply
sheaky Offline
Junior Member
**
Posts: 2
Joined: Jul 2014
Post: #15
RE: Ignored Forums
Will also work with the View Unread Posts plugin.
Just replace this code in line 127
Quote:if($mybb->input['action'] != 'getnew' && $mybb->input['action'] != 'getdaily') return;
with this
Quote:if($mybb->input['action'] != 'getnew' && $mybb->input['action'] != 'getdaily' && $mybb->input['action'] != 'unread') return;
(This post was last modified: 07-17-2014 01:02 PM by sheaky.)
07-17-2014 01:01 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #16
RE: Ignored Forums
v1.1: update compatibility string for MyBB 1.8

My Blog
11-23-2014 08:01 PM
Find all posts by this user Quote this message in a reply


Forum Jump: