LimeSurvey Manual
Menu
Navigation
Main page
Recent changes
Random page
Help
Search
Special pages
Printable version
Recent changes
Help
English
Log in
Actions
Translate
Language statistics
Message group statistics
Export
Special
Export translations
Settings
Group
Activating a survey
Adding answers or subquestions
Administering LimeSurvey
Alternatives to the LimeSurvey import function
Assessments
Backup entire database
Batch deletion
Category:Advanced Question Settings
Category:General Question Options
Category:Question Settings
Central Participant Database
Changing an active survey
Check data integrity
Check question logic
Check survey logic - Advanced
Closing a survey
ComfortUpdate
Copy question
Data encryption
Data entry
Data policy settings
DateFunctions
Default answers
Delete question
Delete survey
Display/Export survey
Edit question
Email bounce tracking system
Email templates
Export question
Export responses
Exporting results
Expression Manager
Expression Manager sample surveys
ExpressionScript - Presentation
ExpressionScript Engine - Quick start guide
ExpressionScript examples
ExpressionScript How-tos
ExpressionScript sample surveys
Extension compatibility
Failed email notifications
First login - your user preferences
General FAQ
General settings
Getting started
Global settings
Google API howto
Home page settings
How to design a good survey (guide)
Import responses
Importing a survey
Installation - LimeSurvey CE
Installation FAQ
Installation of the LimeSurvey XAMPP package
Installation security hints
Installation using a command line interface (CLI)
Installation Version 1.92 or older
Iterate survey
Label sets
LDAP settings
License
LimeSurvey Manual
LimeSurvey PRO vs LimeSurvey CE
LimeSurvey Users
LimeSurvey Video-Tutorial
LimeSurvey-compatible hosting companies
List question groups
List questions
Localization
Major version upgrade
Make your plugin compatible with LS4
Manage user groups
Manage users
Menu configuration
Menu entries configuration
Multilingual survey
New Template System in LS3.x
Not categorized and advanced features
Notifications & data
Optional settings
Overview
Panel integration
Participant settings
Plugin manager
Plugin menu
Plugins - advanced
Presentation
Preview function
Problems & solutions
Publication & access
QS:Allowed filetypes
QS:Alphasort
QS:Answer width
QS:Array filter
QS:Array filter exclude
QS:Array filter style
QS:Assessment value
QS:Autocheck exclusive option
QS:Category separator
QS:Chart type
QS:Choice column width
QS:Choice header
QS:Code filter
QS:Commented checkbox
QS:CSS Class
QS:Date max
QS:Date min
QS:Date time format
QS:Display chart
QS:Display columns
QS:Display map
QS:Display rows
QS:Display type
QS:Dropdown dates
QS:Dropdown dates year max
QS:Dropdown dates year min
QS:Dropdown prefix
QS:Dropdown prepostfix
QS:Dropdown separators
QS:Dropdown size
QS:Dualscale headerA
QS:Dualscale headerB
QS:Em validation q
QS:Em validation q tip
QS:Em validation sq
QS:Em validation sq tip
QS:Encryption
QS:Equals num value
QS:Equation
QS:Exclusive option
QS:Get order previous q
QS:Hidden
QS:Hide tip
QS:Input box size
QS:Input boxes
QS:Input max characters
QS:Label column width
QS:Location city
QS:Location country
QS:Location defaultcoordinates
QS:Location mapheight
QS:Location mapservice
QS:Location mapwidth
QS:Location mapzoom
QS:Location nodefaultfromip
QS:Location postal
QS:Location state
QS:Mandatory
QS:Max answers
QS:Max filesize
QS:Max num value
QS:Max num value n
QS:Max num value sgqa
QS:Max subquestions
QS:Maximum chars
QS:Maximum number of files
QS:Min answers
QS:Min num value
QS:Min num value n
QS:Minimum number of files
QS:Minute step interval
QS:Month display style
QS:Multiflexible checkbox
QS:Multiflexible max
QS:Multiflexible min
QS:Multiflexible step
QS:Num value int only
QS:Numbers only
QS:Other
QS:Other comment mandatory
QS:Other numbers only
QS:Other Position
QS:Other replace text
QS:Page break
QS:Prefix
QS:Preg validation
QS:Printable survey relevance help
QS:Public statistics
QS:Question theme
QS:Random group
QS:Random order
QS:Rank header
QS:Relevance
QS:Remove text or uncheck checkbox
QS:Repeat headers
QS:Reverse
QS:Samechoiceheight
QS:Samelistheight
QS:Scale export
QS:Show comment
QS:Show grand total
QS:Show title
QS:Show totals
QS:Showpopups
QS:Slider accuracy
QS:Slider default
QS:Slider handle shape
QS:Slider handle Unicode shape
QS:Slider initial value
QS:Slider layout
QS:Slider max
QS:Slider middlestart
QS:Slider min
QS:Slider orientation
QS:Slider rating
QS:Slider reset
QS:Slider reverse
QS:Slider separator
QS:Slider showminmax
QS:Subquestion width
QS:Suffix
QS:Text input width
QS:Theme editor - advanced options
QS:Time limit
QS:Time limit action
QS:Time limit countdown message
QS:Time limit disable next
QS:Time limit disable prev
QS:Time limit message
QS:Time limit message delay
QS:Time limit message style
QS:Time limit timer style
QS:Time limit warning
QS:Time limit warning display time
QS:Time limit warning message
QS:Time limit warning style
QS:Use dropdown
QS:Value range allows missing
Question groups - introduction
Question toolbar options
Question type - 5 point choice
Question type - Array
Question type - Array (10 point choice)
Question type - Array (5 point choice)
Question type - Array (Increase-Same-Decrease)
Question type - Array (Numbers)
Question type - Array (Texts)
Question type - Array (Yes-No-Uncertain)
Question type - Array by column
Question type - Array dual scale
Question type - Date
Question type - Equation
Question type - File upload
Question type - Gender
Question type - Huge free text
Question type - Language switch
Question type - List (Dropdown)
Question type - List (Radio)
Question type - List with comment
Question type - Long free text
Question type - Multiple choice
Question type - Multiple choice with comments
Question type - Multiple numerical input
Question type - Multiple short text
Question type - Numerical input
Question type - Ranking
Question type - Short free text
Question type - Text display
Question type - Yes-No
Question types
Questions - introduction
QueXML PDF Export
Quick start guide - LimeSurvey 2.50+
Quick start guide - LimeSurvey 3.0+
Quick-translation
Regenerate question codes
Reorder questions and question groups
Reset conditions
Resources
Responses & statistics
Responses (survey results)
Running a survey safely
Setting conditions
SGQA identifier
Statistics
Survey group permissions
Survey menu
Survey participants
Survey permissions
Survey quotas
Survey settings
Survey settings version 2
Survey structure
Survey toolbar options
Surveys - introduction
Surveys - management
Tab Separated Value survey structure
Template:Deprecated
Template:DeprecatedIn
Template:Example
Template:FeatureChange
Template:FeatureStarting
Template:Hint
Template:NewIn
Template:UpdatedIn
Testing a survey
Text elements
Theme editor
Theme options
Themes
Timing statistics
Tools
Transferring an installation
Translating LimeSurvey
Troubleshooting
TwoFactorAdminLogin
Upgrading from a previous version
URL fields
Using regular expressions
Version change log
Version guide
View saved but not submitted responses
Workarounds
Language
aa - Afar
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
acm - Iraqi Arabic
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
ann - Obolo
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
bdr - West Coast Bajau
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bew - Betawi
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cpx - Pu-Xian Min
cpx-hans - Pu-Xian Min (Simplified Han script)
cpx-hant - Pu-Xian Min (Traditional Han script)
cpx-latn - Pu-Xian Min (Latin script)
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
crh-ro - Crimean Tatar (Romania)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
dga - Dagaare
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan Chinese
gan-hans - Gan (Simplified)
gan-hant - Gan (Traditional)
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Alemannic
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
hno - Northern Hindko
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang Chinese
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
igl - Igala
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kai - Karekare
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjh - Khakas
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kus - Kʋsaal
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mag - Magahi
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mnc - Manchu
mnc-latn - Manchu (Latin script)
mnc-mong - Manchu (Mongolian script)
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nog - Nogai
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nyn - Nyankole
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rki - Arakanese
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
sh-cyrl - Serbo-Croatian (Cyrillic script)
sh-latn - Serbo-Croatian (Latin script)
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tok - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
wal - Wolaytta
war - Waray
wls - Wallisian
wo - Wolof
wuu - Wu Chinese
wuu-hans - Wu Chinese (Simplified)
wuu-hant - Wu Chinese (Traditional)
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yue - Cantonese
yue-hans - Cantonese (Simplified)
yue-hant - Cantonese (Traditional)
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
{{DISPLAYTITLE:常规问答}}<languages /> __TOC__ {{Note|以下答案来自 LimeSurvey 用户论坛。如果你有什么不明白的,或者不知道下一步该怎么做,你可以把你的问题发给其他论坛成员: https://limesurvey.org/forums. 要获得专业支持,请联系我们的认证合作伙伴:https://limesurvey.com.}} <span id="Getting_started"></span> =入门指南= 如果你不想通过阅读 LimeSurvey 手册来学习怎么做, 我们推荐你可以通过 的视频教程来学习: *[https://www.youtube.com/watch?v=oyoq14XpkwA 如何设置账号和调查的安装] *[https://www.youtube.com/watch?v=7134QebOQzY 问题类型 - 阵列] *[https://www.youtube.com/watch?v=aeb93vAe7R4 评估] *[https://www.youtube.com/watch?v=s5OOzDoPjIU 占位符字段] *[https://www.youtube.com/watch?v=7N4xUQMWbJY 单选列表] *[https://www.youtube.com/watch?v=UI01hwrsiVk 复制/导入调查] *[https://www.youtube.com/watch?v=QEHyH1YbNEQ 导入问题] {{Note|如果你用任何好的视频,请不要犹豫和我们分享。}} <span id="I_need_a_quick_introduction_for_LimeSurvey"></span> ==我想快速安装LimeSurvey== 请从下面两个链接获得快速安装LimeSurvey的方法: *[[Quick start guide - LimeSurvey 2.50+|LimeSurvey 2.50+]] *[[Quick start guide - LimeSurvey 3.0+|Limesurvey 3+]] {{Alert|我们正在制作介绍LimeSurvey的视频。}} <span id="Survey_design_and_layout"></span> =调查的设计和布局= <span id="How_can_I_remove_index.php_from_the_URL_path_to_get_a_shorter_URL"></span> ==我如何从 URL 路径里删掉index.php,从而得到一个短的 URL== 如果你要用花式链接(每个链接里都没有/index.php), 请编辑文件 /application/config/config.php,修改下面的内容 <div class="mw-translate-fuzzy"> <syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight> </div> 为 <div class="mw-translate-fuzzy"> <syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight> </div> 要使这个设置正常工作,必须使用正确安装了 mod_rewrite 模块的Apache 服务器。 ===With nginx webserver=== 如果您使用的是[http://nginx.com/products/ Nginx] http服务器(通过FastCGI运行php),并且想使用''''urlFormat'=>'path''''设置(请参阅config .php),请考虑以下Nginx网站配置: <div class="mw-translate-fuzzy"> <syntaxhighlight lang="apache">server { set $host_path "/PATH/TO/LIMESURVEY"; server_name YOUR.SERVER.FQDN; root /PATH/TO/LIMESURVEY; charset utf-8; try_files $uri $uri/ /index.php?r=$uri&$args; #不允许从脚本目录内部读取, see issue with debug > 1 on note location ~ ^/(application|protected|framework|themes/\w+/views) { deny all; } #不允许从用户上传目录直接读取 location ~ ^/upload/surveys/.*/fu_[a-z0-9]*$ { return 444; } #不允许上传可执行文件到上传目录 location ~* /upload/.*\.(pl|cgi|py|pyc|pyo|phtml|sh|lua|php|php3|php4|php5|php6|pcgi|pcgi3|pcgi4|pcgi5|pcgi6|icn)$ { return 444; } #避免处理yii对不存在的静态文件的调用 location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { try_files $uri =404; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(.*)$; try_files $uri index.php; fastcgi_pass 127.0.0.1:9000; # Change this to match your settings fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; } }</syntaxhighlight> </div> # Allow access to well-known directory, different usage, for example ACME Challenge for Let's Encrypt location ~ /\.well-known { allow all; } # Deny all attempts to access hidden files # such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /\. { deny all; } #Disallow direct read user upload files location ~ ^/upload/surveys/.*/fu_[a-z0-9]*$ { return 444; } #Disallow uploaded potential executable files in upload directory location ~* /upload/.*\.(pl|cgi|py|pyc|pyo|phtml|sh|lua|php|php3|php4|php5|php6|pcgi|pcgi3|pcgi4|pcgi5|pcgi6|icn)$ { return 444; } #avoid processing of calls to unexisting static files by yii location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { try_files $uri =404; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(.*)$; try_files $uri index.php; fastcgi_pass 127.0.0.1:9000; # Change this to match your settings fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; } }</syntaxhighlight> {{注意|这将禁止访问应用程序内部的文件。 必须使用debug> 0读取应用程序中的某些JavaScript和CSS文件。当通过<code> <nowiki>'use_asset_manager'=> 1,启用调试模式时,可以强制使用资产管理器。</ nowiki > </ code>(或从目录列表中删除<code> <nowiki>应用程序</ nowiki> </ code> </ code>)。}} 最后的结果会是这样: <center>[[File:Remove index.php steps.png]]</center> <span id="How_do_I_get_rid_of_the_*_(red_asterisk)_of_mandatory_questions?"></span> ==我要如何处理 <span style='color:red'>*</span> 必答题的(红色星号)?== <span id="Instructions_for_LimeSurvey_2"></span> === LimeSurvey 2 的使用说明=== 在 LimeSurvey 2.x 里,必答题的红星是在 template.css file 文件里设置的("asterisk" c类). 要想隐藏的话: *打开模板编辑器 *创建你要编辑的模板的副本 *选择 "template.css" 文件并找到 asterix 类 *在 asterix 类的末尾加上".asterisk {display: none;}". *保持 template.css 文件 *清除浏览器缓存,确保编辑后的 template.css 文件不是从缓存里载入。 <span id="Instructions_for_LimeSurvey_3"></span> === LimeSurvey 3 的使用说明=== 这个说明和上面 LimeSurvey 2 的相似。 * 访问想要使用的主题。如果是默认的主题,通过点击 "扩展" 按钮创建一份副本。 * 从主题列表里选择新近创建的主题,并点击其对应的 '''主题编辑器''' 。 * 你可以可视化你主题对应的 左边的 CSS 文件。 * 点击 custom.css 并加入下列内容: <div class="mw-translate-fuzzy"> <syntaxhighlight lang="css" enclose="div">.asterisk {display: none;}</syntaxhighlight> </div> * 保存修改。通常在问题开始的位置显示的红星就被隐藏了。 <span id="How_can_I_embed_a_flash_file?"></span> ==如果嵌入 flash 文件?== 首先,进入 [[全局设置]] 并停用 XSS-filter. 请一并阅读停用过滤器对你的实例的影响。下列步骤在过滤器启用的时候是 '''没有''用的 。 #导航到调查里你要插入Flash 文件的位置。可能是你可以使用内置 HTML 编辑器的任何地方,比如在问题里,子问题里,答案里,调查的开始/结束文本等等。 #打开 [[First login - Your user preferences#Popup|全屏编辑模式]] 工具栏上的 'LimeFitWin' 按钮。 #在全屏编辑器的工具栏上有个带 Flash 符号的按钮,点击后会出现对话框。 #在这个窗口你要么提供一个现有的 Flash 文件的路径,要么通过 '浏览服务器' 按钮选取文件。 #点击了 '浏览服务器' 按钮之后,选取文件的窗口会呈现,下边有上传的按钮。选择要嵌入的文件。 就是这样!如果你发现此说明不完整,请更新对应的部分。 {{Alert|title=注意|text=LimeSurvey 3 使用的步骤是类似的。然而,我们不推荐使用Flash 文件!}} <span id="How_do_I_create_a_survey_which_is_open_to_everyone?"></span> ==我如何创建一个所有人都可以用的调查问卷?== 要创建一个所有人都可以填的调查,不要创建 [[Survey participants|调差参与者列表]]! 并共享[[Overview|预览面板]] 里调查的链接。 <span id="Public_registration_-_mandatory_fields"></span> ==公开注册-必填字段== 如果你使用[[Survey participants|调差参与者]] ,并且你允许 [[Participant_settings#Allow_public_registration|公开注册]], 用户会看到下面的提示信息: <center>[[File:non-mandatory public reg.png]]</center> 就像上面看到那样,只有邮件地址字段是必填项。 如果想要三个字段都是必填项,需要在你的主题里做相应的设置。如果你选的主题是'''Fruity''', 你可以去 '''注册''' 界面看看参与者的邮件字段是什么样的: <syntaxhighlight lang="twig"> {# Participants email #} <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> <div {{ aSurveyInfo.attr.registerformcolrowcdiv }} > {{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }} </div> </div> </syntaxhighlight> 然后,确保通过添加的标签来编辑对应的名和姓的字段:<syntaxhighlight lang="twig">{{ include('./subviews/registration/required.twig') }}</syntaxhighlight> 下面的内容保证字段在填写时是必填项:<syntaxhighlight lang="twig">'required' : true</syntaxhighlight> 编辑过的文件应该看起来像这样: <syntaxhighlight lang="twig"> {# 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> </syntaxhighlight> 现在,公共注册页面样子变了 (所有的字段都是必填项了): <center>[[File:mandatory public reg.png]]</center> <span id="Hiding_the_language_switcher"></span> == 隐藏语言切换 == 隐藏语言切换的步骤在(接近调查的标题,页面的右上角) [[Multilingual_survey#Hints_.26_tips|多语言调查]]章节中有描述。 <span id="Hiding_"Exit_and_clear_survey""></span> == 隐藏 ''退出并清空调查'' == 要隐藏 "退出并清空调查" 按钮,你需要编辑主题里的 nav_bar.twig 文件。 <center>[[File:exit and clear survey pic.png]]</center> 要删除掉的行 (或注释掉) 是: <syntaxhighlight lang="twig"> {{ include('./subviews/navigation/clearall_links.twig') }} </syntaxhighlight> <center>[[File:Hide exit and clear survey.png]]</center> 现在,就没有退出并清空调查这个选项了。 <center>[[File:no exit clear survey.png]]</center> <div class="simplebox">[[File:help.png]] '''提示:''' 这个定制用于当你创建了一份长期调查,希望你的回馈者能够保存并能稍后再填。有时候,用户倾向于点''退出并清空调查'',那样会把整份未完成的调查表删掉。</div> <span id="Help,_I_accidentally..."></span> =救命,我不小心...= <span id="I_forgot_my_admin_password._How_do_I_reset_it?"></span> ==我忘了密码,怎么重置密码?== === 2.x 版本=== # 用命令行访问你的调查 (比如用 ssh) # 确保你有 php 命令行可用 ( 参看 http://php.net/features.commandline.php). # 进入 LimeSurvey 的目录 # 运行命令 <code>php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code> or <code>php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code><sup>Php 要有目录的完全访问权限,比如 /usr/bin/php</sup> {{Alert|Title=警告|text=这个方法在LimeSurvey 3.x 中无效!}} <span id="Version_2.x.x_and_newer_with_only_FTP_access"></span> === 用 FTP 访问 2.x.x 和以上版本 === 参考 [https://gitlab.com/SondagesPro/coreAndTools/ResetPasswordController 重置密码控制器] === 直接在数据库中改密码 === 如果你能够直接访问If you have direct access to the Limesurvey 的数据库,你可以用 SHA256 哈希值格式上传新密码. 你可以[http://www.xorbin.com/tools/sha256-hash-calculator 创建你密码的 SHA256 哈希值]. <div class="mw-translate-fuzzy"> 比如你可以用下面的说明设置你的密码: <syntaxhighlight lang="sql" enclose="div"> UPDATE lime_users SET password = 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438 WHERE uid =1; </syntaxhighlight> 这个例子是以 lime_ 为前缀,并已经选择了数据库。 </div> <span id="How_can_I_restore_data_from_a_deactivated_survey?"></span> ==我怎么恢复一个停用的调查?== 我们推荐用超时选项来代替停用一个调查。 '''如果你不小心关闭了你的调查,重要的是你没有修改调查的任何内容!''' 那么,只有下列步骤可以生效: #再次激活你的调查。 #从工具栏选择 [[Responses|回应]]。 #选择"从停用的调查导入答案" 菜单,并点击[[Import responses|导入]]。 #选择你的源表。 #点击位于屏幕右上方的 "导入" 按钮。 {{Note|要了解 "过期" 和 "停用" 之间的区别, 请访问[https://manual.limesurvey.org/Closing_a_survey wiki 部分].}} <span id="I_deleted_a_question/question_group/survey!"></span> == 我删除了一个问题/问题组/调查!== 如果你真的删掉了,那就是没了。只有备份能够帮助你恢复。 {{Note|如果你是 [https://limesurvey.org LimeSurvey GmbH] 的专业客户,请通过开一个支持事件,让我们的团队为你提供和你的账号相关的备份。'''请注意这是项收费服务!'''}} <span id="Hard-_and_Software_requirements"></span> =软硬件需求= 常规需求请参考[[Installation#Make sure you can use LimeSurvey on your website|安装说明]]. <span id="What_limitations_does_LimeSurvey_have..."></span> == LimeSurvey 有哪些限制...== <span id="...regarding_speed"></span> === ...关于速度=== LimeSurvey 不存在速度限制。 一切都取决于你的服务器和连接的速度。如果你想在短时间内做大量用户的调查,但你不知道你的服务器能否胜任,'''请查看论坛里的相关主题!''' 或者 '''联系一个通过LimeSurvey 认证的合作伙伴''':https://limesurvey.com. <span id="...regarding_survey_size"></span> === ...关于调查的尺寸 === ==== MySQL and MariaDB ==== <div class="mw-translate-fuzzy"> 注意: '调查尺寸' 是指你调查里问题(和答案)的最大数量 - '''不要和调查的答复数量混淆(对答复没有限制)'''。从理论上来说,在 LimeSurvey 里对问题/答案的最大数量也没有限制。但你使用的数据库会有些限制。 最重要的一点就是结果集的字段数量(列)限制。 *MySQL ISAM: VARCHAR 和 CHAR 列在表中的合计长度最多到 64KB。 *MySQL InnoDB: 最多 1000 列。 *MS SQL Server 2000: 最多 1024 列。 *Postgres: 取决于不同的列的数据类型,列的最大值从 250 到 1600 。可以通过增加默认块的尺寸到32k,使列的最大值增加4倍。参考[[Installation FAQ]] and [http://www.postgresql.org/docs/faqs.FAQ.html#item4.4 PostgreSQL FAQ]. </div> {{Alert|title=注意|text=请在你要动手前先想想要做什么!一个10 x 10 的阵列也会占用100个列。经验法则:屏幕上每一个填写或是选择的项都会占一列!}} <div class="mw-translate-fuzzy"> mySQL ISAM 引擎是最麻烦的一个 (参看 [http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html mysql 文档]). 由于它每行最多只允许65,535个字节和utf8字符,因此每个字符最多需要3个字节。最多只能输入21,844个字符(但这取决于您的数据库编码). </div> 你可以大致计算调查的尺寸: *每个数字问题:'''每个答案''' 20个字符 *每个多选和阵列题:'''每个答案'''5个字符 *每个其他问题类型:5个字符 *再打 10% 的富裕 ==== With Microsoft SQL ==== There are no fixed limit on MSSQL. Some [https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server?view=sql-server-ver15 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 [https://forums.limesurvey.org/forum/french-forum/125447-erreur-sqlstate-54000 forum post]. <span id="How_to_increase_the_maximum_number_of_columns_in_PostgreSQL"></span> <div class="mw-translate-fuzzy"> ==如何增加PostgreSQL的最大列的数量== </div> 假如你的调查包含了很多很多问题,你可以在 PostgreSQL 里定义一个不同的块尺寸来创建更多的列。这会很麻烦,因为你在设置 BLCKSZ 为一个高一些的值,比如 16kiB 或 32kiB,之后要重新编译 PostgreSQL. 查看配置选项 "--with-blocksize=BLOCKSIZE". 细节请查看 PostgreSQL 邮件列表的归档或是向 (pgsql-patches(at)postgresql(dot)org) 问询. Debian 系统相关说明 (感谢 Martin Pitt): <syntaxhighlight lang="bash">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</syntaxhighlight> 注意: '''以上内容在 2014年8月的 14.04 版本的 Ubuntu 上不能重现'''. 需要一个补丁 (配置选项还不够). 参看 (在 Liunxt 上测试 PostgreSQL 9.3 ): [[Instructions for increasing the maximum number of columns in PostgreSQL on Linux|如何增加安装在Linux上的PostgreSQL的最大列的数量]] <span id="Fatal_error:_Allowed_memory_size"></span> ==致命错误:允许的内存尺寸 == 取决于你的系统配置,你可能在运行中遇到类似下面的内存问题 ''"致命错误: 允许的内存尺寸 8388608 bytes 耗尽 (尝试分配 233472 bytes) 在 /path/to/htdocs/limesurvey/filename.php 的 7296 行"''. 你可以在通过 [[Optional settings#Resources|增加可选设置]] 在 LimeSurvey's 的配置文件里尝试增加限制值。 请记住,全局设置可以覆盖应用的默认设置。如何增加内存限制到128M:*memory_limit = 128M 在服务器的主 php.ini 文件里修改 (推荐,如果你有权访问) *memory_limit = 128M 在 LimeSurvey 根目录下的php.ini文件 *php_value memory_limit 32M 在 LimeSurvey 根目录下的 .htaccess 文件 *" ini_set('memory_limit', '128M'); " 在 config.php 文件里 <span id="Specific_configuration"></span> =特殊配置= 某些情况下,你需要更新 LimeSurvey 的配置文件 application/config/config.php <span id="IE_11_and_Windows_7_/_Windows_8"></span> == IE 11 和 Windows 7 / Windows 8 == 有一个已知的会话问题会造成使用 IE 11 的用户无法完成调查。 通过给会话起不同的名字来解决这个问题。 This is done by adding this to the config file. <syntaxhighlight lang="php" enclose="pre"> // Set the name of the session 'session' => array ( 'sessionName' => "YOURUNIQUESESSIONNAME", ), </syntaxhighlight> <span id="Two_LimeSurvey_instances_on_same_domain"></span> == 同一个域里的两个 LimeSurvey 实例 == 如果要在同一个域里的不同文件夹里运行两个 LimeSurvey 的实例,你需要更新 [[Optional_settings#Yii_settings|会话配置]]. For example, if you have example.org/ls1 and example.org/ls2, update the ls1 config file: <syntaxhighlight lang="php" enclose="pre"> 'session' => array ( 'cookieParams' => array( 'path' => '/ls1', ), ), 'request' => array( 'csrfCookie' => array( 'path' => '/ls1' ) ), </syntaxhighlight>