1

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.

http://www.filipina-lady.net/test252/code01.jpg

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.

http://www.filipina-lady.net/test252/code.jpg

http://www.filipina-lady.net/test252/code02.jpg

http://www.filipina-lady.net/test252/code02a.jpg

http://www.filipina-lady.net/test252/code03.jpg

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)

2

Re: Popular Members - Latest Members - Featured Members

Thanks for the guide db3204. The only problem I see is I'd be scared of scaring people off who feel intimidated by a dating site full of beautiful looking people!
But I guess Its definitely good to have control over which members you want featured rather than it being more random.

3

Re: Popular Members - Latest Members - Featured Members

Your welcome John

You could actually have all three member codes on your site. Nothing says you could not put the featured one as a sidebar. If you don't select any member's stars in the CP nothing would display, so having the code on your site can be waiting to be used at one's discretion.

You could select all ugly people too if that brings members smile -- featured gives you the power to do whatever works for your site.

Last edited by db3204 (2009-04-08 12:22:45)

4

Re: Popular Members - Latest Members - Featured Members

Hi db3204,

I display the newest members on a member profile account within a homepage template. Is there a way to add to this code only members of the opposite gender to the logged in one? I tried using:

<!-- IF session.profile_field_gender1_value_id == "1" -->
{members:limit=42,photos=1,cache_time=0,rows="5",profile_location=session.profile_location_id,profile_field_gender1_value == "Woman"}<!-- ELSEIF profile_field_gender1_value_id == "0"  -->
{members:limit=42,photos=1,cache_time=0,rows="5",profile_location=session.profile_location_id,profile_field_gender1_value == "Woman"}<!-- ENDIF -->

Not working. I presume my variables are wrong, could you please assist?

Thanks in advance,
Maxpower

5

Re: Popular Members - Latest Members - Featured Members

Max...I think you went beyond my capacity. Hopefully someone else sees you cry for help with the knowledge to do so. I have been playing around with your code for almost an hour and I can't seem to make it work for what you want. Sorry. I wish I could help.

6

Re: Popular Members - Latest Members - Featured Members

When it comes to session.* (loggedin) profile data you should use {session.profile_gender1} or {session.profile_gender1_id}

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

7

Re: Popular Members - Latest Members - Featured Members

is it possible you can do the same and show online members instead of featured?

8

Re: Popular Members - Latest Members - Featured Members

found out.. No help needed smile.. Thanks for the tutorial db3204

9

Re: Popular Members - Latest Members - Featured Members

This is good. But I like filter with group. Example I creating Favourites group and show only this group members.

Last edited by atomjani (2012-03-27 11:30:44)