Help installing this jquery plugin

More
10 months 2 weeks ago #146701 by leblancoj
leblancoj created the topic: Help installing this plugin
Greetings.

I am a semi-novice with LimeSurvey, I want to install the plugin jquery.rut.js in my custom LimeSurvey template, which will serve me to format and validate the token to access the survey.

I must leave it at the root of the project. Link it from my template with <script src = "jquery.rut.js"> </ script>. So leave the file "jquery.rut.js" in the folder and add "<script src =" jquery.rut.js "> </ script>" in "startpage.pstpl" and below in the same file the line

  <Script>
$ (Document) .ready (function () {
                    $ ("Input.text"). Rut ();
              }
     });
     </ Script>

But it does not work for me, it does not recognize the function. "Rut (); And I think my problem is because I'm installing the Plugin badly on LimeSurvey, but I have no idea where to add it.

I already have debug mode = 1

I hope I can give your opinion

Please Log in to join the conversation.

More
10 months 1 week ago #146710 by DenisChenu
DenisChenu replied the topic: Help installing this plugin
It's not a LimeSurvey plugin here , but a jquery plugin.

Did you have the javascript file on root of your project ? Where did you upload it (and did you upload it somewhere)?

Maybe best solution is to upload it via FTP via a FTP client : you have ftp access ?

Denis

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 to join the conversation.

More
10 months 1 week ago #146715 by LouisGac
LouisGac replied the topic: Help installing this plugin
If your using LimeSurvey 2.5, use the template configuration to add JS files:
github.com/LimeSurvey/LimeSurvey/blob/ma...t/config.xml#L23-L40

Please Log in to join the conversation.

More
10 months 1 week ago #146721 by tpartner
tpartner replied the topic: Help installing this plugin

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

Please Log in to join the conversation.

More
10 months 1 week ago #146727 by DenisChenu
DenisChenu replied the topic: Help installing this plugin

tpartner wrote: More on config.xml here - manual.limesurvey.org/Custom_Admin_Theme...nto_a_custom_theme_2

Seems to be for admin theme ;)

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 to join the conversation.

More
10 months 1 week ago #146728 by leblancoj
leblancoj replied the topic: Help installing this plugin

DenisChenu wrote: It's not a LimeSurvey plugin here , but a jquery plugin.

Did you have the javascript file on root of your project ? Where did you upload it (and did you upload it somewhere)?

Maybe best solution is to upload it via FTP via a FTP client : you have ftp access ?

Denis




I don't have FTP access because my limesurvey is located locally, in a virtual Machine.

This is my directory where I save the JS file, Is the location correct?

C:\wamp\www\limesurvey\upload\templates\copia_de_news_paper\scripts

Please Log in to join the conversation.

More
10 months 1 week ago #146729 by leblancoj
leblancoj replied the topic: Help installing this plugin
Thank you LouisGac and tpartner :* (kiss)

I wil follow their intructions

Please Log in to join the conversation.

More
10 months 1 week ago #146731 by tpartner
tpartner replied the topic: Help installing this plugin

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

Please Log in to join the conversation.

More
10 months 1 week ago #146732 by leblancoj
leblancoj replied the topic: Help installing this plugin
I want to give this topic as completed, I followed the intructions(File XML.config) and it helped me in everything to perfection.


Thank Guys.

Please Log in to join the conversation.

More
10 months 1 week ago #146735 by DenisChenu
DenisChenu replied the topic: Help installing this plugin

leblancoj wrote: I don't have FTP access because my limesurvey is located locally, in a virtual Machine.

This is my directory where I save the JS file, Is the location correct?

C:\wamp\www\limesurvey\upload\templates\copia_de_news_paper\scripts

OK,

Then :
replace
<script src ="jquery.rut.js "> </ script>
by
<script src ="{TEMPLATEURL}scripts/jquery.rut.js "> </ 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
10 months 1 week ago #146737 by tpartner
tpartner replied the topic: Help installing this plugin

DenisChenu wrote:

leblancoj wrote: I don't have FTP access because my limesurvey is located locally, in a virtual Machine.

This is my directory where I save the JS file, Is the location correct?

C:\wamp\www\limesurvey\upload\templates\copia_de_news_paper\scripts

OK,

Then :
replace
<script src ="jquery.rut.js "> </ script>
by
<script src ="{TEMPLATEURL}scripts/jquery.rut.js "> </ script>


Only for pre-2.5. With version 2.5 and newer, use the config.xml file to load the file(s).

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

Please Log in to join the conversation.

More
10 months 1 week ago - 10 months 1 week ago #146739 by DenisChenu
DenisChenu replied the topic: Help installing this plugin

tpartner wrote: ...
Only for pre-2.5. With version 2.5 and newer, use the config.xml file to load the file(s).

Question : it don't work ? If you put it just before < /head > ?

Because a lot of user can not update config.xml via GUI.

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 .
Last Edit: 10 months 1 week ago by DenisChenu.

Please Log in to join the conversation.

More
10 months 1 week ago #146744 by tpartner
tpartner replied the topic: Help installing this plugin

Question : it don't work ? If you put it just before < /head > ?

Yes, it will work

Because a lot of user can not update config.xml via GUI.

In my opinion, that's a bug - the admin should be able to edit that in the GUI for description, dates, etc when copying a template.

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

Please Log in to join the conversation.

More
10 months 1 week ago #146745 by leblancoj
leblancoj replied the topic: Help installing this plugin
I modified the file xml.config, but i will try with
"<script src ="{TEMPLATEURL}scripts/jquery.rut.js "> </ script>"

if it work, I will tell

Please Log in to join the conversation.

More
10 months 1 week ago #146746 by tpartner
tpartner replied the topic: Help installing this plugin

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: Ben_V

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!