Member List Custom Field

Developer

Christopher Imrie

3rd Party (Free)

536 downloads (last 90 days)

Download v1

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Fieldtype

Tags

This is an EE2.0 custom fieldtype that will add a drop down list of all your site members to your ExpressionEngine publish form. When displaying the field in your ExpressionEngine templates the custom field tag will allow you to retrieve any information stored for that member, such as Email, Screen name, Member ID, Member group name etc.

This addon was originally released by Moresoda but is now maintained by Christopher Imrie. See here for more details.

CKI Member List Custom Field

ft.cki_mblist.php

This is a custom fieldtype that will add a drop down list of all your site members to your ExpressionEngine publish form.  When displaying the field in your ExpressionEngine templates the custom field tag will allow you to retrieve any information stored for that member, such as Email, Screen name, Member ID, Member group name etc.

Info

Developed by Christopher Imrie, http://www.christopherimrie.com
This field type is inspired by LG Member list (http://leevigraham.com/cms-customisation/expressionengine/lg-member-list/)

Requirements

     
  • ExpressionEngine 2.0

Installation

     
  • Copy ft.cki_mblist.php to your system/expressionengine/fieldtypes/ folder.
  •  
  • Select CKI Member List as the field type when creating a new custom field type

How to use

The field type supports single tag and tag pairs, depending on whether you want more than one element of member data at any one time.

The member_id of the selected member can be produced by simply using the Field name of your custom field with no parameters.  If you want to retrieve a specific item of member data, you can use the get parameter to specify what data you want returned.

Simple Example

Lets say you have defined a custom field with a field label of Member_list and field name member_list and through the publish form selected a member with an ID of 3.  You can produce the Member ID of the selected member by simply calling the field name tag on its own:

{exp:channel:entries channel="blog"}
    <p>You selected member ID {member_list}</p>
{/exp:channel:entries}

Returns:

 <p>You selected member ID 3</p>

Parameter Example

Using the same member you have selected in the above example, we can retrieve this member’s email address by using the get parameter:

    
        {exp:channel:entries channel="blog"}
            <p>You selected member email is {member_list get="email"}</p>
        {/exp:channel:entries}
    

Returns:


<p>Your selected member email is john@smith.com</p>

Tag Pair Example

If you are looking to display a block of many pieces of member data within a template, it will most be likely be useful to use the tag pairs, as they can allow you reduce the amount of markup needed.  The get parameter is ignored when using tag pairs.

Using the same scenario as described in the example above, you could do the following with tag pairs:

    
        {exp:channel:entries channel="blog"}
            {member_list}
                <p>Name: {screen_name}</p>
                <p>Email: {email}</p>
                <p>Member of: {group_title}</p>
            {/member_list}
        {/exp:channel:entries}
    

Returns:

<p>Name: John Smith</p>
<p>Email: john@smith.com</p>
<p>Member of: Super Admin</p>
    

Parameters

Get
    get="screen_name"

Allows you to specify what member data to return. Accepts field names of the exp_members and exp_member_groups database tables.

Some valid field name examples:

     
  • member_id
  •  
  • username
  •  
  • screen_name
  •  
  • email
  •  
  • group_title
  •  
  • bio
  •  
  • avatar_filename

Download Member List Custom Field

EE Support Downloads Add-On Version Release Date
Not Specified Download 1

Member List Custom Field Links

This entry was created December 7, 2009, 12:29 pm.
This entry was last updated May 24, 2013, 10:32 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

2 Reviews:

OwanH 02.09.12

OwanH
Rating - {addon_rating_average}

This add-on provided functionality I desperately needed for an EE-based customer management portal I am currently developing for my business. With it I am easily able to associate channel entries with a member owner (for things like the app’s ticketing system, customer company profiles, etc.)

chichilatte 10.22.10

chichilatte
Rating - {addon_rating_average}

Love this addon to bits, but the docs here aren’t quite right. To get a member_id, you do {your_custom_fieldname get=“member_id”}