Welcome, Guest
Username: Password: Remember me

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

Would like to have a button to show statisitics at any point... 2 years 11 months ago #70568

  • paz
  • paz's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70616

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70628

  • paz
  • paz's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Well, at least the current question...
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70641

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70656

  • paz
  • paz's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
That's what I thought. Can you perhaps suggest the easiest way to accomplish this?

Vielen Dank!
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70666

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Would like to have a button to show statisitics at any point... 2 years 11 months ago #70799

  • paz
  • paz's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thanks, I'll take a look at this...
The administrator has disabled public write access.

Aw: Re: Would like to have a button to show statisitics at any point... 2 years 1 month ago #86556

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image