test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • m3dw Friend
    #868998

    Hi,

    I try to find out how to exclude some users from the filter module.
    All Admins should not be in the list.

    How to achive this?

    Thx.

    Luna Garden Moderator
    #869412

    Hi,

    In order to exclude user from filter list in Module, go to file:

    modules\mod_jak2filter\helper.php

    find :

    $query = 'SELECT DISTINCT '.$display.' AS name, u.id AS value
                FROM #__users AS u 
                INNER JOIN #__k2_items AS i ON u.id = i.created_by
                WHERE i.published = 1
                ORDER BY u.id';
    

    change to:

    $query = 'SELECT DISTINCT '.$display.' AS name, u.id AS value
                FROM #__users AS u 
                INNER JOIN #__k2_items AS i ON u.id = i.created_by
                WHERE i.published = 1
                AND u.id NOT IN (42)
                ORDER BY u.id';
    

    42 is the id of user that you want to exclude, each id is separated by comma

    m3dw Friend
    #870730

    Thats not cool! It works of course but on update all changes will be gone!?

    Please consider to implement this as an option in the module! Thats a common feature. I dont think that I´m the only one who needs that.

    Just a simple text field where I can put in the comma seperated ids.
    I cant tell the customer to go into that file if he needs to exclude more users.

    I bought a membership just for this module.

    Thx so far.

    Luna Garden Moderator
    #871258

    It’s also a cool feature, we’ll consider to update it in the upcoming version of this extension. Please check our blog post for update news.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Luna Garden 8 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum