Welcome to the LimeSurvey Community Forum

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

Help installing this jquery plugin

  • leblancoj
  • leblancoj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #146701 by leblancoj
Help installing this plugin was created by leblancoj
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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146710 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago #146715 by LouisGac
Replied by LouisGac on 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146721 by tpartner
Replied by tpartner on 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 topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146727 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • leblancoj
  • leblancoj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #146728 by leblancoj
Replied by leblancoj on 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

The topic has been locked.
  • leblancoj
  • leblancoj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #146729 by leblancoj
Replied by leblancoj on topic Help installing this plugin
Thank you LouisGac and tpartner :* (kiss)

I wil follow their intructions
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146731 by tpartner
Replied by tpartner on 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 topic has been locked.
  • leblancoj
  • leblancoj's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #146732 by leblancoj
Replied by leblancoj on 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.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146735 by DenisChenu
Replied by DenisChenu on 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
Code:
<script src ="jquery.rut.js "> </ script>
by
Code:
<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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146737 by tpartner
Replied by tpartner on 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
Code:
<script src ="jquery.rut.js "> </ script>
by
Code:
<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.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #146739 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
Last edit: 7 years 3 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose