Is there a specific tag that will allow me to show a list of the newest members in a non-forum template?
I know I can call a query, just prefer to use a tag if there is one… thanks!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 10, 2011 6:46pm
Subscribe [3]#1 / May 10, 2011 6:46pm
Is there a specific tag that will allow me to show a list of the newest members in a non-forum template?
I know I can call a query, just prefer to use a tag if there is one… thanks!
#2 / May 11, 2011 9:10am
Hi, Carlyn.
No, there isn’t one, but as you mentioned, this would be easy to do via a query. Or you could create a plugin to do so.
Does that help?
#3 / May 11, 2011 12:07pm
Thanks Sue. I’m not very php-savvy to I’ll stay away from attempting a plugin. For now I’ll just pull a query.
#4 / May 11, 2011 10:36pm
Carlyn,
What sort of output would you need?
I only ask as I am in the process of creating a plugin that will do this very thing. At the moment you can pull out any of the fields from the exp_members table and output them to a template like this :
<h2>Recent Members</h2>
<p>{exp:mb_recent_members<br />
limit="2"<br />
order="join_date"<br />
sort="desc"<br />
prefix="mb_"<br />
variables="username|screen_name|join_date|email"<br />
}<br />
{if mb_count == "1"}</p><h3>{mb_total_results} result{if mb_total_results > 1}s{/if}</h3><p>{/if}<br />
{if mb_count == mb_total_results}<strong>LAST ITEM - </strong>{/if}{if mb_count == "1"}<strong>FIRST ITEM - </strong>{/if}{count} - {mb_username} - {mb_screen_name} - {mb_join_date} - {mb_email}</p>
<p><br />
{/exp:mb_recent_members}At the moment it’s a 1.x plugin but I will be converting it to 2.x once it’s completely finished. I will probably also add in the ability to fetch data from the exp_member_data table too although at the moment I’m just concentrating on outputting the standard exp_members table data.
PM me with an e-mail address if you’d like to beta test it as I will probably providing it for download on devot-ee.com once it’s completed and may well charge for it. As a beta tester though you will get it (and any updates) for free.
Best wishes,
Mark
#5 / May 11, 2011 10:46pm
Hi, Mark.
Carlyn is using EE 1.x. 😊
#6 / May 11, 2011 10:50pm
Hi, Mark.
Carlyn is using EE 1.x. 😊
I did mention above that this is at the moment a 1.x plugin 😉
I’ll be converting it to 2.x once it’s all working okay in 1.x
#7 / May 12, 2011 3:44pm
Hi, Carlyn.. does that 1.x plugin sound like something you’d like? We can move this to the Community Health forum…
#8 / May 12, 2011 3:46pm
Yes Sue. I’ve followed up with Mark privately and will be testing the plugin soon. Thank you!
#9 / May 12, 2011 4:03pm
Sounds good. Since this is turning into a third party solution, closing the thread. Feel free to start a new thread if you have any more questions.