What I would like to have:
-Users submit their score
-A page lists the scores from highest to lowest

I was thinking that using a users profile entry to record the score would make things easy.
Is there a way to have a page dynamically list that profile field for all the users in order of highest to lowest?

Comments

vm’s picture

create a "scores" content type using CCK.module
then use the views.module to list the scores.
_____________________________________________________________________
Confucius says:
"Those who seek drupal answers should use drupal search!" : )

Antikx’s picture

OK, I think I'm understanding.. but then how do users enter the score?
Sorry for my ignorance.

vm’s picture

when you create a new content type call it "score"
then they goto create content
and click on the "score" link that will be added when you create it. same as blog entry, forum thread, page, story, so on so forth.

documentation for both modules CCK and Views can be found in the handbooks -> contributed modules section
_____________________________________________________________________
Confucius says:
"Those who seek drupal answers should use drupal search!" : )

Antikx’s picture

Thanks again for the quick response.
I've been reading the Views info in the handbook and searching, but what I want to do seems to be uncommon.

I'm having a problem similar to this person: http://drupal.org/node/182704
I'm able to list the score without using CCK (i.e. by a profile field) but the problem is that there is no field called "User: Name" so I'm using "Node: Author" but then I get tons of duplicates.

All I want to do is display the user's name next to their score.
I'm really exhausted, so I must be overlooking something simple.

vm’s picture

A nevets explains in that thread you link to. The profile module does not produce nodes. That being said, you either have to turn your user profiles into nodes, using node profile.module, wait for views2 to come out which wont be until Drupal 6 is release (no. there is no release date) or use CCK. add a name field and a score field.
_____________________________________________________________________
Confucius says:
"Those who seek drupal answers should use drupal search!" : )

Antikx’s picture

OK, thanks again for the info.
I ended up using CCK and hacked together something that should work:
http://www.tyrannozaurus.com/?q=phearscoreboard

Appreciate all the info, help and patience.