Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

red asterisk

  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206447 by mpi0920
red asterisk was created by mpi0920
Hi, I found the code to remove the red asterisk. However, I am totally struggling in finding the "custom css". Is it possible that not everyone has the right to edit this in a template? And is there any other way I can display this in my template?
I have found a place where css is and where "inherit" is currently displayed. But I am warned to change something there. If I insert the code to remove the red asterisk there now, then probably the general css setting will not be there anymore, right?

I would be so grateful for any help because I really don't know how to find this custom css. Could I change it in the source code of the question? I tried but it didn't work so far.

Thank you!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206466 by tpartner
Replied by tpartner on topic red asterisk
Did you extend the theme?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago - 3 years 6 months ago #206469 by mpi0920
Replied by mpi0920 on topic red asterisk
Hi tpartner, I think this is my problem. I don't know how to extend a theme and I don't have a theme editor. I've been searching the forum, the manual and google for hours, but I can't find an answer on how to extend a theme and get the theme editor. The buttons, as they are shown in the manual, do not exist for me. I have the version 3.23.6+200929
Last edit: 3 years 6 months ago by mpi0920.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206477 by tpartner
Replied by tpartner on topic red asterisk
You will need to get permissions to edit themes.

- manual.limesurvey.org/New_Template_System_in_LS3.x

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206480 by mpi0920
Replied by mpi0920 on topic red asterisk
So if I have no permission there is no way to edit custom css? That is too bad... could I at least edit some css within the question?
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206494 by mpi0920
Replied by mpi0920 on topic red asterisk
Is there any way to remove the red asterisk within the question source code without the need to access any custom css? Please help me with that
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206503 by DenisChenu
Replied by DenisChenu on topic red asterisk
If XSS is disab
<script>
$(function() {
$("question{QID} .asterisk").remove();
});
</script>


But : if you don't have access to custom.css, maybe XSS is enable

There are good reason to disable edition custom.css by any user.
With allowing updating custom.css : you can add any picture and any color on website, for example the logo of your concurrent . I think if your admin disallow css update : it disallow script.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: mpi0920
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206515 by mpi0920
Replied by mpi0920 on topic red asterisk
Thank you. Unfortunately it is not working. Do I need to declare that it is javascript or something? Like:

<script type="text/javascript" charset="utf-8">

$(document).on('ready pjax:scriptcomplete',function(){
.asterisk{display:none}

});
</script>

Thank you again!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #206521 by tpartner
Replied by tpartner on topic red asterisk
Denis provided JavaScript, you have given an example of CSS so it needs to be wrapped in a <style> tag.

Code:
<style type="text/css">
 
  #question{QID} .asterisk{display:none;}
 
</style>

Having said that, as Denis suggests, if your system admin has disallowed access to the themes, they have probably enabled the XSS filter so inserting CSS may also be prevented.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 6 months ago by tpartner.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206522 by tpartner
Replied by tpartner on topic red asterisk
...also, Denis has a small typo...

Code:
<script>
    $(function() {
        $("#question{QID} .asterisk").remove();
    });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, mpi0920
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose