Topic: Popular Members - Latest Members - Featured Members
Here I want to show you the Featured member code and how it works.
This was tested on version 2.5.2, but I think it works with 2.5.1 as well.

Definitions and Codes:
1. Latest or New members displays latest members who join the site
Code: {members:limit=22,photos=1,cache_time=0,cache_name="new"}
2. Popular members displays images based on profile rating
Code: {members:limit=22,photos=1,cache_time=0,cache_name="popular",orderby="ratings",orderdir="desc"}
3. Featured members displays images that the admin selects in the CP.
Code: {members:limit=22,featured=1,cache_time=0,cache_name="feature"}
There are different variances of the above codes. For example you could add code to display images of lady members only (profile_gender1=2). You can adjust the number of images you want displayed (change 22 to another number), etc. The one thing that needs to be different for each is the cache_name.
In header.tpl I'm going to replace the Popular member code with the Featured member code.




If you want to change the heading to something other than popular members, you can do so in the language file. If you are lazy like me, you can also change it directly in the template.
Here is the default code for popular members. You want to focus on the h3 tags if you want to change the heading.
<h3 class="members">{lang:"core","home_popular_members"}</h3>
<div class="block members">
{members:limit=22,featured=1,cache_time=0,cache_name="feature"}
</div>
Below, I typed the new heading directly in the template v.s. changing the language file. Either way works, but like I said, I took the lazy way of doing it.
<h3 class="members">Top Members</h3>
<div class="block members">
{members:limit=22,featured=1,cache_time=0,cache_name="feature"}
</div>
Last edited by db3204 (2009-04-07 21:20:46)