We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Member List Custom Field Type

Development and Programming

Christopher Imrie's avatar
Christopher Imrie
57 posts
16 years ago
Christopher Imrie's avatar Christopher Imrie

Hi all,

As an exercise for myself in figuring out the new Custom Field API, I have produced a custom field type that adds a list of your current site members to your publish forms. It also allows you to display different aspects of the selected member’s data in your templates such as email, screen name, group title.

I thought I might as well share it in case someone finds it useful.

There are things that aren’t supported yet which I will be implementing such as restricting to member groups and returning custom member fields.

Tip of the hat goes to Leevi Graham’s Member List field type for EE 1.6.x which I have been using for a while now, and inspired the creation of this field type for EE2.0

Download: cki.member_list.ee_addon.zip

Docs: http://github.com/ckimrie/cki.member_list.ee_addon

UPDATE: 1.1 Separates the members into their respective groups in the publish form drop down list UPDATE 2 1.1.1 Fixed a bug for when using the single tag syntax in templates UPDATE 3 1.3 Bug fixes and compatibility changes for EE 2.0.2PB

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
16 years ago
Lisa Wess's avatar Lisa Wess

Awesome Christopher. Did you submit this to Devot://ee?

Duh, nevermind. found it!.

       
Christopher Imrie's avatar
Christopher Imrie
57 posts
16 years ago
Christopher Imrie's avatar Christopher Imrie

Yes Lisa, its listed in Devot:ee, and somehow its in their “hot addons” area, which is a bit of surprise.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
16 years ago
Lisa Wess's avatar Lisa Wess

I’ve seen requests for this type of functionality a fair bit, so not that much of a surprise to me. Thanks for releasing it!

       
2ways's avatar
2ways
16 posts
16 years ago
2ways's avatar 2ways

Hi Christopher,

This is exactly what I need. Thanks.

Having a problem at the moment in that the {member_list} tag is not being parsed. The {if} logic is working and the {site_url} tag is being parsed, but not {member_list}.

<div class="uni_contact">
    {if uni_contact==""}
        <a href="mailto:[email protected]" class="contact_button" target="_blank" rel="noopener">Contact Us</a>
    {if:else}
        <a href="http://{site_url}member/email_console/{member_list}" class="contact_button" target="_blank" rel="noopener">Contact Us</a>
    {/if}
</div>

The whole thing is sitting between channel entries tags for the channel with the cki member list field in it.

Any thoughts? Thanks.

       
2ways's avatar
2ways
16 posts
16 years ago
2ways's avatar 2ways

One more thing:

The permissions on directory and code are 755.

I don’t receive any other discernible errors when trying to use it.

Thanks.

       
Angie Herrera's avatar
Angie Herrera
365 posts
15 years ago
Angie Herrera's avatar Angie Herrera

Like 2ways, I can’t get this to work either - the {member_list} tag doesn’t get parsed. No errors, permissions set to 755. Hoping to get some help here?

       
Christopher Imrie's avatar
Christopher Imrie
57 posts
15 years ago
Christopher Imrie's avatar Christopher Imrie

What version of EE are you running?

       
Angie Herrera's avatar
Angie Herrera
365 posts
15 years ago
Angie Herrera's avatar Angie Herrera

2.0.2pb01, Build 20100430

       
Christopher Imrie's avatar
Christopher Imrie
57 posts
15 years ago
Christopher Imrie's avatar Christopher Imrie

I’ve updated the fieldtype and have tested and confirmed it is working with EE 2.0.2PB. Let me know if you are still having issues.

       
matthewcarleton's avatar
matthewcarleton
25 posts
13 years ago
matthewcarleton's avatar matthewcarleton

Hi I am trying to use this add on in a way I am no sure it is capable of but would love some feedback or advice.

I want to have two different authors added to a post and then allow only those two authors to be able to view the comments section of a post on the front end. I am trying something like this, but without success. Any advice would be wonderful!

{exp:channel:entries channel="listing" url_title="{segment_3}"}
{if logged_in_member_id == author_id OR logged_in_username == {member_list}"{screen_name}"{/member_list}}
Here are the comments on this listing.
{/if}
{/exp:channel:entries}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.