Help installing this jquery plugin

Mehr
11 Monate 1 Woche her #146701 von leblancoj
leblancoj erstellte das Thema 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 1 Woche her #146710 von DenisChenu
DenisChenu antwortete auf das Thema: 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 .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146715 von LouisGac
LouisGac antwortete auf das Thema: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146721 von tpartner
tpartner antwortete auf das Thema: Help installing this plugin

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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146727 von DenisChenu
DenisChenu antwortete auf das Thema: Help installing this plugin

tpartner schrieb: 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 .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146728 von leblancoj
leblancoj antwortete auf das Thema: Help installing this plugin

DenisChenu schrieb: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146729 von leblancoj
leblancoj antwortete auf das Thema: Help installing this plugin
Thank you LouisGac and tpartner :* (kiss)

I wil follow their intructions

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146731 von tpartner
tpartner antwortete auf das Thema: Help installing this plugin

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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146732 von leblancoj
leblancoj antwortete auf das Thema: 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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146735 von DenisChenu
DenisChenu antwortete auf das Thema: Help installing this plugin

leblancoj schrieb: 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 .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146737 von tpartner
tpartner antwortete auf das Thema: Help installing this plugin

DenisChenu schrieb:

leblancoj schrieb: 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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her - 11 Monate 6 Tage her #146739 von DenisChenu
DenisChenu antwortete auf das Thema: Help installing this plugin

tpartner schrieb: ...
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 .
Letzte Änderung: 11 Monate 6 Tage her von DenisChenu.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146744 von tpartner
tpartner antwortete auf das Thema: 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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146745 von leblancoj
leblancoj antwortete auf das Thema: 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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
11 Monate 6 Tage her #146746 von tpartner
tpartner antwortete auf das Thema: Help installing this plugin

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Folgende Benutzer bedankten sich: Ben_V

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha