Would like to have a button to show statisitics at any point...

More
5 years 9 months ago #70568 by paz
paz created the topic: Would like to have a button to show statisitics at any point...
I'd like to add a button to the UI to allow a user to
see the statistics at any point.

What would the php code look like to invoke a call to generate
the stats window?

It looks like so much is embedded within one call to
generate_statistics() making it a little challenging to
modularize/customize it.

Please Log in to join the conversation.

More
5 years 9 months ago #70616 by Mazi
Mazi replied the topic: Would like to have a button to show statisitics at any point...
By statistics do you mean the statistics for the current question or the general public statistics ( docs.limesurvey.org/statistics&structure...=y#Public_statistics )


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago #70628 by paz
paz replied the topic: Would like to have a button to show statisitics at any point...
Well, at least the current question...

Please Log in to join the conversation.

More
5 years 9 months ago #70641 by Mazi
Mazi replied the topic: Would like to have a button to show statisitics at any point...
That isn't possible without additional coding and hacking the source code.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago #70656 by paz
paz replied the topic: Would like to have a button to show statisitics at any point...
That's what I thought. Can you perhaps suggest the easiest way to accomplish this?

Vielen Dank!

Please Log in to join the conversation.

More
5 years 9 months ago #70666 by Mazi
Mazi replied the topic: Would like to have a button to show statisitics at any point...
First have a look at docs.limesurvey.org/How+to+contribute+new+features because this feature will be useful to everybody.

Then I think a good first start is to have a look at qanda.php where you will find a function for each question type like "do_shorttext()" which creates the questions HTML. You can then add a new question attribute like "Show stats at question" (I think common.php or common_functions.php holds the question attribute data).
The at qanda.php if that attribute is enable, add some additional code. Code for generating tgraphs can be found at statistics_user.php and /admin/statistics.php and /admin/statistics_functions.php.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago #70799 by paz
paz replied the topic: Would like to have a button to show statisitics at any point...
Thanks, I'll take a look at this...

Please Log in to join the conversation.

More
4 years 11 months ago #86556 by Mazi
Mazi replied the topic: Aw: Re: Would like to have a button to show statisitics at any point...
paz, did you succeed to code this?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now