[plugin] addScriptToQuestion : more easy to javascript to question

More
9 months 2 days ago - 9 months 2 days ago #165170 by DenisChenu
DenisChenu created the topic: [plugin] addScriptToQuestion : more easy to javascript to question
Adding javascript to question can be difficult, and if you have XSS activated : another user can delete your plugin if he need to edit question text, there is a solution :).


The script in action (3.4.4 with position)


Compatibility :

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:
Last Edit: 9 months 2 days ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
9 months 2 days ago #165204 by orvil
orvil replied the topic: [plugin] addScriptToQuestion : more easy to javascript to question
Great, thanks for this update!

Best regards/Beste Grüße,
O. Villani

Please Log in or Create an account to join the conversation.

More
8 months 3 weeks ago #165543 by orvil
orvil replied the topic: [plugin] addScriptToQuestion : more easy to javascript to question
Hello,

found an issue in function addScript() where the limesurvey versionnumber is requested.

works with now
Yii::app()->getConfig('versionnumber')
instead of
Yii::app()->getConfig('version')

Placed a commit on gitlab.

Best regards/Beste Grüße,
O. Villani
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #165704 by DenisChenu
DenisChenu replied the topic: [plugin] addScriptToQuestion : more easy to javascript to question
Arg, thnaks

But why you don't make a pull request ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #166030 by orvil
orvil replied the topic: [plugin] addScriptToQuestion : more easy to javascript to question
Simple reason: I'm not so familiar with github and gitlab ;)
But I'll give it a try

Best regards/Beste Grüße,
O. Villani

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!