Welcome, Guest
Username: Password: Remember me

TOPIC: CSS Help for Public Statistics link

CSS Help for Public Statistics link 3 years 4 months ago #52843

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Hi

Could someone help me with the CSS needed to hide the link to the Public statistics on the completed page?


I want to keep public statistics on but not let the respondents get to them, only my client.

Cheers

Paul
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 4 months ago #52846

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
The link has it's own class "publicstatisticslink".

I didn't test but maybe something like this at the end of your template.css might do the trick:

.publicstatisticslink {
display: none;
}

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:CSS Help for Public Statistics link 3 years 1 month ago #57643

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Apologies for bringing this thread back to life but I still haven't been able to find the correct CSS to be able to hide the link to the Public statistics.

This is important for people working with panel providers as they usually require a live link to see questions with quotas/screenouts. I do not want the respondents to see the statistics.

I tried Mazi's suggestion and any number of other combinations of CSS but nothing seems to hide the link.

Cheers

Paul
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 1 month ago #57661

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
I have finally found the CSS to do what I need and it turns out to be embarrassingly easy :blush:

For anyone interested in achieving this the CSS code needed is just:

#completed a {
display: none;}


Cheers

Paul
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58635

  • thanasix
  • thanasix's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Hey paul,

the solution that you proposed doesn't work for me (LS Version 1.90+ Build 9642).

Although i have managed to hide the public statistics link once in version 1.82 with the following code:

a.publicstatisticslink {
display: none;
}

it doesn't seem to work now in v.1.90+.

any idea?

thanks
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58637

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Hi

That's strange as I am using the v1.90+ too. Which template are you using?
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58638

  • thanasix
  • thanasix's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Paul, first of all thanks for your quick reply.

Now, I'm using a slightly customized copy of default template and i have pasted your code at the end of template.css. Should i put it in a particular place inside this file?

thanks again.
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58640

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
I just placed it at the very end so I'm not sure what's going on.

You could try going through you survey and then when you get to the completed page take a look at the source HTML to see what's going on. Firefox and Safari both have good options for inspecting elements on the page.

Cheers

Paul
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58641

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
I've tested the following with the default template in 1.90 and it hides the link. Add it to the very end of template.css

Have you cleared your cache?

Try it with the shipped default template.
a.publicstatisticslink {
	display: none;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re:CSS Help for Public Statistics link 3 years 3 weeks ago #58644

  • thanasix
  • thanasix's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Everything is fine after clearing the cache..
Thanks a lot for reminding me this tpartner and sorry for the disturbance!
Thanasis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.124 seconds
Donation Image