Skip to Content Skip to Menu

Order/position number (or rank) in lists

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
15 years 7 months ago #92938 by softforge
Order/position number (or rank) in lists was created by softforge
Is there any way to show the order or position numbers of the users in a CB list? This shouldn't be too hard as it would be the index of each user in the list + 1.

Here is an example of what I mean. I want to rank my users by the number of hits they have recieved. So I set up a list that orders the users by hits descending. Great! But I want to display their rank in the list to produce a result like this:

[code:1]
Rank | Name | Hits
+
+
1 | Joe Blogs | 84
2 | Jim Blogs | 65
3 | James Blogs | 42
4 | John Blogs | 18
[/code:1]

Can this be done with Community Builder?

Thanks in advance.

Post edited by: softforge, at: 2009/03/26 18:56

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

  • Rapunzl
  • Rapunzl
  • OFFLINE
  • Posts: 149
  • Thanks: 7
  • Karma: 108
15 years 7 months ago #92940 by Rapunzl
Replied by Rapunzl on topic Re:Order/position number (or rank) in lists
Just add that field to the list... wallah! :cheer:

Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in or Create an account to join the conversation.

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
15 years 7 months ago #92946 by softforge
Replied by softforge on topic Re:Order/position number (or rank) in lists
OK, but I want this to be dynamic so if Jim Blogs got more hits then Joe Blogs, his rank would become 1 automatically and push Joe into second place.

Do you understand what I mean?

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

  • Rapunzl
  • Rapunzl
  • OFFLINE
  • Posts: 149
  • Thanks: 7
  • Karma: 108
15 years 7 months ago #92953 by Rapunzl
Replied by Rapunzl on topic Re:Order/position number (or rank) in lists
I think so, and it will be "dynamic" if your rank field is dependent on the number of hits. Every time someone pulls up the list, it should be current, however, if someone moves in rank while you have the list up, it will not automatically refresh without further scripting if I'm correct.

Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in or Create an account to join the conversation.

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
15 years 7 months ago #93235 by softforge
Replied by softforge on topic Re:Order/position number (or rank) in lists
OK, I have built a rank plugin which dynamically displays a user's rank based on another numeric CB field. You can get it here:

www.joomlapolis.com/component/option,com_mtree/task,viewlink/link_id,392/Itemid,55/

Feel free to post comments and suggestions here.

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum