Welcome to the Question2Answer Q&A. There's also a
demo
if you just want to try it out.
Login
Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
About
Wiki
Welcome to the Q&A for
Question2Answer
.
If you have questions about the platform,
click here to ask
and please use English.
If you just want to try Q2A, please use the
demo
, which also grants admin access.
Apr 29:
Q2A 1.5.2
Related questions
How to add the total number of questions, answers, comments and users in the side panel?
Is there a way to output the total number of questions in wordpress theme
How do I hide the categories number count in the side bar?
How to move categories showing in top of the page to side bar, in 1.2 beta?
How to show all questions with answers and comments under one tag?
How can I add the Facebook iframe or xfbml (like botton) to the side bar ?
How to show top 10 users in sidebar?
Add latest tags to home page on the side-bar
Best way to move related questions from bottom to side panel in 1.3?
How to set quantity of shown users in sidebar ?
All categories
Q2A Core
(3,241)
Plugins
(350)
How to show total number of questions, answers and users in side bar?
+4
votes
Hi All,
How to show total number of questions, answers and users in side bar?
Any idea?
Want to show like this..
------
200 Questions
250 Answers
50 Users
-----
Thanks..
sidebar
database
asked
Jun 24, 2010
in
Q2A Core
by
R
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+2
votes
Best answer
I'm afraid there's not currently an easy way to do this.
But if you're comfortable with PHP programming, you can modify the HTML output using an advanced theme. The information itself can be retrieved using the following snippets of PHP code:
require_once QA_INCLUDE_DIR.'qa-db-admin.php';
global $qa_db; // required to get database resource handle
qa_get_option($qa_db, 'cache_qcount'); // returns number of questions
qa_get_option($qa_db, 'cache_acount'); // returns number of answers
qa_db_count_users($qa_db); // returns number of users
answered
Jun 24, 2010
by
gidgreen
Show 3 previous comments
Including counts of users/questions/answers.
source code please anybody!
Please
log in
or
register
to add a comment.