Warning: The author of this contribution does not provide support for it anymore.

Users Choose Displayed Forums

No search show some hidden forums that user didnt want - Users Choose Displayed Forums

No search show some hidden forums that user didnt want

by SeewolfPK » Mon Apr 30, 2012 3:10 pm

I installad the great Mod : Users Choose Displayed Forums
viewtopic.php?t=1637795

It worked very fine but if User go via search and/or new unread post the unwanted forums are still shown.

Is there a possibility to change this?
SeewolfPK
Registered User
Posts: 52
Joined: Sat Apr 09, 2011 10:18 am
Contact:

Re: No search show some hidden forums that user didnt want

by mathdlir » Mon Jul 01, 2013 9:16 am

Hello SeewolfPK. there is a problem! in Permission, i cant find any option about "Can choose not to see forum".

Can you help me?
mathdlir
Registered User
Posts: 36
Joined: Thu Jun 27, 2013 10:08 am
Contact:

Re: No search show some hidden forums that user didnt want

by Miriam » Tue Dec 03, 2013 11:23 pm

If you want to exclude results in New Posts / Unread Posts - link, change the code as described:
In search.php
FIND:

Code: Select all

    $not_in_fid =    


BEFORE ADD:

Code: Select all

    //++++++++++++++++++++++++
    
$acl_f_display array_keys($auth->acl_getf('f_display'true));
    
$user_index_array unserialize($user->data['user_index']);
    
$ex_fdisplay_ary = array();
    if (
is_array($user_index_array))
    {
        foreach(
$user_index_array as $key=>$value)
        {
            if (!
$value)
            {
                if (
in_array($key$acl_f_display))
                {
                    
$ex_fdisplay_ary[$key] = 1;
                }
            }
        }
        
$ex_fid_ary array_unique(array_merge($ex_fid_aryarray_keys($ex_fdisplay_ary)));
    }
    
//+++++++++++++++++++++++++ 
All my posts reflect my ideas on how to solve a problem. To use them on your board is your cup of tea and in your reach of responsibility also.
And yes: I appreciate each and every "Thank You".
User avatar
Miriam
Registered User
Posts: 147
Joined: Tue Dec 30, 2008 3:40 pm
Location: looking over your shoulder
Name: Miriam
Contact: