Favorites 2.1 Author Rank

This function shows a list of authors ranked by the number of times their entries have been saved as a favorite.

{exp:favorites:author_rank limit="5"}

{rank}. {screen_name} ({count})<br />

{/exp:favorites:author_rank}

This code will display the names of the five authors whose entries have been added to the most Favorites lists, along with their rank and the number of Favorites lists they are on.

1. Joe Smith (200)
2. Bob Jones (192)
3. Henry Adams (100)
4. Mary Stone (90)
5. Henrietta Lincoln (34)

Parameters

limit

{exp:favorites:author_rank limit = "5"}

The 'limit' parameter, as in its common usage, limits the number of authors displayed to the number you select.

member_id

{exp:favorites:author_rank member_id = "not 5|7|20"}

The 'member_id' parameter allows you to limit the ranked list to specific members or exclude specific members from the list. Provide a pipe delimited list of member ids to include and add the word 'not' in front to exclude those people.

username

{exp:favorites:author_rank username = "not zeus|charlie"}

The 'username' parameter allows you to limit the ranked list to specific members or exclude specific members from the list. Provide a pipe delimited list of usernames to include and add the word 'not' in front to exclude those people.

Variables

All member fields including custom member fields are available.

rank

{rank}

The {rank} variable will display a member's relative rank in a list.

count

{count}

The {count} variable will display the number of favorites lists an author is on.

Conditionals

All member fields, including custom member fields, are available as conditionals.