https://manual.limesurvey.org/api.php?action=feedcontributions&user=Marciojv&feedformat=atomLimeSurvey Manual - User contributions [en]2024-03-28T08:51:03ZUser contributionsMediaWiki 1.35.10https://manual.limesurvey.org/index.php?title=Available_third_party_plugins&diff=174236Available third party plugins2022-08-20T16:13:56Z<p>Marciojv: </p>
<hr />
<div>Some plugin are listed in the [https://account.limesurvey.org/limestore Limestore]. If you have a plugin you would like to share with the world, feel free to add it to this page.<br />
<br />
== Authentication plugins ==<br />
<br />
* [https://github.com/technowhizz/LimeSurvey-RegDomainRestricter Registration Email Domain Restrictor] <br />
* [https://github.com/pitbulk/limesurvey-saml SAML support (Only supports Limesurvey version 2.x and below not 3.x or 4.x)]<br />
* [http://extensions.sondages.pro/authentification-by-wordpress/ Authentification by WordPress user]<br />
* [https://github.com/univlorraine/limesurvey-cas CAS Authentication plugin for limesurvey]<br />
* [https://github.com/atlet/LimeSurvey-ShibbolethAuth LimeSurvey Shibboleth auth plugin]<br />
* [https://framagit.org/Animafac/limesurvey/limesurvey-rememberme LimeSurvey RememberMe plugin]<br />
<br />
== Export and statistics plugins ==<br />
<br />
* [http://extensions.sondages.pro/exportcompleteanswers/ exportCompleteAnswers : Complete New export system allowing export Answer code and answer text in CSV. Options is manageable by super admin.]<br />
* [http://extensions.sondages.pro/triple-s-export/ exportTripleS : export in Triple-S XML2 or XML1.3 format survey structure and data.]<br />
* [https://framagit.org/SondagePro-LimeSurvey-plugin/extendAdminStatitistics extendAdminStatitistics : rewriting of core statistics, actually put sub question in same table and graph]<br />
* [https://github.com/reportico-web/limesurvey-reportico Reportico Reporting module for Limesurvey]: generate charts,tables and statistics from survey data<br />
<br />
== Public survey plugins ==<br />
* [http://extensions.sondages.pro/hideemptycolumn-for-limesurvey/ hideEmptyColumn : A plugin to add a solution to hide column of array question type with ExpressionScript of LimeSurvey ]<br />
* [http://extensions.sondages.pro/moreaccessibility/ moreAccessibility : some option to add accessibility to public survey] 2.6lts compatible onlmy, deprecated in 3.0<br />
* [https://git.framasoft.org/Shnoulle/addQuestionCodeClass addQuestionCodeClass : add the question code at the question wrapper class]<br />
* [https://framagit.org/SondagePro-LimeSurvey-plugin/radioToStarRating radioToStarRating : set any radio list to star rating system]<br />
* [https://framagit.org/SondagePro-LimeSurvey-plugin/moveSomeAnswers moveSomeAnswers] : If using random_order attribute : allow to always move some answers at end.<br />
<br />
== Data editing plugins ==<br />
* [https://manual.limesurvey.org/MassAction_Plugin MassAction] : A plugin for faster survey editing by loading questions details into editable cells. Includes a search and replace feature.<br />
<br />
== Email plugins ==<br />
<br />
* [https://gitlab.com/SondagesPro/mailing/noMailToExample noMailToExample]<br />
* [https://github.com/LimeSurvey/LimeSurvey/blob/develop/plugins/mailSenderToFrom/mailSenderToFrom.php mailSenderToFrom]<br />
* [https://github.com/Xites/LS_mailDKIM mailDKIM]<br />
* [https://github.com/Xites/LS_mailEmbedImages mailEmbedImages]<br />
<br />
== Other plugins ==<br />
<br />
* [http://extensions.sondages.pro/recomputeexpression-for-limesurvey Recompute Expressions:] A Plugin for LimeSurvey to recompute expression in survey with already submitted survey. Allow to update some relevance too.<br />
* [https://git.framasoft.org/SondagePro-LimeSurvey-plugin/showAdvancedSettings showAdvancedSettings:] Show advanced settings in question edit by default.<br />
* [https://git.framasoft.org/SondagePro-LimeSurvey-plugin/replaceRegister replaceRegisterː] Extra option for Register, starting point for other plugin. <br />
* [http://extensions.sondages.pro/fixmaxstep-for-question-index/ fixMaxStep : Fix question index for token answer persistence survey:] Example of usage : get the complete index when user come back to the survey.<br />
* [http://extensions.sondages.pro/sendmailajax-all-email-in-one/ sendMailAjax : Send token email one by one with ajaxː] Allow to send all email in one click without restriction.<br />
* [http://extensions.sondages.pro/mailing-management/sendmailcron sendMailCron: Automatically send invitations and reminders using cronjobsː] Automatically sends invitations and reminders in custom intervals. Extensive configuration and debugging options<br />
* [https://github.com/SteveCohen/Piwik-for-Limesurvey Piwik-for-Limesurvey Piwik for LImesurveyː] Plugs Piwik into Limesurvey, so you can track your survey admin users and respondents.<br />
* [https://github.com/SondagesPro/surveysModel Mark surveys as "Survey Model/Template"ː] Allow admins to mark a survey as "Survey Model", a kind of "master survey" or "survey template" which only users with appropriate rights are allowed to edit. The common user is only allowed to create copies based on such a survey template.<br />
* [https://github.com/SondagesPro/LS-toolsDomDocument toolsDomDocumentː] a tools for anothers plugin<br />
* [https://github.com/TonisOrmisson/limesurvey-url-templates UrlTemplateChangerː] Set respondent's interview template over an URL parameter.<br />
* [https://github.com/evently-nl/zesthook ZestHookː] Makes it possible to send a Post request on every response submission. You can set the URL to post to, as well as several other options.<br />
* [https://github.com/CEric-fr/limesurvey-rgpd Extension RGPD pour LimeSurvey] Each questionnaire owner is able to interact with these conditions of use via a new submenu added in the "questionnaire parameters" entitled: GDPR configuration.<br />
* [https://github.com/projeto-cade-unb/Lime2Camunda Lime2Camunda] Plugin for integration with LimeSurvey with Camunda, which at the end of completing the survey it starts a process instance in Camunda submitting all questions and answers as process variables.<br />
<br />
== Example and demo plugins ==<br />
* [https://framagit.org/SondagePro-LimeSurvey-plugin/extendRemoteControl extendRemoteControl] : Show how to add function to [[RemoteControl_2_API]], show how to create a new admin page too (usage of public function actionIndex() )<br />
<br />
[[Category:Plugins]]</div>Marciojvhttps://manual.limesurvey.org/index.php?title=Installation_-_LimeSurvey_CE/pt-br&diff=151856Installation - LimeSurvey CE/pt-br2020-06-11T04:42:03Z<p>Marciojv: </p>
<hr />
<div><languages /><br />
<br />
__TOC__<br />
<br />
<div class="simplebox"> Nota: Estas instruções de instalação são para a versão 2.0 ou posterior. Instruções mais antigas para 1.92 podem ser encontradas [[Installation Version 1.92 or older|aqui]] e instruções de atualização podem ser encontradas [[Upgrading from a previous version|aqui]]. </div><br />
<br />
=Geral=<br />
<br />
O projeto LimeSurvey oferece duas formas de instalação:<br />
*No seu servidor web:<br />Neste caso, siga as instruções nesta página, começando do passo 1.<br />
<br />
*No seu computador Windows local:<br />Você geralmente só vai querer instalar o LimeSurvey no seu computador local se quiser criar questionários localmente (principalmente para maior velocidade ou por razões de desenvolvimento/teste) e depois carregá-los na sua instalação ativa do LimeSurvey em um servidor. Para este propósito, preparamos um pacote especial do LimeSurvey que inclui o servidor web, o banco de dados, a aplicação Lime Survey e [[Installation of the LimeSurvey XAMPP package|instruções de instalação]].<br />
<br />
=Assegure-se de que você pode usar o LimeSurvey no seu website=<br />
<br />
Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais.<br />
<br />
{{Nota|O conjunto mínimo de requisitos também será verificado durante o processo de instalação!}}<br />
<br />
O conjunto mínimo de requisitos:<br />
* Mínimo de 250 MB de espaço em disco.<br />
* MySQL 5.5.3 ou posterior '''OU''' Microsoft SQL Server 2005 ou posterior '''OU''' Postgres 9 ou posterior.<br />
* No mínimo PHP 7 ou posterior; no entanto, recomendamos PHP 7.0.0 ou posterior com os seguintes módulos/bibliotecas habilitados:<br />
** [[Installation FAQ#Requirements page#What is the mbstring (Multibyte String Functions) library|Mbstring (Funções Multibyte String)]] biblioteca de extensão.<br />
** Driver de Base de dados PDO para MySQL (pdo_mysql ou pdo_mysqli) ou Postgres (pdo_pgsql) ou MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] para Windows e [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] para Linux).<br />
** Além disso, assumimos que, em geral, todas as bibliotecas padrão do PHP estão ativadas (com hash, session etc.).<br />
<br />
<div class="simplebox"> Nota: Se você estiver se conectando do Linux a um banco de dados MSSQL em um servidor Windows usando o driver PDO dblib, o Free TDS subjacente precisará ser configurado corretamente. Confira a página [[Troubleshooting|Solução de problemas]] para mais informações.</div><br />
<br />
Optional PHP Extensions:<br />
* '''GD-Library''' '''with FreeType support''' installed is needed for captchas, nice charts in statistics or to upload images via the HTML editor - see [https://php.net/manual/image.setup.php PHP GD-Library Extension documentation]<br />
* '''IMAP''' (pretty standard) is needed for the [[Email bounce tracking system|email bounce tracking system]] - see [https://php.net/manual/imap.setup.php PHP IMAP Extension documentation]<br />
* '''LDAP''' installed is needed to import survey participants using LDAP - see [https://php.net/manual/en/book.ldap.php PHP LDAP Documentation]<br />
* '''Zip''' (pretty standard) is needed for template upload, import of .zip archived resources, and excel export - see [https://php.net/manual/zip.setup.php PHP Zip Extension documentation]<br />
* '''Zlib''' (pretty standard) is needed for the [[ComfortUpdate]] - see [https://php.net/manual/zlib.setup.php PHP Zlib Extension documentation]<br />
<br />
In most cases, your web server provider or system administrator will be able to help you out with these optional components.<br />
<br />
If you want to run Microsoft's IIS server, taking a look at [[Installation on XP with IIS]] might also help.<br />
<br />
==Browser compatibility==<br />
'''For the survey-taking side''', we currently support IE11 (intranet-mode excluded) and all newer comparable browsers like Edge, FF, Chrome, Opera etc. with activated JavaScript. <br />
<br />
'''For the administration part''', we currently support Edge and all newer comparable browsers like FF, Chrome, Opera etc. with activated JavaScript. <u>We do not support any Internet Explorer versions in the administration part anymore.</u><br />
<br />
===Screen sizes===<br />
We support any reasonable screen size for survey taking (360px x 640px and up).<br />
The minimum supported screen resolution for the LimeSurvey administration page is 1280px x 1024px.<br />
<br />
==Hosting for LimeSurvey==<br />
<br />
LimeSurvey should work with most hosting companies that provide PHP and MySQL. If you want a ready-installed version of LimeSurvey, you could try [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Professional], else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].<br />
<br />
=Download the LimeSurvey package=<br />
<br />
[https://www.limesurvey.org/en/downloads/category/25-latest-stable-release Download] the latest stable LimeSurvey zip package (there are also gzip, bz2 and 7zip packages available for your convenience) and save it to your local disk.<br />
<br />
=Unpack the LimeSurvey package=<br />
<br />
Uncompress the zip file into a dedicated directory/folder using your preferred compression software. When you uncompress the file make sure that you uncompress the directory structure with the files (this is default behavior for most compression programs). The path name for the installation directory should not include '(' or ')' special characters, but it may include the '''space''' character.<br />
<br />
=Collect information about your server=<br />
<br />
You will need to know the following things to install LimeSurvey on your web server correctly:<br />
*Your intended website URL where your scripts will reside (e.g. ''http://my.domain.com/limesurvey'').<br />
*The physical disk location on your server where your scripts will reside (e.g. ''/home/usr/htdocs/limesurvey'').<br />
*The IP/net location of your database server (i.e. ''localhost'').<br />
*If your database server uses a non-standard port, find out which port it is.<br />
*Your user name and password for your database server.<br />
*With most providers you can't let the script create the database, but have to do it yourself. If you are using such a provider, please create a database (for example ''limesurvey'') yourself.<br />
<br />
=Upload the files to your web server=<br />
<br />
Using your FTP program (e.g. FileZilla), connect to your web server and create a directory to store your scripts. Then upload the files using the directory structure they are in. Make sure you '''upload the files in binary mode''' (check the settings of your FTP program). Please note that uploading in ASCII mode can lead to uncommon errors (e.g. 'class not found' error during installation), also images may not be uploaded correctly.<br />
<br />
=Set directory permissions=<br />
<br />
For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.<br />
*The '''"/limesurvey/tmp"''' directory (and all its subdirectories and files) are used for imports & uploads and should be set to ''Read & Write'' for your webserver.<br />
*The '''"/limesurvey/upload/"''' directory (and all its subdirectories and files) must also have ''Read & Write'' for your webserver in order to enable picture and media files upload.<br />
*The '''"/limesurvey/application/config/"''' directory also needs ''Read & Write'' permissions for your webserver.<br />
*The other directories can be set to ''Read Only''. You may wish in Linux/Unix to set the permissions on each file within the /limesurvey/admin directory to ''Read Only''.<br />
<br />
{{Alert|If you are using Linux, then setting permissions depends on your webserver configuration. For example, if you use Apache HTTPD on CentOS, type '''chmod -R 755 <directory> ; chown -R apache <directory>'''. This will give everyone access to read, and your webserver will have the permission to write. Check the [https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions following link] for more information on Linux permissions.}}<br />
<br />
=Create a database user=<br />
<br />
LimeSurvey will create a database and the tables inside it. To be able to do this, it will need the user name and password of a database user. We generally recommend creating a database user with the following permissions:<br />
<br />
- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX<br />
<br />
- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER<br />
<br />
- Microsoft SQL Server: ''Unknown - if you can find out this information, please complete it''.<br />
<br />
=Run the installation script=<br />
<br />
'''Go to "example.org/limesurvey/admin"'''. If you configured everything correctly, the LimeSurvey installer should be starting - just follow the instructions. You will be asked whether you wish to create the database and/or create the tables inside the database. LimeSurvey will then create the needed tables in the database.<br />
<br />
=Connect to the administration script for the first time=<br />
<br />
You are done when the installation finishes! Open your browser and enter the URL to the LimeSurvey administration. Assuming you used 'limesurvey' as the directory name to store the files in, this will be something like "http://www.example.com/limesurvey/admin".<br />
<br />
You should get a login screen. The default login credentials (if they have not been changed during the installation) are:<br />
<br />
<syntaxhighlight lang='html' enclose="div"><br />
<br />
User: admin<br />
Password: password<br />
<br />
</syntaxhighlight><br />
<br />
You will be prompted to change the default password after you logged in. Have fun!<br />
<br />
=Further configuration=<br />
<br />
==Caching==<br />
<br />
LimeSurvey uses the Yii file cache by default, but it can be configured to use other cache engines. Possible other caches are:<br />
<br />
* Memcached<br />
* Redis<br />
* WinCache<br />
* XCache<br />
<br />
Please see the [https://www.yiiframework.com/doc/api/1.1/CCache Yii documentation] for full description.<br />
<br />
Since LimeSurvey 4.0.0 you also have the possibility to cache calculations in the ExpressionScript. This can provide a significant speed-up depending on survey complexity. To enable the emcache, add this in your config.php file (components array):<br />
<br />
<syntaxhighlight lang="php"><br />
'emcache' => array('class' => 'CFileCache'),<br />
</syntaxhighlight><br />
<br />
As with the main Yii cache, other cache systems can be used.<br />
<br />
{{Note| The emcache is not compatible with randomized surveys, and will be automatically turned off in such cases.}}<br />
<br />
=Se eu tiver problemas...=<br />
<br />
Como todos os programas de computador, a maior parte do tempo as coisas vão funcionar como dizem as instruções, mas às vezes simplesmente não vão. Existem tantas razões possíveis para que as coisas não saiam conforme o planos, que não é possível descrevê-las aqui. Então, se você encontar um problema, primeiro verifique o [[Installation_FAQ|FAQ de instalação]]. Se não encontrar a resposta, então envie seu problema e eventuais mensagens de erro para [http://www.limesurvey.org/en/forum LimeSurvey forums] em limesurvey.org ou junte-se ao canal [irc://irc.freenode.net/limesurvey|canal IRC LimeSurvey IRC]:<br />
<br />
<div class="simplebox"><center>'''[https://www.limesurvey.org/community-services/live-chat Direct link to the official LimeSurvey IRC Channel]'''</center></div></div>Marciojvhttps://manual.limesurvey.org/index.php?title=Translations:Installation_-_LimeSurvey_CE/9/pt-br&diff=151855Translations:Installation - LimeSurvey CE/9/pt-br2020-06-11T04:42:03Z<p>Marciojv: </p>
<hr />
<div>O conjunto mínimo de requisitos:<br />
* Mínimo de 250 MB de espaço em disco.<br />
* MySQL 5.5.3 ou posterior '''OU''' Microsoft SQL Server 2005 ou posterior '''OU''' Postgres 9 ou posterior.<br />
* No mínimo PHP 7 ou posterior; no entanto, recomendamos PHP 7.0.0 ou posterior com os seguintes módulos/bibliotecas habilitados:<br />
** [[Installation FAQ#Requirements page#What is the mbstring (Multibyte String Functions) library|Mbstring (Funções Multibyte String)]] biblioteca de extensão.<br />
** Driver de Base de dados PDO para MySQL (pdo_mysql ou pdo_mysqli) ou Postgres (pdo_pgsql) ou MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] para Windows e [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] para Linux).<br />
** Além disso, assumimos que, em geral, todas as bibliotecas padrão do PHP estão ativadas (com hash, session etc.).</div>Marciojvhttps://manual.limesurvey.org/index.php?title=Installation_-_LimeSurvey_CE/pt-br&diff=86241Installation - LimeSurvey CE/pt-br2018-02-04T22:21:34Z<p>Marciojv: Created page with "{{Note|O conjunto mínimo de requisitos também será verificado durante o processo de instalação!}}"</p>
<hr />
<div><languages /><br />
<br />
<div class="simplebox"> Nota: Estas instruções de instalação são para a versão 2.0 ou posterior. Instruções para as versões antigas podem ser encontradas [[Installation Version 1.92 or older|aqui]] </div><br />
<br />
<div class="simplebox"> Note: These installation instructions are for version 2.0 or later. Older instructions for 1.92 can be found [[Installation Version 1.92 or older|here]] and update instructions can be found [[Upgrading from a previous version|here]]. </div><br />
<br />
=Geral=<br />
<br />
O projeto LimeSurvey oferece duas formas de instalação:<br />
*No seu servidor web:<br />Neste caso, siga as instruções nesta página, começando do passo 1.<br />
<br />
*No seu computador local Windows.<br />Você geralmente vai querer instalar o LimeSurvey no seu computador local se quiser criar questionários localmente (principalmente para teste ou para mais velocidade) e depois carregá-los na sua instalação viva do LimeSurvey em um servidor. Para isto preparamos um pacote especial do LimeSurvey que inclui o servidor web, o banco de dados a aplicação Lime Survey. [[Installation of the LimeSurvey XAMPP package|instruções de instalação]].<br />
<br />
=Assegure-se de que você pode usar o LimeSurvey no seu website=<br />
<br />
Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais.<br />
<br />
{{Note|O conjunto mínimo de requisitos também será verificado durante o processo de instalação!}}<br />
<br />
The minimum set of requirements:<br />
* Minimum 180 MB disk space.<br />
* MySQL 5.5.3 or later '''OR''' Microsoft SQL Server 2005 or later '''OR''' Postgres 9 or later.<br />
* Minimum PHP 5.5.9 or later; however, we recommend PHP 7.0.0+ with the following modules/libraries enabled:<br />
** [[Installation FAQ#Requirements page#What is the mbstring (Multibyte String Functions) library|mbstring (Multibyte String Functions)]] extension library.<br />
** PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] for Windows and [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] for Linux).<br />
** Also, we assume in general that all PHP default libraries are enabled (like hash, session etc.).<br />
<br />
<div class="simplebox"> Note: If you are connecting from Linux to a MSSQL database on a Windows server using the dblib PDO driver, then the underlying FreeTDS needs to be set up correctly. Check out the [[Troubleshooting]] page for more information.</div><br />
<br />
Optional PHP Extensions:<br />
* '''GD-Library''' '''with FreeType support''' installed is needed for captchas, nice charts in statistics or to upload images via the HTML editor - see [https://php.net/manual/image.setup.php PHP GD-Library Extension documentation]<br />
* '''IMAP''' (pretty standard) is needed for the [[Email bounce tracking system|email bounce tracking system]] - see [https://php.net/manual/imap.setup.php PHP IMAP Extension documentation]<br />
* '''LDAP''' installed is needed to import tokens using LDAP - see [https://php.net/manual/en/book.ldap.php PHP LDAP Documentation]<br />
* '''Zip''' (pretty standard) is needed for template upload, import of .zip archived resources, and excel export - see [https://php.net/manual/zip.setup.php PHP Zip Extension documentation]<br />
* '''Zlib''' (pretty standard) is needed for the [[ComfortUpdate]] - see [https://php.net/manual/zlib.setup.php PHP Zlib Extension documentation]<br />
<br />
In most cases, your web server provider or system administrator will be able to help you out with these optional components.<br />
<br />
If you want to run Microsoft's IIS server, taking a look at '"[[Installation on XP with IIS]]''' might also help.<br />
<br />
===Browser compatibility===<br />
'''For the survey-taking side''', we currently support IE9 and all newer comparable browsers like FF, Chrome, Opera etc. with activated JavaScript.<br />
'''For the administration part''', we currently support IE11 and all newer comparable browsers like FF, Chrome, Opera etc. with activated JavaScript. <u>We do not support any IE version running in Intranet-mode or Compatibility-mode!</u><br />
<br />
==Screen sizes==<br />
We support any reasonable screen size for survey taking (360px x 640px and up).<br />
The minimum supported screen resolution for the LimeSurvey administration page is 1280px x 1024px.<br />
<br />
==Hosting for LimeSurvey==<br />
<br />
LimeSurvey should work with most hosting companies that provide PHP and MySQL. If you want a ready-installed version of LimeSurvey, you could try [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Professional], else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].<br />
<br />
=Download the LimeSurvey package=<br />
<br />
[https://www.limesurvey.org/en/downloads/category/25-latest-stable-release Download] the latest stable LimeSurvey zip package (there are also gzip, bz2 and 7zip packages available for your convenience) and save it to your local disk.<br />
<br />
=Unpack the LimeSurvey package=<br />
<br />
Uncompress the zip file into a dedicated directory/folder using your preferred compression software. When you uncompress the file make sure that you uncompress the directory structure with the files (this is default behavior for most compression programs). The path name for the installation directory should not include '(' or ')' special characters, but it may include the '''space''' character.<br />
<br />
=Collect information about your server=<br />
<br />
You will need to know the following things to install LimeSurvey on your web server correctly:<br />
*Your intended website URL where your scripts will reside (e.g. ''http://my.domain.com/limesurvey'').<br />
*The physical disk location on your server where your scripts will reside (e.g. ''/home/usr/htdocs/limesurvey'').<br />
*The IP/net location of your database server (i.e. ''localhost'').<br />
*If your database server uses a non-standard port, find out which port it is.<br />
*Your user name and password for your database server.<br />
*With most providers you can't let the script create the database, but have to do it yourself. If you are using such a provider, please create a database (for example ''limesurvey'') yourself.<br />
<br />
=Upload the files to your web server=<br />
<br />
Using your FTP program (e.g. FileZilla), connect to your web server and create a directory to store your scripts. Then upload the files using the directory structure they are in. Make sure you '''upload the files in binary mode''' (check the settings of your FTP program). Please note that uploading in ASCII mode can lead to uncommon errors (e.g. 'class not found' error during installation), also images may not be uploaded correctly.<br />
<br />
=Set directory permissions=<br />
<br />
For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.<br />
*The '''"/limesurvey/tmp"''' directory (and all its subdirectories and files) are used for imports & uploads and should be set to ''Read & Write'' for your webserver.<br />
*The '''"/limesurvey/upload/"''' directory (and all its subdirectories and files) must also have ''Read & Write'' for your webserver in order to enable picture and media files upload.<br />
*The '''"/limesurvey/application/config/"''' directory also needs ''Read & Write'' permissions for your webserver.<br />
*The other directories can be set to ''Read Only''. You may wish in Linux/Unix to set the permissions on each file within the /limesurvey/admin directory to ''Read Only''.<br />
<br />
{{Alert|If you are using Linux, then setting permissions depends on your webserver configuration. For example, if you use Apache HTTPD on CentOS, type '''chmod -R 755 <directory> ; chown -R apache <directory>'''. This will give everyone access to read, and your webserver will have the permission to write. Check the [https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions following link] for more information on Linux permissions.}}<br />
<br />
=Create a database user=<br />
<br />
LimeSurvey will create a database and the tables inside it. To be able to do this, it will need the user name and password of a database user. We generally recommend creating a database user with the following permissions:<br />
<br />
- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX<br />
<br />
- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER<br />
<br />
- Microsoft SQL Server: ''Unknown - if you can find out this information, please complete it''.<br />
<br />
=Run the installation script=<br />
<br />
'''Go to "http://www.example.com/limesurvey/admin"'''. If you configured everything correctly, the LimeSurvey installer should be starting - just follow the instructions. You will be asked whether you wish to create the database and/or create the tables inside the database. LimeSurvey will then create the needed tables in the database.<br />
<br />
=Connect to the administration script for the first time=<br />
<br />
You are done when the installation finishes! Open your browser and enter the URL to the LimeSurvey administration. Assuming you used 'limesurvey' as the directory name to store the files in, this will be something like "http://www.example.com/limesurvey/admin".<br />
<br />
You should get a login screen. The default login credentials (if they have not been changed during the installation) are:<br />
<br />
<syntaxhighlight lang='html' enclose="div"><br />
<br />
User: admin<br />
Password: password<br />
<br />
</syntaxhighlight><br />
<br />
You will be prompted to change the default password after you logged in. Have fun!<br />
<br />
=Se eu tiver problemas...=<br />
<br />
Como todos os programas de computador, a maior parte do tempo as coisas vão funcionar como dizem as instruções, mas às vezes simplesmente não vão. Existem tantas razões possíveis para que as coisas não saiam conforme o planos, que não é possível descrevê-las aqui. Então, se você encontar um problema, primeiro verifique o [[Installation_FAQ|FAQ de instalação]]. Se não encontrar a resposta, então envie seu problema e eventuais mensagens de erro para [http://www.limesurvey.org/en/forum LimeSurvey forums] em limesurvey.org ou junte-se ao canal [irc://irc.freenode.net/limesurvey|canal IRC LimeSurvey IRC]:<br />
<br />
<div class="simplebox"><center>'''[https://www.limesurvey.org/community-services/live-chat Direct link to the official LimeSurvey IRC Channel]'''</center></div></div>Marciojvhttps://manual.limesurvey.org/index.php?title=Translations:Installation_-_LimeSurvey_CE/51/pt-br&diff=86240Translations:Installation - LimeSurvey CE/51/pt-br2018-02-04T22:21:34Z<p>Marciojv: Created page with "{{Note|O conjunto mínimo de requisitos também será verificado durante o processo de instalação!}}"</p>
<hr />
<div>{{Note|O conjunto mínimo de requisitos também será verificado durante o processo de instalação!}}</div>Marciojvhttps://manual.limesurvey.org/index.php?title=Installation_-_LimeSurvey_CE/pt-br&diff=86239Installation - LimeSurvey CE/pt-br2018-02-04T22:20:24Z<p>Marciojv: Created page with "Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais."</p>
<hr />
<div><languages /><br />
<br />
<div class="simplebox"> Nota: Estas instruções de instalação são para a versão 2.0 ou posterior. Instruções para as versões antigas podem ser encontradas [[Installation Version 1.92 or older|aqui]] </div><br />
<br />
<div class="simplebox"> Note: These installation instructions are for version 2.0 or later. Older instructions for 1.92 can be found [[Installation Version 1.92 or older|here]] and update instructions can be found [[Upgrading from a previous version|here]]. </div><br />
<br />
=Geral=<br />
<br />
O projeto LimeSurvey oferece duas formas de instalação:<br />
*No seu servidor web:<br />Neste caso, siga as instruções nesta página, começando do passo 1.<br />
<br />
*No seu computador local Windows.<br />Você geralmente vai querer instalar o LimeSurvey no seu computador local se quiser criar questionários localmente (principalmente para teste ou para mais velocidade) e depois carregá-los na sua instalação viva do LimeSurvey em um servidor. Para isto preparamos um pacote especial do LimeSurvey que inclui o servidor web, o banco de dados a aplicação Lime Survey. [[Installation of the LimeSurvey XAMPP package|instruções de instalação]].<br />
<br />
=Assegure-se de que você pode usar o LimeSurvey no seu website=<br />
<br />
Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais.<br />
<br />
{{Note|The minimum set of requirements will also be checked during the installation process!}}<br />
<br />
The minimum set of requirements:<br />
* Minimum 180 MB disk space.<br />
* MySQL 5.5.3 or later '''OR''' Microsoft SQL Server 2005 or later '''OR''' Postgres 9 or later.<br />
* Minimum PHP 5.5.9 or later; however, we recommend PHP 7.0.0+ with the following modules/libraries enabled:<br />
** [[Installation FAQ#Requirements page#What is the mbstring (Multibyte String Functions) library|mbstring (Multibyte String Functions)]] extension library.<br />
** PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] for Windows and [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] for Linux).<br />
** Also, we assume in general that all PHP default libraries are enabled (like hash, session etc.).<br />
<br />
<div class="simplebox"> Note: If you are connecting from Linux to a MSSQL database on a Windows server using the dblib PDO driver, then the underlying FreeTDS needs to be set up correctly. Check out the [[Troubleshooting]] page for more information.</div><br />
<br />
Optional PHP Extensions:<br />
* '''GD-Library''' '''with FreeType support''' installed is needed for captchas, nice charts in statistics or to upload images via the HTML editor - see [https://php.net/manual/image.setup.php PHP GD-Library Extension documentation]<br />
* '''IMAP''' (pretty standard) is needed for the [[Email bounce tracking system|email bounce tracking system]] - see [https://php.net/manual/imap.setup.php PHP IMAP Extension documentation]<br />
* '''LDAP''' installed is needed to import tokens using LDAP - see [https://php.net/manual/en/book.ldap.php PHP LDAP Documentation]<br />
* '''Zip''' (pretty standard) is needed for template upload, import of .zip archived resources, and excel export - see [https://php.net/manual/zip.setup.php PHP Zip Extension documentation]<br />
* '''Zlib''' (pretty standard) is needed for the [[ComfortUpdate]] - see [https://php.net/manual/zlib.setup.php PHP Zlib Extension documentation]<br />
<br />
In most cases, your web server provider or system administrator will be able to help you out with these optional components.<br />
<br />
If you want to run Microsoft's IIS server, taking a look at '"[[Installation on XP with IIS]]''' might also help.<br />
<br />
===Browser compatibility===<br />
'''For the survey-taking side''', we currently support IE9 and all newer comparable browsers like FF, Chrome, Opera etc. with activated JavaScript.<br />
'''For the administration part''', we currently support IE11 and all newer comparable browsers like FF, Chrome, Opera etc. with activated JavaScript. <u>We do not support any IE version running in Intranet-mode or Compatibility-mode!</u><br />
<br />
==Screen sizes==<br />
We support any reasonable screen size for survey taking (360px x 640px and up).<br />
The minimum supported screen resolution for the LimeSurvey administration page is 1280px x 1024px.<br />
<br />
==Hosting for LimeSurvey==<br />
<br />
LimeSurvey should work with most hosting companies that provide PHP and MySQL. If you want a ready-installed version of LimeSurvey, you could try [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Professional], else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].<br />
<br />
=Download the LimeSurvey package=<br />
<br />
[https://www.limesurvey.org/en/downloads/category/25-latest-stable-release Download] the latest stable LimeSurvey zip package (there are also gzip, bz2 and 7zip packages available for your convenience) and save it to your local disk.<br />
<br />
=Unpack the LimeSurvey package=<br />
<br />
Uncompress the zip file into a dedicated directory/folder using your preferred compression software. When you uncompress the file make sure that you uncompress the directory structure with the files (this is default behavior for most compression programs). The path name for the installation directory should not include '(' or ')' special characters, but it may include the '''space''' character.<br />
<br />
=Collect information about your server=<br />
<br />
You will need to know the following things to install LimeSurvey on your web server correctly:<br />
*Your intended website URL where your scripts will reside (e.g. ''http://my.domain.com/limesurvey'').<br />
*The physical disk location on your server where your scripts will reside (e.g. ''/home/usr/htdocs/limesurvey'').<br />
*The IP/net location of your database server (i.e. ''localhost'').<br />
*If your database server uses a non-standard port, find out which port it is.<br />
*Your user name and password for your database server.<br />
*With most providers you can't let the script create the database, but have to do it yourself. If you are using such a provider, please create a database (for example ''limesurvey'') yourself.<br />
<br />
=Upload the files to your web server=<br />
<br />
Using your FTP program (e.g. FileZilla), connect to your web server and create a directory to store your scripts. Then upload the files using the directory structure they are in. Make sure you '''upload the files in binary mode''' (check the settings of your FTP program). Please note that uploading in ASCII mode can lead to uncommon errors (e.g. 'class not found' error during installation), also images may not be uploaded correctly.<br />
<br />
=Set directory permissions=<br />
<br />
For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.<br />
*The '''"/limesurvey/tmp"''' directory (and all its subdirectories and files) are used for imports & uploads and should be set to ''Read & Write'' for your webserver.<br />
*The '''"/limesurvey/upload/"''' directory (and all its subdirectories and files) must also have ''Read & Write'' for your webserver in order to enable picture and media files upload.<br />
*The '''"/limesurvey/application/config/"''' directory also needs ''Read & Write'' permissions for your webserver.<br />
*The other directories can be set to ''Read Only''. You may wish in Linux/Unix to set the permissions on each file within the /limesurvey/admin directory to ''Read Only''.<br />
<br />
{{Alert|If you are using Linux, then setting permissions depends on your webserver configuration. For example, if you use Apache HTTPD on CentOS, type '''chmod -R 755 <directory> ; chown -R apache <directory>'''. This will give everyone access to read, and your webserver will have the permission to write. Check the [https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions following link] for more information on Linux permissions.}}<br />
<br />
=Create a database user=<br />
<br />
LimeSurvey will create a database and the tables inside it. To be able to do this, it will need the user name and password of a database user. We generally recommend creating a database user with the following permissions:<br />
<br />
- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX<br />
<br />
- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER<br />
<br />
- Microsoft SQL Server: ''Unknown - if you can find out this information, please complete it''.<br />
<br />
=Run the installation script=<br />
<br />
'''Go to "http://www.example.com/limesurvey/admin"'''. If you configured everything correctly, the LimeSurvey installer should be starting - just follow the instructions. You will be asked whether you wish to create the database and/or create the tables inside the database. LimeSurvey will then create the needed tables in the database.<br />
<br />
=Connect to the administration script for the first time=<br />
<br />
You are done when the installation finishes! Open your browser and enter the URL to the LimeSurvey administration. Assuming you used 'limesurvey' as the directory name to store the files in, this will be something like "http://www.example.com/limesurvey/admin".<br />
<br />
You should get a login screen. The default login credentials (if they have not been changed during the installation) are:<br />
<br />
<syntaxhighlight lang='html' enclose="div"><br />
<br />
User: admin<br />
Password: password<br />
<br />
</syntaxhighlight><br />
<br />
You will be prompted to change the default password after you logged in. Have fun!<br />
<br />
=Se eu tiver problemas...=<br />
<br />
Como todos os programas de computador, a maior parte do tempo as coisas vão funcionar como dizem as instruções, mas às vezes simplesmente não vão. Existem tantas razões possíveis para que as coisas não saiam conforme o planos, que não é possível descrevê-las aqui. Então, se você encontar um problema, primeiro verifique o [[Installation_FAQ|FAQ de instalação]]. Se não encontrar a resposta, então envie seu problema e eventuais mensagens de erro para [http://www.limesurvey.org/en/forum LimeSurvey forums] em limesurvey.org ou junte-se ao canal [irc://irc.freenode.net/limesurvey|canal IRC LimeSurvey IRC]:<br />
<br />
<div class="simplebox"><center>'''[https://www.limesurvey.org/community-services/live-chat Direct link to the official LimeSurvey IRC Channel]'''</center></div></div>Marciojvhttps://manual.limesurvey.org/index.php?title=Translations:Installation_-_LimeSurvey_CE/8/pt-br&diff=86238Translations:Installation - LimeSurvey CE/8/pt-br2018-02-04T22:20:23Z<p>Marciojv: Created page with "Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais."</p>
<hr />
<div>Certifique-se de que seu servidor atenda aos seguintes requisitos adicionais.</div>Marciojvhttps://manual.limesurvey.org/index.php?title=Using_regular_expressions&diff=3679Using regular expressions2012-05-29T18:35:56Z<p>Marciojv: </p>
<hr />
<div><br />
__TOC__<br />
<br />
(Perl) Regular Expressions must start and finish with a forward slash ("/"). You can find a good library of regular expressions at http://www.regxlib.net/. These patterns will almost all work if surrounded with the forward slash.<br />
<br />
To test your regex you can [http://www.regxlib.net/RETester.aspx use this regex tester].<br />
<br />
''Please add successfully tested regular expressions!''<br />
<br />
Examples (note that these are all one line):<br />
<br />
=SPECIAL NOTE: Regular Expressions in Conditions=<br />
<br />
Note that when using regular expressions in the condition editor, do NOT include the beginning and ending slash.<br />
<br />
=Email Validation:=<br />
<br />
<nowiki>/(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})/</nowiki><br />
<br />
The above regex will not validate email adresses with "+" - which is valid, and e.g. promoted by gmail. The below regex is slightly modified and allows "+":<br />
<br />
<nowiki>/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/</nowiki><br />
<br />
It is still far from perfect - but I think its better then the original (also because start-of-string and end-of-string anchors are added). Mind. This will allow e.g. abc+++defg@somemail.office.com. Ideally the regex should be modified to only allow one "+" charachter.<br />
<br />
=Postcodes:=<br />
<br />
==Australian Postcodes:==<br />
<br />
<nowiki>/^[0-9]{4}/</nowiki><br />
<br />
==Brazilian Postcodes:==<br />
<br />
<nowiki>/^[0-9]{2}\.[0-9]{3}-[0-9]{3}$/</nowiki><br />
<br />
==Canadian Postcodes:==<br />
<br />
<nowiki>/^[a-zA-Z]\d{1}[a-zA-Z](\-| |)\d{1}[a-zA-Z]\d{1}$/</nowiki><br />
<br />
==US Postal Codes:==<br />
<br />
<nowiki>/^[0-9]{5}([- /]?[0-9]{4})?$/</nowiki><br />
<br />
=Phone Numbers=<br />
<br />
==US Phone Number:==<br />
<br />
<nowiki>/^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$/</nowiki><br />
<br />
or<br />
<br />
<nowiki>/^[\(\)\.\- ]{0,}[0-9]{3}[\(\)\.\- ]{0,}[0-9]{3}[\(\)\.\- ]{0,}[0-9]{4}[\(\)\.\- ]{0,}$/</nowiki><br />
<br />
This second option will match all phone Canadian and US phone numbers that include non-digit symbols including<br />
<br />
<nowiki> . ( ) - (space)</nowiki><br />
<br />
This will allow you to match phone numbers which resemble below.<br />
*(555)555 5555<br />
*555.555.5555<br />
*555 555 5555<br />
*(555)-555-5555<br />
*555-555-5555<br />
*555555555<br />
<br />
==Australian Phone Number:==<br />
<br />
The following patterns match all various Australian mobile and landline phone numbers including with "+61" country prefix eg:<br />
*(02) 9123 6535<br />
*03 1234-5345<br />
*0412 345 678<br />
*+61 2 3456 789<br />
<br />
But not:<br />
* 234 3450 234<br />
*a234 534 3432<br />
*134567<br />
*123456789013<br />
<br />
Brackets, white space and hypens are ignored.<br />
<br />
<nowiki>NOTE: The 'PRECICE' versions listed here match against the first four or five didgets in a number to ensure that they are valid Australian numbers.<br />
<br />
The 'NOT VERY PRECISE' only match against the first and second didgit so may allow invaid numbers</nowiki><br />
<br />
===All Australian phone numbers (mobile and landline - area code required)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^\(?(?:\+?61|0)(?:(?:2\)?[ -]?(?:3[ -]?[38]|[46-9][ -]?[0-9]|5[ -]?[0-35-9])|3\)?(?:4[ -]?[0-57-9]|[57-9][ -]?[0-9]|6[ -]?[1-67])|7\)?[ -]?(?:[2-4][ -]?[0-9]|5[ -]?[2-7]|7[ -]?6)|8\)?[ -]?(?:5[ -]?[1-4]|6[ -]?[0-8]|[7-9][ -]?[0-9]))(?:[ -]?[0-9]){6}|4\)?[ -]?(?:(?:[01][ -]?[0-9]|2[ -]?[0-57-9]|3[ -]?[1-9]|4[ -]?[7-9]|5[ -]?[018])[ -]?[0-9]|3[ -]?0[ -]?[0-5])(?:[ -]?[0-9]){5})$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\+?61|0)[2-478](?:[ -]?[0-9]){8}$/</nowiki><br />
<br />
===All Australian phone numbers (landlines only - area code required)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^\(?(?:\+?61|0)(?:2\)?[ -]?(?:3[ -]?[38]|[46-9][ -]?[0-9]|5[ -]?[0-35-9])|3\)?(?:4[ -]?[0-57-9]|[57-9][ -]?[0-9]|6[ -]?[1-67])|7\)?[ -]?(?:[2-4][ -]?[0-9]|5[ -]?[2-7]|7[ -]?6)|8\)?[ -]?(?:5[ -]?[1-4]|6[ -]?[0-8]|[7-9][ -]?[0-9]))(?:[ -]?[0-9]){6}$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\+?61|\(?0)[2378]\)?(?:[ -]?[0-9]){8}$/</nowiki><br />
<br />
===New South Wales landline phone numbers (area code optional)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)2\)?[ -]?)?(?:3[ -]?[38]|[46-9][ -]?[0-9]|5[ -]?[0-35-9])(?:[ -]?[0-9]){6}$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)2\)?(?:[ -]?[0-9]){7}[0-9]$/</nowiki><br />
<br />
===Victorian and Tasmanian landline phone numbers (area code optional)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)3\)?[ -]?)?(?:4[ -]?[0-57-9]|[57-9][ -]?[0-9]|6[ -]?[1-67])(?:[ -]?[0-9]){6}$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)3\)?(?:[ -]?[0-9]){7}[0-9]$/</nowiki><br />
<br />
===Queensland landline phone numbers (area code optional)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)7\)?[ -]?)?(?:[2-4][ -]?[0-9]|5[ -]?[2-7]|7[ -]?6)(?:[ -]?[0-9]){6}$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)7\)?(?:[ -]?[0-9]){7}[0-9]$/</nowiki><br />
<br />
===South Australia, Northern Territory, Western Australia landline phone numbers (area code optional)===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)8\)?[ -]?)?(?:5[1-4]|6[0-8]|[7-9][0-9])$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)8\)?(?:[ -]?[0-9]){7}[0-9]$/</nowiki><br />
<br />
===Australian Mobile phone numbers only===<br />
<br />
<nowiki>VERY PRECISE<br />
<br />
/^(?:\+?61|0)4 ?(?:(?:[01] ?[0-9]|2 ?[0-57-9]|3 ?[1-9]|4 ?[7-9]|5 ?[018]) ?[0-9]|3 ?0 ?[0-5])(?: ?[0-9]){5}$/<br />
<br />
NOT VERY PRECISE<br />
<br />
/^(?:\(?(?:\+?61|0)4\)?(?:[ -]?[0-9]){7}[0-9]$/</nowiki><br />
<br />
=German marks (with optional plus or minus)=<br />
<br />
<nowiki>/^[1-6]{1}[\+|\-]?$/</nowiki><br />
<br />
=Age Validation=<br />
<br />
===Example: Age 20-99===<br />
<br />
<nowiki>/([2-9][0-9])/</nowiki><br />
<br />
===Example: Age 18-35===<br />
<br />
<nowiki>/(1[8-9]|2[0-9]|3[0-5])/</nowiki><br />
<br />
===Example: Age 19-65===<br />
<br />
<nowiki><div class="simplebox">(1[8-9]|[2-5][0-9]|6[0-5])$</nowiki><br />
<br />
=Number validation=<br />
<br />
==Numbers from 1 to 99999==<br />
<br />
<nowiki>/^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9])$/</nowiki> <nowiki>/^[1-9][0-9]{0,4}$/ does the same as above but should run a little faster</nowiki><br />
<br />
==Numbers from 1 to 999, 1.000 to 999.999 to 999.999.999==<br />
<br />
<nowiki>/^[1-9][0-9]{0,2}(?:\.[0-9]{3}){0,2}$/<br />
<br />
accepts numbers from 1 to 999, 1.000 to 999.999 to 999.999.999 but<br />
<br />
rejects numbers like 999.1.1 , 94.22.22, 999.1.22, 999.11.1, 999.1.333</nowiki><br />
<br />
==Number validation with optionnal decimal (for price)==<br />
<br />
<nowiki>/^([1][0-9][0-9]|[1-9][0-9]|[0-9])[[\.)[0-9][0-9])?$/ accepts numbers from 0 to 199, with 2 decimal optionnal</nowiki> <nowiki>/^[1-9][0-9]{0,2}(?:,?[0-9]{3}){0,3}\.[0-9]{2}$/<br />
<br />
forces two decimal points<br />
<br />
accepts numbers from 1.00 to 999,999,999.00 with an optional comma delimiting thousands/millions<br />
<br />
including all of the following: 1.00, 1,000.00 , 12,345.67 , 12345,02 , 123,456,468.00 , 1234566.00 , 123456789.00<br />
<br />
but not 1,23.00 , 12,3.4 or 1234,43.04</nowiki> <nowiki>/^[1-9][0-9]{0,2}(?:,?[0-9]{3}){0,3}(?:\.[0-9]{2})?$/ same as above but the two decimal points are optional</nowiki><br />
<br />
==Month (1-12)==<br />
<br />
If you want to ask for the month a person was born you can validate the input as follows:<br />
<br />
<nowiki>/^[0]*[1-9]$|^[0]*1[0-2]$/</nowiki><br />
<br />
=Minimum width (set to 3 in this example)=<br />
<br />
<nowiki>/^.{3,}$/</nowiki><br />
<br />
=Currency=<br />
<br />
==US currency (dollar sign and cents optional)==<br />
<br />
<nowiki>/^\$?\d+(\.(\d{2}]]?$/</nowiki><br />
<br />
==Swiss price==<br />
<br />
A number with two decimal numbers after the decimal point of which the last one is either a 5 or a 0:<br />
<br />
<nowiki>/^(\d+)(\.\d(05)?)?$/</nowiki><br />
<br />
=Validate score=<br />
<br />
==1-10==<br />
<br />
<nowiki>/^[1-9]{1}$|^10$/</nowiki><br />
<br />
==1-100==<br />
<br />
<nowiki>/^[1-9]?[0-9]{1}$|^100$/</nowiki><br />
<br />
=Text validation=<br />
<br />
currently multiple short text doesn't support minimum or maximum answers. One way around this is to use a long free text type question with a regular expression.<br />
<br />
The following test for at least one word per line for at least 3 lines and no more than 10 lines. <nowiki>/(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+)*)(?:[,.;:?!& \n\r]?(?:\n|\r|\n\r|\r\n)(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+)*)){2,10}/is</nowiki>If you wanted, say five words per line you could change the first and last star/asterisk to {4,} e.g. <nowiki>/(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+){4,})(?:[,.;:?!& \n\r]?(?:\n|\r|\n\r|\r\n)(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+){4,})){2,10}/is</nowiki>If you wanted one or more words per line on between 1 and 5 lines, you can change the content of the last curley braces to {0,4} (note you use 0 because you're already matching the first line. <nowiki>/(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+)*)(?:[,.;:?!& \n\r]?(?:\n|\r|\n\r|\r\n)(?:[</div>,.;:?!& \n\r]+(?: [<div class="simplebox">,.;:?!& \n\r]+)*)){0,4}/is</nowiki><br />
<br />
==Word count==<br />
<br />
<nowiki>The following restricts the number of words allowed to a minimum of 1 and a maximum of 200<br />
<br />
/^[-\w]+(?:\W+[-\w]+){0,199}\W*$/</nowiki><br />
<br />
<nowiki>To increase the minimum change the zero part of {0,199}<br />
<br />
To increase or decrease the maximum change the "199" part of {0,199}</nowiki><br />
<br />
=Time validation=<br />
<br />
There are a number of ways of writing time formats. Some of the possible options are 12 hour or 24 hour, with seconds or without. Currently (2009/04/06) LimeSurvey (v1.80plus) doesn't have a Time queston type so instead you can use "short free text" with one of the nine validation regular expressions below:<br />
<br />
<nowiki>The following three validation strings test for 24 hour time (in order of appearences) without seconds, with optional seconds lastly with seconds required.<br />
<br />
/^(?:[01][0-9]|2[0-3]):[0-5][0-9]$/<br />
<br />
/^(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9])?$/<br />
<br />
/^(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/~/pp<span style="color:pp~The following three match 12 hour time, as above with seconds, optional seconds and with seconds required<br />
<br />
/^(?">00:[0-5][0-9] (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9] (?:[ap]m|[AP]M)|12:[0-5][0-9] (?:pm|PM))$/<br />
<br />
/^(?:00:[0-5][0-9](?::[0-5][0-9])? (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9](?::[0-5][0-9])? (?:[ap]m|[AP]M)|12:[0-5][0-9](?::[0-5][0-9])? (?:pm|PM))$/<br />
<br />
/^(?:00:[0-5][0-9]:[0-5][0-9] (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9]:[0-5][0-9] (?:[ap]m|[AP]M)|12:[0-5][0-9]:[0-5][0-9] (?:pm|PM))$/~/pp</span>pp~The following three match either 12 or 24 hour time as above with seconds, optional seconds and with seconds required<br />
<br />
/^(?:(?:00:[0-5][0-9] (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9] (?:[ap]m|[AP]M)|12:[0-5][0-9] (?:pm|PM))|(?:[01][0-9]|2[0-3]):[0-5][0-9])$/<br />
<br />
/^(?:(?:00:[0-5][0-9](?<center>[0-5][0-9])? (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9](?</center>[0-5][0-9])? (?:[ap]m|[AP]M)|12:[0-5][0-9](?<center>[0-5][0-9])? (?:pm|PM))|(?:[01][0-9]|2[0-3]):[0-5][0-9](?</center>[0-5][0-9])?)$/<br />
<br />
/^(?:(?:00:[0-5][0-9]:[0-5][0-9] (?:am|AM)|(?:0[1-9]|1[01]):[0-5][0-9]:[0-5][0-9] (?:[ap]m|[AP]M)|12:[0-5][0-9]:[0-5][0-9] (?:pm|PM))|(?:[01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/</nowiki><br />
<br />
=US States=<br />
<br />
To validate for one state use the following (example is Texas):<br />
*TX uppercase only = <nowiki>/^(TX)$/</nowiki><br />
*tx lowercase only = <nowiki>/^(tx)$/</nowiki><br />
*TX upper or lowercase = <nowiki>/^([T|t][X|x])$/</nowiki><br />
<br />
=Profanity Filter=<br />
<br />
To filter profanity words from an answer:<br />
<br />
/^(?i)</div>Marciojv