- Posts: 29
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Help installing this jquery plugin
- leblancoj
- Topic Author
- Offline
- Junior Member
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
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13912
- Thank you received: 2549
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.
- LouisGac
- Visitor
github.com/LimeSurvey/LimeSurvey/blob/ma...t/config.xml#L23-L40
- tpartner
- Away
- LimeSurvey Community Team
- Posts: 10613
- Thank you received: 3691
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13912
- Thank you received: 2549
Seems to be for admin themetpartner wrote: More on config.xml here - manual.limesurvey.org/Custom_Admin_Theme...nto_a_custom_theme_2
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.
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
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
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
I wil follow their intructions
- tpartner
- Away
- LimeSurvey Community Team
- Posts: 10613
- Thank you received: 3691
Oops - manual.limesurvey.org/The_template_edito...ns_.28version_2.5.29Seems to be for admin theme
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
Thank Guys.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13912
- Thank you received: 2549
OK,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
Then :
replace
<script src ="jquery.rut.js "> </ script>
<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.
- tpartner
- Away
- LimeSurvey Community Team
- Posts: 10613
- Thank you received: 3691
DenisChenu wrote:
OK,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
Then :
replacebyCode:<script src ="jquery.rut.js "> </ script>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.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13912
- Thank you received: 2549
Question : it don't work ? If you put it just before < /head > ?tpartner wrote: ...
Only for pre-2.5. With version 2.5 and newer, use the config.xml file to load the file(s).
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.