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

LG Member List - Custom field type extension

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Update 1.1.1: * Added member grouping. * Added group filtering. * Added size option to the select box.

Update 1.1.2: Minor Bug Fix

Update 1.1.3: New documentation added.


Hey guys,

Not sure if anyone can use this but I just wrote a quick custom field that displays all your members.

Currently there is just a list based on screen name. Members are now sorted by group

In the future I plan to extend this so that administrators can choose which groups are displayed. DONE

Unzip and Install in the extension directory as normal.

The extension has two settings.

The first is a comma separated list of group IDs. The second is the size attribute of the select box (good for long member lists)

Post any feedback.


There is new documentation and download available on my Expression Engine customisation resource!

All updates / downloads will be made available at the link above

If you get the following error: Undefined variable: field_type in [path to system here]/cp/cp.publish_ad.php on line 7197[ish] The solution is here: http://ellislab.com/forums/viewthread/38843/#181791

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Another thing… The field type just stores the member_id so you will need to perform a custom query to get the member details.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Update on this extension.

For longer member lists I have added the size setting in the extension settings. See the screenshots above for how this can affect the rendering.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Just a quick note to everyone using this extension…

There is new documentation and download available on my Expression Engine customisation resource!

All updates / downloads will be made available at the link above

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

If I’m not mistaken, I think this extension disables the other field types when creating a new custom field. I installed it this morning, and went to create some custom fields. When I tried selecting any of the fields (notably ‘File’ - which is Mark Huot’s extension) - none of the options popped up for it. Same with any of the other field types.

Had to uninstall for now!

Using: 1.6.1 - 20071114

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
If I’m not mistaken, I think this extension disables the other field types when creating a new custom field. I installed it this morning, and went to create some custom fields. When I tried selecting any of the fields (notably ‘File’ - which is Mark Huot’s extension) - none of the options popped up for it. Same with any of the other field types. Had to uninstall for now! Using: 1.6.1 - 20071114

I’ll try and check this out for you today 😊

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

One other issue I have…it seems that the comma-separated list isn’t working for me. Only the first group is being ‘read’. I’m using 1.1.5. See attached shot of the settings. Those folks in group 6 (clients) are showing up, but no one from group 7. Any idea what’s happening here? Thanks!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

OK, I’m a freaking idiot who hasn’t had enough sleep due to an impending deadline - ignore me. This works fine.

One thing that would put this over the top is being able to use it multiple times with different settings. For example, if I want groups 6,7 to show up in one weblog, but groups 6,8 and 9 to show up in another weblog. Or is this possible already and I missed it in the docs?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

OR, I’d like to be able to select multiple members from the list (instead of just one) and store that list in the field (comma or pipe delimited).

So, here’s my wish list:

  • allow multiple fields to use this field type with individual settings
  • allow to be multiselect

Having this be a multiselect would really save my hide on this project right now!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey Ryan,

Heres a *** hacked *** together version of the extension that add multiple selection.

I don’t have time to add per custom field settings right now but I may add them in the future. I would like to add that kinda functionality to all my extensions when I get time.

Hopefully this will save your hide. I did some quick testing and it seems to be working well. You may need to disable and re-enable the extension for the new version and update the settings. (too busy to add an upgrade script right now).

For everyone else. This is not really an official release. It works but unless you need it you should wait for the code cleanup.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

You are the man. THE man. The MAN. I’ll give it a whirl and let you know if it works out. Thanks so much for taking the time to even “hack” something together.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

He is indeed the man. Now all that we need is a preference to set whether to use a comma or a pipe character as the delimiter 😉 😊 😉

Right I’m definitely getting out of here now as I am causing way too much trouble.

Thanks again for doing this Leevi.

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
You are the man. THE man. The MAN.

No worries… First thing I saw when I woke up… That extension could do with a complete rewrite…

For version 2 I am planning an ajax search which displays avatars and emails, and member reordering. Should be nice.. Just waiting for EE 2.0 now 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Now all that we need is a preference to set whether to use a comma or a pipe character as the delimiter

That one is a candidate for a hack on the part of the user 😊

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

I hear you I hear you 😉

Best wishes,

Mark

       
1 2 3

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.