ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

member list with custom profile fields

September 15, 2008 1:41pm

Subscribe [8]
  • #16 / Sep 26, 2008 12:57pm

    GDmac - expocom

    350 posts

    You could use the query module for a simple search…

    {exp:query sql="SELECT member_id, username, screen_name FROM exp_members 
    WHERE (username LIKE '%{segment_3}%' OR screen_name LIKE '%{segment_3}%') "}
    
      <a href="/system/index.php?C=myaccount&id={member_id}">{username}</a>
    {screen_name}
    
    
    {/exp:query}
  • #17 / Sep 27, 2008 9:31pm

    kc4imr

    9 posts

    I am relatively new to the whole EE and coding in general, but I think I maybe in a similar position…

    I have purchased the User Module and have been able to set up a page that lists each of my members (displaying just username) under their designated member group id. Additionally, I have created a custom template generating a public profile for members.

    If I am understanding this right, there is no easy way to have the member list entries feature links that direct to the public profile template, which would then populate the with that specific members information. Is that correct?

    If not could someone point me in the right direction of getting this issue resolved?

  • #18 / Sep 28, 2008 7:24am

    GDmac - expocom

    350 posts

    Hello Kc4, are you talking about the solspace user module?
    If so, i haven’t looked at/bought that one. Maybe try the
    support forums at the solspace website.
    -
    In the example above (query for a list of users) i have used
    the found id’s to link to the control-panel for editting user settings:
    /system/index.php?C=myaccount&id;={member_id}

    To show a profile on the front of the website, using the default member profiles,
    you could link to: /index.php/member/{member_id}

  • #19 / Nov 26, 2008 5:16pm

    Bluebloc

    111 posts

    I haven’t yet, but I seem to remember a built in EE member search tag?

    The member search tag only allows you to search weblog/s for entries authored by that member searched for.

    If that’s what you’re looking foe the code used within the simple search form is:

    <label for="member_name">Member Name:</label>
    
    <input type="text" name="member_name" id="member_name" maxlength="100" size="40" />

    Has anyone found a way to allow a website visitor to search the member list for a particular screen_name or member custom field?

    I know it can be done through the discussion forum template theme_member.php but I need non-members to be able to search the membership.

    A kind of gross solution is to create a weblog of all members and allow users to do a simple search of that weblog. I reckon it’s a gross solution because i’d have to maintain two concurrent member lists.

    Am I missing something obvious or are non-logged in users unable to search the memberlist? Is it not possible to search members through the fron-end templates?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases