Poll
Is a memberlist plugin necessary or usefull?
Sure it :) 36
Um, I would never use it, but maybe 2
Nope. 0
Total Votes: 38
You must be a logged-in member to vote
A Member list plugin
Posted: 15 December 2008 08:57 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Hi EEers,

For a site I am developing we needed a way to output a list of members from a certain group and have the list link to page where you would see a bio of the group member and a list of articles they have written.

So, using the plugin like so:

{exp:memberlist member_group="1" url="{path=site/articles}" url_extension="member_id"

Gives you this:

<li><a href="http://site.com/articles/1">Zac Gordon</a> <span class="member_group_titles">Super Admin</li>
<
li><a href="http://site.com/articles/2">Saqib Ashraf</a> <span class="member_group_titles">Super Admin</li

We could use the memberlist features that EE and the forum module has built in, but this was on a smaller, more specific scale.  Originally we used the query module to do what we needed, but soon found that a plugin would make our lives easier.

There are some extra features, like the ability to use the username in the url instead of the member_id.  You can also output the title of the member group that the member belongs to.


/********* Update Log: *********/

1.1 Added the ability to be able to orderby screen_name, username, or member_id and sort asc or desc.
1.2 Brian Litzinger added ability for multiple group ID declarations; converted from a single tag to a tag pair so you can control the markup of the results; added a parameter to only get members who have any blog/entry posts.
1.3 Bug fix for a sql query
/*******************************/

File Attachments
pi.memberlist.1.1.zip  (File Size: 3KB - Downloads: 128)
pi.members.1.2.zip  (File Size: 2KB - Downloads: 149)
pi.members.1.3.zip  (File Size: 2KB - Downloads: 223)
 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 29 December 2008 10:40 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  49
Joined  12-26-2007

Hello Zac, I’ve just downloaded your plug-in and it works like a charm. This is just what I’ve been looking for, thank you!

I just wanted to ask you a question: since the output is an unordered list where members are sorted by id, is there a way to sort them alphabetically (or in any other way)? Or is it a feature you’re planning to add in the future?

Profile
 
 
Posted: 29 December 2008 11:34 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Hi LonelyTraveller,

I just wanted to ask you a question: since the output is an unordered list where members are sorted by id, is there a way to sort them alphabetically (or in any other way)? Or is it a feature you’re planning to add in the future?

Can’t believe I didn’t think of that the first time ‘round.

I added the ability to be able to orderby screen_name, username, or member_id and sort asc or desc.

Just check the documentation for the plugin for the details.

You can get the latest copy from the original post.

Please let me know if you have any issues or other ideas.

Glad to hear it is helpful to you!

Cheers,
Zac

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 29 December 2008 11:48 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  49
Joined  12-26-2007

Thanks Zac, I downloaded the latest version and it works perfectly! grin

Profile
 
 
Posted: 20 January 2009 01:25 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  244
Joined  11-02-2006

FYI:

Zac, this is a great plug-in and I was going to adapt it for my need (a Member List page with avatars and other info) until Sue Crocker helped me customise the Member List Rows segment of the Member Profile template accordingly.

(Nice use of the poll option BTW, which I hadn’t twigged to. More use should be made of it, methinks.)

Profile
 
 
Posted: 22 January 2009 05:37 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

@watershed,

Thanks for the link to the modification.  I haven’t seen that the use of “path:” before.  I will have to explore that. 

Maybe I will add a few more features to it in the future, although your approach seems like a much simpler solution wink

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 22 January 2009 05:51 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  244
Joined  11-02-2006

seems like a much simpler solution

Well, yes and no. It depends on how things play out with EE2 with regard to this issue. There was a promising hint yesterday from Sue.

Profile
 
 
Posted: 26 January 2010 05:15 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  450
Joined  02-16-2007

Zac G, I found this post and your original plugin and needed a bit more flexibility, so I tweaked it a bit (ok, a lot).

The main thing I did was allow for multiple group ID declarations, and instead of sending back a UL, I turned the plugin into a tag pair, instead of a single tag. I also added a param to only get members who have any blog/entry posts.

edit: removed code, plugin available for download above.

 Signature 

@litzinger
Bold Minded add-ons

Profile
 
 
Posted: 27 January 2010 08:33 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Huge thanks Brian!  I posted up your revisions as 1.2 in the original post.

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 11 February 2010 10:40 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  807
Joined  09-20-2008

This plugin seems like it should meet my need.  Where do I find the documentation for it?

 Signature 

+++

QB Marketing
Vision + Design
url: www.qbmarketing.com

Profile
 
 
Posted: 11 February 2010 12:55 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Hi qbmarketing, I never really put any documentation together for the plugin, just what’s in the plugin information page after you install it.

Please let me know if you have any questions, though, and I’ll try to answer them or update the plugin information.

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 11 February 2010 12:56 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  450
Joined  02-16-2007

Here is how you use my modified version:

Example with all the available parameters and variables in use. Only member_group is required. The rest are optional.

It basically lists all the members, and can optionally return the total number of posts/entries the member is the author of in the defined weblogs. has_posts will only return members who have a post in ANY weblog, but if you want to restrict what weblog they have posts in, just use the weblog=”” parameter.

{exp:members:loop member_group="6|7|8" has_posts="y" weblog="blog|news"
      
<li><a href="#">{screen_name} ({total_posts}{username} {member_id}</li>
  
{/exp:members:loop} 
 Signature 

@litzinger
Bold Minded add-ons

Profile
 
 
Posted: 11 February 2010 01:11 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Thanks @litzinger!

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 13 April 2010 04:11 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  167
Joined  04-25-2008

Any chance of getting this to work with 2.0?

Profile
 
 
Posted: 14 April 2010 08:12 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  10-24-2007

Hey Macrike,

I’m doing some updates on a few other plugins this weekend and I should be able to bang that out smile

I’ll post up as soon as I have a 2.0 version done,
Zac

 Signature 

Zac Gordon is a Professional Web Educator and owner of a Washington, DC based ExpressionEngine Development Company

Profile
 
 
Posted: 14 April 2010 09:38 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  167
Joined  04-25-2008

Thank you! :D

Profile