x

Glavna poglavja

  1. LimeSurvey Cloud proti LimeSurvey CE
  2. LimeSurvey Cloud – Hitri vodnik
  3. LimeSurvey CE - Montaža
  4. Kako oblikovati dobro anketo (Vodnik)
  5. Začetek
  6. Konfiguracija LimeSurvey
  7. Uvod - Ankete
  8. Oglejte si nastavitve ankete
  9. Ogled menija ankete
  10. Oglejte si strukturo ankete
  11. Uvod - Vprašanja
  12. Uvod – skupine vprašanj
  13. Uvod – Ankete – Upravljanje
  14. Možnosti orodne vrstice ankete
  15. Večjezična anketa
  16. Vodnik za hitri začetek - ExpressionScript
  17. Napredne funkcije
  18. Splošna pogosta vprašanja
  19. Odpravljanje težav
  20. Rešitve
  21. Licenca
  22. Dnevnik sprememb različice
  23. Vtičniki – napredno
 Actions

General FAQ/sl: Difference between revisions

From LimeSurvey Manual

Maren.fritz (talk | contribs)
Created page with "Če želite, da bodo vsa tri polja označena kot obvezna, ustrezno uredite svojo temo ankete. Če uporabljate '''Fruity''', morate iti na zaslon '''registracija''' in si ogled..."
Maren.fritz (talk | contribs)
Created page with "<syntaxhighlight lang="twig"> {# udeležencev email #} <div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>..."
Line 178: Line 178:


<syntaxhighlight lang="twig">
<syntaxhighlight lang="twig">
        {# Participants email #}
{# udeležencev email #}
        <div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>
<div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>  
            <label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }}  control-label'> {{ gT("Email address:") }} {{ include('./subviews/registration/required.twig') }}</label>
<label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }}  control-label'>{{ gT("E-poštni naslov:") }} {{ include('./subviews/registration/required.twig') }}</label>  
            <div {{ aSurveyInfo.attr.registerformcolrowcdiv }}  >
<div {{ aSurveyInfo.attr.registerformcolrowcdiv }}  >  
                {{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }}
{{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }}
            </div>
</div>  
        </div>
</div>  
</syntaxhighlight>
</syntaxhighlight>


After that, make sure to edit the first name and last name fields correspondingly by adding the label: <syntaxhighlight lang="twig">{{ include('./subviews/registration/required.twig') }}</syntaxhighlight> and this line which makes the field mandatory to be filled out: <syntaxhighlight lang="twig">'required' : true</syntaxhighlight>
Po tem poskrbite, da ustrezno uredite polji za ime in priimek, tako da dodate oznako:<syntaxhighlight lang="twig"> {{ include('./subviews/registration/required.twig') }}</syntaxhighlight> in ta vrstica, zaradi katere je polje obvezno izpolniti:<syntaxhighlight lang="twig"> 'obvezno' : drži</syntaxhighlight>


The edited file should look like this:
The edited file should look like this:

Revision as of 09:55, 13 December 2023


Template:Opomba


Prva uporaba

Če ne želite prebrati polovice priročnika, da bi dobili občutek, kaj je mogoče storiti z LimeSurvey, vam priporočamo, da si ogledate nekaj YouTube video vadnic:


Template:Opomba


Potrebujem hitro seznanitev z LimeSurvey-em

Za hiter uvod v LimeSurvey si oglejte naslednji dve povezavi:


Template:Opozorilo


Oblikovanje in izgled ankete

Kako lahko odstranim index.php iz URL poti, da dobim krajši URL

Če želite uporabljati modne URL-je (brez /index.php v vsakem URL-ju), uredite /application/config/config.php in spremenite

'showScriptName' => res,

z

'showScriptName' => false,

Da bo to pravilno delovalo, morate uporabiti spletni strežnik Apache s pravilno nameščenim modulom mod_rewrite.

S spletnim strežnikom nginx

Če uporabljate Nginx http strežnik (s php, ki deluje prek FastCGI) in želite uporabiti nastavitev 'urlFormat' => 'path (glejte konfiguracijo .php), razmislite o naslednji konfiguraciji spletnega mesta Nginx:

strežnik {
 nastavite $host_path "/PATH/DO/LIMESURVEY";
 ime_strežnika YOUR.SERVER.FQDN;
 root /PATH/DO/LIMESURVEY;
 nabor znakov utf-8;
 try_files $uri /index.php?$uri&$args;
 # Onemogoči branje znotraj imenika skriptov php, glej težavo z debug > 1 na opombo
 lokacija ~ ^/(aplikacija|dokumenti|ogrodje|lokacija|zaščiteni|testi|teme/\w+/pogledi) {
 zavrni vse;
 }
 # Prepovedi branje znotraj izvajalnega imenika
 lokacija ~ ^/tmp/runtime/ {
 zavrni vse;
 }

    # Dovolite dostop do dobro znanega imenika, drugačne uporabe, na primer ACME Challenge za Let's Encrypt
 lokacija ~ /\.dobro znano {
 dovoli vse;
 }
 # Zavrni vse poskuse dostopa do skritih datotek
 # kot so .htaccess, .htpasswd, .DS_Store (Mac).
 lokacija ~ /\. {
 zavrni vse;
 }
 #Disallow neposredno branje datotek za nalaganje uporabnikov
 lokacija ~ ^/upload/surveys/.*/fu_[a-z0-9]*$ {
 vrni 444;
 }
 #Disallow naložene morebitne izvršljive datoteke v imenik za nalaganje
 lokacija ~* /upload/.*\.(pl|cgi|py|pyc|pyo|phtml|sh|lua|php|php3|php4|php5|php6|pcgi|pcgi3|pcgi4|pcgi5|pcgi6|icn)$ {
 vrni 444;
 }
 #izogni se obdelavi klicev neobstoječih statičnih datotek s strani yii
 lokacija ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
 poskusi_datoteke $uri =404;
 }
 lokacija ~ \.php$ {
 fastcgi_split_path_info ^(.+\.php)(.*)$;
 poskusi_datoteke $uri index.php;
 fastcgi_pass 127.0.0.1:9000; # Spremenite to, da bo ustrezalo vašim nastavitvam
 fastcgi_index index.php;
 vključite fastcgi_params;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 fastcgi_param SCRIPT_NAME $fastcgi_script_name;
 }
}

Template:Opomba

Končni rezultat bi moral izgledati takole:


Kako se znebim * (rdeče zvezdice) obveznih vprašanj?

Navodila za LimeSurvey 2

V LimeSurvey 2.x je rdeča zvezdica obveznih vprašanj nastavljena znotraj datoteke template.css (razred "zvezdica"). Če ga želite skriti:

  • Odprite urejevalnik predlog
  • Ustvarite kopijo predloge, ki jo želite spremeniti
  • Izberite datoteko "template.css" in poiščite razred asterix
  • Dodajte naslednja vrstica na koncu razreda asterix".zvezdica {display: none;}".
  • Shrani template.css
  • Počisti predpomnilnik brskalnika, da se urejeni template.css znova naloži in ne vzame iz predpomnilnika .


Navodila za LimeSurvey 3

Navodila so podobna zgornjim za LimeSurvey 2.

  • Dostop do želene teme. Če je privzeta tema, ustvarite njeno kopijo s klikom na gumb "razširi".
  • Dostopite do seznama tem in kliknite urejevalnik tem, ki ustreza novo ustvarjeni temi.
  • Na levi strani si lahko vizualizirate ustrezne datoteke CSS vaše teme.
  • Kliknite na custom.css in dodajte naslednjo vrstico:
.asterisk {prikaz: brez;}


  • Shranite spremembe. Rdeča zvezdica, ki je običajno prikazana na začetku besedila vprašanja, je skrita.


Kako lahko vdelam datoteko Flash?

Najprej pojdite na Globalne nastavitve in deaktivirajte XSS-filter. Preberite tudi, kakšne posledice ima deaktivacija tega filtra za vaš primer. Naslednji koraki ne bodo delovali, če je filter aktiven.

  1. Pomaknite se do mesta v anketi, kamor želite vstaviti datoteko Flash. To je lahko povsod, kjer lahko uporabite vgrajeni urejevalnik HTML, na primer v vprašanjih, podvprašanjih, odgovorih, pozdravnem/končnem besedilu ankete in še mnogo več.
  2. Odprite polno- način urejevalnika zaslona s klikom na gumb 'LimeFitWin' v orodni vrstici urejevalnika.
  3. V orodni vrstici urejevalnika na celotnem zaslonu boste našli majhen gumb s simbolom Flash. Kliknite nanj. Odprlo se bo pogovorno okno.
  4. V tem polju lahko navedete pot do obstoječe datoteke Flash nekje ali pa kliknete gumb 'Prebrskaj po strežniku'.
  5. Če ste kliknili gumb 'Prebrskaj po strežniku', boste predstavljen z brskalnikom datotek in na dnu polja za nalaganje datotek. Zdaj izberite obstoječo datoteko ali najprej naložite datoteko.


To je to! Če se vam zdi ta opis nepopoln, ga ustrezno posodobite.


  Pozor : Koraki za uporabo v LimeSurvey 3 so podobni. Našim uporabnikom pa ne priporočamo uporabe datotek flash!



Kako ustvarim anketo, ki je odprta za vse?

Če želite ustvariti anketo, ki jo lahko izpolni kdorkoli, ne ustvarjajte tabele udeležencev ankete! Delite povezavo do ankete, ki se nahaja na pregledni plošči.


Javna registracija - obvezna polja

Če uporabljate tabelo udeležencev ankete in dovolite tudi javno registracijo, bodo uporabniki pozvani z naslednjim sporočilom:



Kot je razvidno zgoraj, je obvezno le polje e-pošte.

Če želite, da bodo vsa tri polja označena kot obvezna, ustrezno uredite svojo temo ankete. Če uporabljate Fruity, morate iti na zaslon registracija in si ogledati, kako izgleda polje e-pošte udeležencev:

 {# udeležencev email #}
 <div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}> 
 <label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }}  control-label'>{{ gT("E-poštni naslov:") }} {{ include('./subviews/registration/required.twig') }}</label> 
<div {{ aSurveyInfo.attr.registerformcolrowcdiv }}  > 
 {{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }}
</div> 
</div>

Po tem poskrbite, da ustrezno uredite polji za ime in priimek, tako da dodate oznako:

 {{ include('./subviews/registration/required.twig') }}

in ta vrstica, zaradi katere je polje obvezno izpolniti:

 'obvezno' : drži

The edited file should look like this:

        {# Participants first name #}
        <div class='{{ aSurveyInfo.class.registerformcolrow }} form-group row' {{ aSurveyInfo.attr.registerformcolrow }}>
            <label for='register_firstname' class='{{ aSurveyInfo.class.registerformcolrowlabel }} control-label '>{{ gT("First name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div class="">
                {{ C.Html.textField('register_firstname', aSurveyInfo.sFirstName, ({'id' : 'register_firstname','class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>

        {# Participants last name #}
        <div class='{{ aSurveyInfo.class.registerformcolrowb }} form-group row' {{ aSurveyInfo.attr.registerformcolrowb }}>
            <label {{ aSurveyInfo.attr.registerformcolrowblabel }}  class='{{ aSurveyInfo.class.registerformcolrowblabel }} control-label '>{{ gT("Last name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div {{ aSurveyInfo.attr.registerformcolrowbdiv }} >
                {{ C.Html.textField('register_lastname', aSurveyInfo.sLastName, ({'id' : 'register_lastname', 'class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>


Now, the public registration page should look like this (all the fields being mandatory):



Hiding the language switcher

The steps to hide both the language switchers (near the survey title and on the top-right side of the page) are described in our wiki section dedicated to multilingual surveys.


Hiding "Exit and clear survey"

In case you wish to hide the button "Exit and clear survey", you have to edit the nav_bar.twig file located inside your survey theme.



The line that needs to be removed (or commented out) is:

{{ include('./subviews/navigation/clearall_links.twig') }}



Now, there is no option to exit and clear the survey.



Note: This customization can be used when you create long surveys and require from your respondents to save and resume later the survey. Sometimes, the users tend to click the "Exit and clear survey" button which deletes the entry from the partially completed responses table.

Help, I accidentally...

I forgot my admin password. How do I reset it?

Version 2.x

  1. Access to your server with a command line (ssh for example)
  2. Ensure you have php command line access (see http://php.net/features.commandline.php).
  3. Go to your LimeSurvey directory
  4. Launch this command php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS or php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASSThe php can need complete directory access, example /usr/bin/php


  Please note that this method will not work in LimeSurvey 3.x!



Version 2.x.x and newer with only FTP access

See ResetPasswordController


Directly change the password in the database

If you have direct access to the Limesurvey database you can change the old password there by uploading the new password as SHA256 hash. You can create the SHA256 hash of your password here.

For example, you can use this instruction to set password to password:

UPDATE lime_users SET password = 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438 WHERE uid =1;

Here with prefix to lime_ and database selected.


How can I restore data from a deactivated survey?

We recommend to always use the time-out option instead of deactivating a survey. If you closed your survey accidentally, it is important that you don't change anything in the survey!

Then, and only then the following steps will work:

  1. Activate your survey again
  2. Select Responses from the survey toolbar.
  3. Click on Import and select the "Import answers from a deactivated survey table" menu entry.
  4. Choose your source table.
  5. Click on the "Import" button located on the upper-right part of the screen.


To understand the difference between "expiry" and "deactivation", visit this following wiki section.


I deleted a question/question group/survey!

If you delete it, it is gone. Only a backup could help you recover it.


If you are a LimeSurvey GmbH professional user, please open a support ticket and ask the team to provide you the backup associated to your account. Please note that this service is not free of charge!


Hard- and Software requirements

For general requirements please refer to our installation instructions.


What limitations does LimeSurvey have...

...regarding speed

There is no existing speed limit on LimeSurvey. Everything depends on how fast your server and your connection are. If you expect a large number of users within a short amount of time and you are not sure if your server can handle this, check our forum for similar topics! or contact an authorized LimeSurvey partner: https://limesurvey.com.

...regarding survey size

MySQL and MariaDB

Note: 'Survey size' refers to the maximum number of questions (and answers) in your survey - don't confuse this with the number of replies on your survey (there is no limitation on that). Theoretically there would also be no limit on the maximum number of questions/answers in LimeSurvey. But the database engine you are using has several limits. The most important one is the limit on the number of fields(columns) in the result table.

  • MySQL ISAM: The sum of the lengths of the VARCHAR and CHAR columns in a table may be up to 64KB.
  • MySQL InnoDB: Maximum number of 1000 columns
  • MS SQL Server 2000: Maximum number of 1024 columns. There are a maximum of 8,060 bytes for size one row, then even is survey can be activated, if you have a lot of text data : participant can not submit…
  • Postgres: Maximum number of 250-1600 columns depending on column types. The maximum number of columns can be quadrupled by increasing the default block size to 32k. See Installation FAQ and PostgreSQL FAQ.
  Attention : Please think about what you do before you do it! An array of 10 x 10 items already costs you 100 columns. Rule of thumb: every item on the screen that can be filled in or selected costs one column!


The mySQL ISAM engine is the most tricky one (see mysql documentation for more information). As it allows only up to 65,535 bytes per row and utf8 characters, it can require up to three bytes per character. The maximum may be only 21,844 characters (but this depends on your DB encoding).

You can roughly calculate the size of your survey like this:

  • Every multiple numerical question: 20 chars for each answer
  • Every multiple choice & array question answers: 5 chars for each answer
  • Every other question type: 5 chars
  • Add 10% for the usual overhead

With Microsoft SQL

There are no fixed limit on MSSQL. Some information on microsoft website.

The 8,060 bytes per row can appear after activation when you want to browse response and data. You can export answer code and not answer text or try to export only some columns.

With PostgreSQL

When you try to export response : you can have SQLSTATE[54000] error. You can export some columns. See forum post.

How to increase the maximum number of columns in PostgreSQL

In case your survey contains too many questions, you can define a different block size in PostgreSQL to create more columns. This might be tricky because you have to recompile PostgreSQL and set BLCKSZ to a higher value, like 16kiB or 32kiB. Watch for the configuration option "--with-blocksize=BLOCKSIZE". For details see the archives of the PostgreSQL mailing list or ask there (pgsql-patches(at)postgresql(dot)org).

Instructions for Debian (thanks to Martin Pitt):

sudo apt-get build-dep postgresql-8.3
apt-get source postgresql-8.3
cd postgresql-8.3-*
debian/rules patch
sensible-editor build-tree/postgresql-8.3.5/src/include/pg_config_manual.h
dpkg-buildpackage -us -uc -b -nc

Note: the above could not be reproduced on Ubuntu 14.04 in August 2014. A patch is required (the configuration option is not enough). See (tested with PostgreSQL 9.3 on Linux): Instructions for increasing the maximum number of columns in PostgreSQL on Linux

Fatal error: Allowed memory size

Depending on your server configuration you might run into memory problems being reported by an error like "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296".

You can try to raise the limit by adding an optional setting to LimeSurvey's config file.

Please bear in mind that changes in the default settings of an application can always be overruled by global server settings. To increase the memory limit of your sever to 128M:

  • memory_limit = 128M to your server's main php.ini file (recommended, if you have access)
  • memory_limit = 128M to a php.ini file in the LimeSurvey root
  • php_value memory_limit 32M in a .htaccess file located in the LimeSurvey root folder
  • " ini_set('memory_limit', '128M'); " in your config.php

Specific configuration

Under certain circumstances, you need to update the LimeSurvey configuration in application/config/config.php

IE 11 and Windows 7 / Windows 8

There is a known issue with the session with IE 11, that leads to users not being able to finish a survey.

It is solved by giving the session a unique name.

This is done by adding this to the config file.

       // Set the name of the session
        'session' => array (
            'sessionName' => "YOURUNIQUESESSIONNAME",
        ),

Two LimeSurvey instances on same domain

If you run 2 LimeSurvey instances on the same domain, but within different directories, you need to update the session configuration.


For example, if you have example.org/ls1 and example.org/ls2, update the ls1 config file:

        'session' => array (
            'cookieParams' => array(
                    'path' => '/ls1',
                ),
            ),
        'request' => array(
            'csrfCookie' => array( 'path' => '/ls1' )
        ),