Ask Your Question
0

Displaying the number of people

asked 2012-07-01 10:22:31 -0500

kintali gravatar image kintali flag of United States
111 5 1 9
http://www.cs.princeton.e...

The front page of askbot shows the number of total questions. Similarly, I think it is a good idea to show the number of people on the people page at http://askbot.org/en/users/

  • Please add this feature.

  • Also, please let me know how to add this feature. What table stores the people information ?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-07-01 14:52:01 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

The view function askbot.views.users.show_users (see in git repository) already contains variable called users.

If you add user count to the request context:

data = {
    ...
    'user_count': users.count(),
    ...
}

Then the number can be shown in the template that's rendered by the view.

Please consider forking askbot at github, making this fix and then give a pull request.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-07-01 10:22:31 -0500

Seen: 43 times

Last updated: Jul 01 '12