Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
BETTER search user function with filter list in members_list module
  • Posted: 02.03.2008, 20:02
     
    mdee24
    rank:
    Softmore Softmore
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    67
    Hi, I've already put this in PN feature requests and in another forum but nearly no one respond, so, I try to put here with hope icon_smile , that someone responds... what do you think about it? ->

    ---------
    I'm looking for a better search user function, so, as I already put in http://noc.postnuke.…group_id=5&atid=104. For those of us, who wants to create a big community (social networking) sites is this the one of first needed function - not only searching users by URL, name or real name, as it's already in Members List module (who will find someone by his URL? icon_smile )

    It should be like when admin create new property label called (for example) COUNTRY, then you can find user by COUNTRY or filter this country in Member List module and you should get all the members with this country. Simple and easy.
    Something like this is already in Admin->user->search user, but this search function is only for admins and you can search users only by a few defaults property labels, not every new ones which admin create.

    I think it should not be so hard to implemented this to Search and Member List module but it's over my skills unfortuately
    -----------

    thanks,
    Martin
  • Posted: 02.03.2008, 21:07
     
    kaffeeringe.de
    rank:
    Professional Professional
    registered:
     September 2002
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    879
    I think those are great ideas. And I would like to have these features, too. Now we only have to find someone to implent them icon_wink

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the PostNuke Steering Committee
    Read The Zikulan's Blog
  • Posted: 02.03.2008, 21:48
     
    espaan
    rank:
    Helper Helper
    registered:
     August 2003
    Status:
    offline
    last visit:
    03.12.08
    Posts:
    469
    Doesn't seem like that much work if I look in the code.
    Just to be sure. You mean that you can search like in Users->Admin->Search Users but then with a dynamic list like it is being set in the Account Panel properties list? So the properties you have available in the Profile.

    There is an API function in the Profile module that gets the active properties. This should be used to present you with a dynamic list based on the active properties in the Members list search. You want to search for multiple properties at the same time i guess?



    edited by: espaan, Mar 02, 2008 - 05:48 PM

    --
    http://www.erikspaan.nl
    http://www.avwijchen.nl

    Involved in: BlankTheme, StoriesExt, Menu templates, SmugView and zikula.nl
  • Posted: 02.03.2008, 22:37
     
    mdee24
    rank:
    Softmore Softmore
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    67
    Hi guys, @kaffeeringe.de - thanks!
    @espaaan -

    espaan

    Just to be sure. You mean that you can search like in Users->Admin->Search Users but then with a dynamic list like it is being set in the Account Panel properties list? So the properties you have available in the Profile.

    Exactly icon_smile

    espaan

    You want to search for multiple properties at the same time i guess?

    and exactly icon_wink
  • Posted: 03.03.2008, 18:38
     
    espaan
    rank:
    Helper Helper
    registered:
     August 2003
    Status:
    offline
    last visit:
    03.12.08
    Posts:
    469
    Hi,
    been digging a little deeper in the code. It is not that easy as I initially thought icon_frown
    Currently the userapi of members_list only supports searching for one item at a time. That's ok if you use a radiobutton to select what your searching for, but not for serveral items at once.
    It is possible off course, but not all that easy as far as I can see now.

    --
    http://www.erikspaan.nl
    http://www.avwijchen.nl

    Involved in: BlankTheme, StoriesExt, Menu templates, SmugView and zikula.nl
  • Posted: 03.03.2008, 20:07
     
    mdee24
    rank:
    Softmore Softmore
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    67
    espaan - ok, anyway thanks for your work.
    Hope someone will implement this, as I think this is really useful feature for many PN users (if not for all) :)



    edited by: mdee24, Mar 03, 2008 - 05:42 PM
  • Posted: 09.05.2008, 17:59
     
    Kaik
    rank:
    Freshman Freshman
    registered:
     December 2006
    Status:
    offline
    last visit:
    28.10.08
    Posts:
    15
    Hi all,
    I have add new function similar to Members_List_userapi_getall the name is
    Members_List_userapi_search.

    In templates any field we want show for search look like this:

    Code

    <input id="memberslist_xxx" type="hidden" name="searchby[X]" value="_PROPNAME" />
    <label for="memberslist_xxx">_PROPNAME</label>
    <input id="memberslist_xxx" type="text" name="value[X]" value=""  maxlength="50" />

    At the end we have two tables... then we are putting them together and filtering empty ones... after that we are building SQL...

    demo :) I have left echo $SQL
    http://www.mojecoven…rs_List&func=search
    (~1000 users not many have their fields filled because I create them recently)

    The biggest plus of that way is that you can in easy way add new search field based on above example...

    For now there is only on way to look for value using LIKE '%value%'...


    I have no idea how much it will load database icon_razz

    I will post that Members_List to download but first I want to make more changes because more things is loading too long... blocks for example.

    Say what you think about it :D







    edited by: Kaik, May 10, 2008 - 02:37 PM

    --
    rgfdgafgaf

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula