Actions

Optional settings/es: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 4: Line 4:
=Nota=
=Nota=


Estas preferencias opcionales sólo se pueden encontrar en config-defaults.php de una instalación estándar - algunas de ellas sólo se usan en la primera instalación, y son anuladas en las [[Configuraciones globales]]. <span style='color:red'> Si quieres cambiar estas preferencias, por favor no las cambies en config-defaults.php, sino copia esa línea en particular a config.php, y cámbiala ahí. Todas las preferencias que están en config.php anulan los valores predeterminados de config-defaults.php, y desde la versión 1.87, algunas de éstas se pueden anular desde el diálogo de Configuraciones globales</span>. Así es mucho más fácil actualizar tu instalación después!
These optional settings can only be found in the file /application/config/config-defaults.php of a standard installation - some of them are only used for first installation and overriden in [[Global settings]].  
{{Alert|If you want to change these settings please do not change it in config-defaults.php but copy the particular setting/line over to /application/config/config.php in <nowiki>'config'=>array()</nowiki> and change it there.}}
All settings in config.php overwrite the default values from config-defaults.php and some of these settings get overridden in the Global settings dialog{{NewIn|1.87}} . This way it is much easier to upgrade your installation at a later time!


= Preferencias específicas de la base de datos=
=General settings=
*'''$databaseport:''' Este valor es el puerto usado por tu servidor de base de datos. En la mayoría de los casos, "default" está bien - si tu servidor de base de datos no usa un puerto estándar, sólo cambia el valor al puerto que use.
*'''$databasetabletype:''' El motor de almacenamiento de MySQL que debe usarse cuando se creen tablas de resultados de encuestas y tablas fichas (si se usó mysql). 'MyISAM' es el valor recomendado por defecto, y es el único motor que se garantiza que funcionará.
*'''$databasepersistent:''' Si quieres habilitar conexiones persistentes a la base de datos, debe ser 'true' - esto puede ser más fácil para algunos controladores de bases de datos. El valor por defecto es false.
 
=Configuraciones generales=
*'''$sitename''': Le da un nombre al sitio de la encuesta. Este nombre aparecerá en el resumen de la lista de la encuesta y en el encabezado de administración. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$siteadminemail:''' Esta es la dirección por defecto del administrador del sitio, y se usa para mensajes del sistema y opciones de contacto. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$siteadminbounce:''' Esta es la dirección por defecto a donde se mandarán correos rebotados. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$siteadminname:''' El nombre real del administrador del sitio. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])


*'''sitename''': Give your survey site a name. This name will appear in the survey list overview and in the administration header. This setting is overridden in the [[Global settings]] dialog {{NewIn|1.87}}.
*'''sitename''': Give your survey site a name. This name will appear in the survey list overview and in the administration header. This setting is overridden in the [[Global settings]] dialog {{NewIn|1.87}}.
Line 22: Line 15:
*'''siteadminname:''' The real name of the site administrator. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
*'''siteadminname:''' The real name of the site administrator. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.


= Seguridad=
= Security=
* '''$surveyPreview_require_Auth''': true por defecto. Si fijas esto a falso, cualquier persona puede tomar tu encuesta usando el URL de la misma - sin tener que acceder a la administración, y sin tener que activar la encuesta primero. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
* '''usercontrolSameGroupPolicy''' :  es true por defecto. Por defecto, los usuarios no administradores definidos en la interfaz de administración de LimeSurvey sólo pueden ver a otros usuarios si pertenecen a por lo menos un grupo al que pertenece el usuario. Esto es establecido por el siguiente parámetro:
*'''$filterxsshtml:''' Esta preferencia habilita el filtro de tags sosperchosos de html en los textos de encuesta, grupos, preguntas y respuestas en la interfaz de administración. Sólo cambia esto a 'false' si confias absolutamente en los usuarios que creaste para la administración de LimeSurvey y si quieres permitirle a los usuarios que usen Javascript, Flash, etc. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$demoModeOnly:''' Si esta opción es true, LimeSurvey entrará al modo de demostración. Este modo cambia las siguientes cosas:
** Deshabilita el cambio de la información y contrase&ntilde;as de los administradores
** Deshabilita la carga de archivos en el editor de plantillas
** Deshabilita el envío de invitaciones de correo y recondatorios
** Deshabilita el volcado de base de datos doing a database dump
** Deshabilita el guardado de las siguientes configuraciones: Nombre del sitio, idioma por defecto, modo de editor de HTML por defecto, filtro de XSS


* '''surveyPreview_require_Auth''': true by default. If you set this to false any person can test your survey using the survey URL - without logging in to the administration and without having to activate the survey first. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
* '''surveyPreview_require_Auth''': true by default. If you set this to false any person can test your survey using the survey URL - without logging in to the administration and without having to activate the survey first. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
Line 43: Line 27:
** Disables the ability to save the following global settings: Site name, Default language, Default Htmleditor Mode, XSS filter
** Disables the ability to save the following global settings: Site name, Default language, Default Htmleditor Mode, XSS filter


= Recursos=
= Resources=
*'''$memorylimit:''' Esto establece cuánta memoria puede accesar LimeSurvey. '16M' es lo mínimo recomendado. Si recibes errores de tiempo o tienes problemas al generar estadísticas o exportar archivos, incrementa este límite a '128M' o '256M'.
*'''sessionlifetime:''' Defines the time in seconds after which a survey session expires. Default: $sessionlifetime    =  3600; .This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
*'''$sessionlifetime:''' Define el tiempo en segundos después del cual expira la sesión de la encuesta. Default: $sessionlifetime    =  3600; (starting with 1.87 this setting is overridden in the [[Global settings]] dialog)
*'''memorylimit:''' This sets how much memory LimeSurvey can access. '32' is the minimum (M=mb) recommended. If you receive time out errors or have problems generating statistics or exporting files raise this limit to '128' or '256'.


<div class="warningbox">Please mind that such local settings by an application can always be overruled by global server settings.</div>
<div class="warningbox">Please mind that such local settings by an application can always be overruled by global server settings.</div>
Line 54: Line 38:
*php_value memory_limit 128M in a .htaccess file in the LimeSurvey root
*php_value memory_limit 128M in a .htaccess file in the LimeSurvey root


=Apariencia=
=Appearance=
*'''$lwcdropdowns:''' Esto puede ser "L" o "R". Si es "R", las preguntas de tipo 'Lista con Comentario' serán desplegadas como botones de opción, mientras que "L" hará que se desplieguen como una lista desplegable. (Obsoleto desde la versión 2.0)
*'''$lwcdropdowns:'''{{ObsoleteIn|2.0}} This can be set to either "L" or "R". Setting it to "R" will result in 'List with Comment' questions being displayed as radio buttons, whereas "L" will result in 'List with Comment' questions being displayed in a 'dropdown' list box .
*'''$dropdownthreshold:''' Cuando tienes seleccionado "R" para los $dropdowns, esto te permite elegir el número máximo de opciones que se desplegarán como botones de opción antes de volverse una lista desplegable. Si tienes una pregunta que tiene un gran número de opciones, se puede ver abultado si las muestras todas como botones de opción, y puede ser confuso para los usuarios. Un máximo de 25 (que es el valor por defecto) hace las listas grandes más fáciles de usar para el participante de la encuesta.
*'''$dropdownthreshold:''' When you have selected "R" for $dropdowns, this allows you to set a maximum number of options that will display as radio buttons, before converting back to a dropdown list. If you have a question that has a large number of options, displaying them all as radio buttons can look unweildy, and be counter-intuitive to users. Setting this to a maximum of, say 25 (which is the default) means that large lists are easier for the survey participant to use.
*'''$repeatheadings:''' Con el tipo de pregunta de arreglo (flexible), usualmente tendrás un gran número de respuestas, que al desplegarse en pantalla ocupan más de una página. Ésta configuración te deja decidir cuántas respuestas desplegar antes de repetir el encabezado de la pregunta. Una buena cantidad es 15. Si no quieres que se repitan los encabezados, ajusta esto a 0 (que es el valor por defecto).
*'''$repeatheadings:''' With the array (flexible) type question, often you'll have a lot of answers, which - when displayed on screen - take up more than one page. The repeat-headers setting lets you decide how many answers should be displayed before repeating the header information for the question. A good setting for this is around 15. If you don't want the headings to repeat at all, set this to 0 (which is the default).
*'''$minrepeatheadings:''' El mínimo de preguntas que se necesitan para repetir los encabezados en preguntas de arreglo (flexible).
*'''$minrepeatheadings:''' The minimum number of reaming answers that are required before repeating the headings in array (flexible) questions.
*'''$addTitleToLinks:''' Si esta opción es true, LimeSurvey le agregará el elemento 'title' de html a todos los vínculos usados en menús. Esto ayuda a los lectores de pantalla a analizar los menús. Sólo ajusta esto a true si estás usando un lector de pantalla y se enciman las herramientas.
*'''$addTitleToLinks:''' If this option is set to true, then LimeSurvey will add 'title' html element to all links used in menus. This will help screen reader to analyze the menus. Only set this to true if you're using a screen reader because it overlaps with tool tips.
*'''$defaulttemplate:''' Esta opción especifica el tema por defecto usado para la 'lista pública' de encuestas. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$defaulttemplate:''' This setting specifys the default theme used for the 'public list' of surveys. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
*'''$defaulthtmleditormode:''' Ajusta el modo por defecto del editor integrado de HTML (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]]) . Las opciones válidas son: inline (por defecto), popup and none:
*'''$defaulthtmleditormode:''' Sets the default mode for integrated HTML editor. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}. Valid settings are: inline (default), popup and none:
** ''inline'': Se reemplazan los campos en línea por el editor de HTML. Lento, pero conveniente y fácil de usar.
** ''inline'': Inline replacement of fields by an HTML editor. Slow but convenient and user friendly
** ''popup'': Agrega un ícono que abre una ventana emergente con el editor de HTML. Es más rápido, pero el código html se despliega en la forma.
** ''popup'': Adds an icon that runs a popup with and html editor. Faster, but html code is displayed on the form
** ''none'': Sin editor de HTML
** ''none'': No html editor


=Idioma y Hora=
=Language & Time=
*'''$defaultlang:''' Esto debe ser idioma por defecto usado en los scripts de administración, así como el idioma por defecto en las encuestas públicas. Puedes cambiar esta opción para cada una de las encuestas desde los scripts de administración. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$defaultlang:''' This should be set to the default language to be used in your administration scripts, and also the default setting for language in the public surveys. You can change this setting for public surveys on a survey-by-survey basis from the admin scripts. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
*'''$timeadjust:''' Si tu servidor web está en un huso horario diferente del lugar donde se basarán tus encuestas, pon la diferencia entre los dos aquí. Por ejemplo, yo vivo en Australia, pero uso un servidor en los Estados Unidos. El servidor web está 14 horas detrás de mi huso horario. Por lo tanto, está ajustado a "14!. En otras palabras, le agrega 14 horas a la hora del servidor web. Esta opción es particularmente importante si la encuesta guarda la hora de la respuesta. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$timeadjust:''' If your web server is in a different time zone to the location where your surveys will be based, put the difference between your server and your home time zone here. For example, I live in Australia but use a US web server. The web server is 14 hours behind my local time zone. So my setting here is "14". In other words, it adds 14 hours to the web servers time. This setting is particularly important when surveys timestamp the responses. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
* '''$modrewrite:''' Si es 1, activa la función de URL elegante. (Ejemplo: http://survey.example.com/123456/lang-fr/tk-sdlfkjozeiru en vez de http://survey.example.com/index.php?sid=123456&lang;=fr&token;=sdlfkjozeiru). Antes de activar esto, <u>debes</u> renombrar el archivo "''htaccess.txt''" a "''.htaccess''". Necesitas ejecutar un servidor web Apache con el módulo mod_rewrite correctamente instalado.
* '''$modrewrite:''' {{ObsoleteIn|2.0}} If set to 1, it activates the fancy URL feature (Example: http://survey.example.com/123456/lang-fr/tk-sdlfkjozeiru instead of http://survey.example.com/index.php?sid=123456&lang;=fr&token;=sdlfkjozeiru). Before you activate this, you <u>must</u> rename "''htaccess.txt''" file to "''.htaccess''". You need to run an Apache web server with correctly installed mod_rewrite module.


=Comportamiento de la Encuesta=
=Survey Behavior=
*'''$allowmandbackwards:''' Un valor de 1 para esta variable le permitirá a los participantes de la encuesta moverse a una pregunta anterior, aún si no han contestado una pregunta obligatoria. Si es 0, los participantes deberán contestar la pregunta antes de poder volver a una anterior.
*'''$allowmandbackwards:''' A setting of 1 for this variable will allow survey participants to move to a previous question even if they haven't answered a mandatory question. If it is set on 0, then participants will have to answer that question even to move to a previous question.
*'''$deletenonvalues:''' Esta es una opción un poco difícil de explicar. Si es 0, si una pregunta (digámosle pregunta "b") sólo se muestra bajo una condición (es decir, basada en la respuesta de una pregunta anterior - digámosle "a"), y el usuario contesta la pregunta "b" pero se regresa y cambia la respuesta de la pregunta "a" de tal modo que la pregunta "b" ya no aparece, la encuesta recordará y guardará la respuesta de la pregunta que ya no se desplegó (la pregunta "b"). Usualmente prefiero que este sea el caso, teniendo en cuenta que puede ser interesante saber esta información de todos modos. Pero, si prefieres que el script sea consistente y se rehuse a guardar información que no aplica, puedes cambiar el valor a 1, y el script no guardará esta información redundante.
*'''$deletenonvalues:''' Use this feature with caution.  By default (a value of 1), irrelevant questions are NULLed in the database.  This ensures that the data in your database is internally consistent.  However, there are rare cases where you might want to hold onto irrelevant values, in which case you can set the value to 0.  Say you ask the person his gender, and he accidentally says 'female' and then answers some female-specific questions (questions that are conditioned on being female, so are only relevant for women).  Then, he realizes his mistake, backs up, sets the gender to 'male', and continues with the survey.  Now, the female-specific questions are irrelevant.  If $deletenonvalues==1, those irrelevant values will be cleared (NULLed) in the database.  If $deletenonvalues==0, his erroneous answers will not be deleted, so they will still be present in the database when you analyze it.
*'''$shownoanswer:''' Cuando una pregunta del tipo de selección o botón de opción que tiene respuestas editables (por ejemplo listas o arreglos) no es obligatoria y $shownoanswer vale 1, se muestra la opción "N/A", para permitirle a los participantes no contestar la pregunta. Algunas personas prefieren que no suceda esto. Ajusta ésta opción a 0 para deshabilitarlo. (a partir de la versión 1.87 esta configuración se puede anular en el diálogo de [[Configuraciones globales]])
*'''$shownoanswer:''' When a question of a radio button/select type that contains editable answers (ie: List, Array questions) is not mandatory and $shownoanswer is set to 1, an additional entry is shown for "N/A" - so that participants may choose to not answer the question. Some people prefer this not to be available. Set this to 0 to turn this off. This setting is overridden in the [[Global settings]] dialog) {{NewIn|1.87}}.
*'''$printanswershonorsconditions:''' Esta opción determina si la función printaswers mostrará entradas de preguntas que se escondieron por ramificación condicional. Por defecto es 1, que significa esconder éstas preguntas.
*'''$printanswershonorsconditions:''' This setting determines if the printanswers feature will display entries from questions that were hidden by conditions-branching (Default: 1 = hide answers from questions hidden by conditions).
*'''$hide_groupdescr_allinone:''' Esta opcion es relevante las encuestas todo en uno que usan condiciones, y se introdujo en LimeSurvey 1.85RC3. Cuando es true, el nombre del grupo y la descripción se esconden si todas las preguntas del grupo están escondidas. Por defecto es true.
*'''$hide_groupdescr_allinone:'''{{NewIn|1.85RC3}} This setting is relevant for all-in-one surveys using conditions . When this is set to true the group name and description is hidden if all questions in the group are hidden. (Default: true (hide group name and description when all conditions in the group are hidden by conditions))
*'''$showpopups:'''  Muestra ventanas emergentes si no se han contestado preguntas obligatorias o condicionales correctamente. 1=Mostrar ventanas emergentes (por defecto), 0=Mostrar el error en la página.
*'''$showpopups:'''  Show popup messages if mandatory or conditional questions have not been answered correctly. 1=Show popup message (default), 0=Show message on page instead, -1=Do not show the message at all (in this case, users will still see the question-specific tips indicating which questions must be answered).


=Desarrollo=
=Desarrollo=
Line 84: Line 68:
= Opciones de correo electrónico=
= Opciones de correo electrónico=


Note: All these settings in this section are overridden in the [[Global settings]] dialog{{NewIn|1.87}}.
*'''$emailmethod:'''  This determines how E-mail messages are being sent. The following options are available:
**'''mail:''' use internal PHP mailer
**'''sendmail:''' use sendmail mailer
**'''smtp:'''use SMTP relaying. Use this setting when you are running LimeSurvey on a host that is not your mail server.
*'''$emailsmtphost:''' If you use 'smtp' as $emailmethod then you have to put your SMTP-server here. If you are using Google mail you might have to add the port number like $emailsmtphost = 'smtp.gmail.com:465';
*'''$emailsmtpuser:''' If your SMTP-server needs authentication then set this to your user name, otherwise it must be blank.
*'''$emailsmtppassword:''' If your SMTP-server needs authentication then set this to your password, otherwise it must be blank.
*'''$emailsmtpssl:''' Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection
*'''$maxemails:''' When sending invitations or reminders to survey participants, this setting is used to determine how many emails can be sent in one bunch. Different web servers have different email capacities, and if your script takes too long to send a bunch of emails, the script could time out and cause errors. Most web servers can send 100 emails at a time within the default 30 second time limit for a PHP script. If you get script timeout errors when sending large numbers of emails, reduce the number in this setting.  Clicking the 'send email invitation' button on the token control toolbar, (not the button on the right of each token), sends the maxemails number of invitations, then displays a list of the addresses sent to and a warning that "There are more emails pending than could be sent in one batch. Continue sending emails by clicking below. There are ### emails still to be sent." and provides a "continue button" to proceed with the next batch. I.e., the user determines when to send the next batch after each batch gets emailed.  It is not necessary to wait with this screen active.  The admin could log off and come back at a later time to send the next batch of invites.


Nota: A partir de la versión 1.87 estas configuraciónes se pueden anular en el diálogo de [[Configuraciones globales]]
= Statistics and Response Browsing=
*'''$emailmethod:'''  Determina cómo se mandan los correos electrónicos. Las siguientes opciones están disponibles:
*'''usejpgraph:''' {{ObsoleteIn|1.8}} The [http://www.aditus.nu/jpgraph/ JPGraph-library] lets you display the results of your survey in the statistics part of LimeSurvey  in bar- and pie charts. If you have a correctly configured jpgraph class set up on your server, you can turn this feature on or off (1=on, 0=off). Please have a look, every version of PHP needs another version of JPGraph! This feature is currently in development, so expect a few weird outcomes.
**'''mail:''' usar el mensajero interno de PHP
*'''jpgraphdir:''' {{ObsoleteIn|1.8}} The physical disk location of the jpgraph class scripts. This setting is only required if $usejpgraph is equal to 1.
**'''sendmail:''' usar el mensajero de sendmail
*'''jpgraphfont:''' {{ObsoleteIn|1.8}} The font to use with graphs. A failsafe setting would be "FF_FONT1"
**'''smtp:''' usar relevo de SMTP. Usa esta opción cuando estás ejecutando LimeSurvey en un host que no es el servidor de correo.
*'''embedded:'''{{ObsoleteIn|2.0}} If you want to integrate LimeSurvey into another page then you can turn off sending HTML headers by using this setting and point instead to the header method of a custom function. This is a dirty hack but should work for a quick integration.
*'''$emailsmtphost:''' Si usas 'smtp' como $emailmethod debes poner tu servidor SMTP aquí. Si usas Google mail, tal vez necesites agregar el número de puerto así $emailsmtphost = 'smtp.gmail.com:465';
*'''filterout_incomplete_answers:''' Control the default behaviour of  filtering incomplete answers when browsing or analyzing responses. For a discussion on incomplete Responses see [[Browsing survey results]]. Since these records can corrupt the statistics, an option is given to switch this filter on or off in several GUI forms. This parameter config.php is just the default state for the incomplete answer filter. The following options are available:
*'''$emailsmtpuser:''' Si tu servidor SMTP necesita autenticación, esto debe ser el usuario. De lo contrario, debe estar vacío.
**''show'': Show both complete and incomplete answers
*'''$emailsmtppassword:''' Si tu servidor SMTP necesita autenticación, esto debe ser la contrase&ntilde;a. De lo contrario, debe estar vacío.
**''filter'': Show only complete answers
*'''$emailsmtpssl:''' Ajusta esto a  'ssl' o 'tls' para usar SSL/TLS en la conexión SMTP
**''incomplete'': Show only incomplete answers
*'''$maxemails:''' Cuando se mandan invitaciones o recordatorios a los participantes de las encuestas, esta opción se usa para determinar cuántos correos se pueden enviar en conjunto. Algunos servidores web tienen diferentes capacidades de correo, y si a tu script le toma mucho tiempo enviar los correos, puede tener errores. La mayoría de los servidores web pueden enviar hasta 100 correos a la vez en el tiempo límite de 30 segundos de un script de PHP. Si tienes errores de tiempo de script, reduce este número. El botón de 'send email invitation' en la barra de herramientas de fichas, (no el botón de cada ficha), envía maxemails invitaciones, y muestra la lista de las direcciones a donde se mandaron, y un aviso que dice "Hay más correos pendientes que se pueden mandar en conjunto. Continúa mandando correos haciendo click debajo. Hay ### emails por enviarse." y muestra un "botón de continuar" para proceder con el siguiente conjunto. No es necesario esperar con esta ventana abierta, El administrador puede cerrarla y volver después para mandar el siguiente conjunto de invitaciones.
*'''strip_query_from_referer_url''': This setting determine if the referrer URL saves parameter or not. Default value is "false" (in this case referrer URL saves all parameter). Alternatively this value can be set to "true" and the parameter part of the referrer URL will be removed.
 
*'''showaggregateddata:''' {{NewIn|1.8}} When activated there are additional values like arithmetic mean and standard deviation at statistics. Furthermore data is aggregated to get a faster overview e.g. results of scale 1+2 and 4+5 are added to have a general ranking like "good" (1/2), "average" (3) and "bad" (4/5). This only affects question types "A" (5 point array) and "5" (5 point choice).
= Estadísticas y Respuesta de Navegación=
* '''PDF Export Settings:''' {{NewIn|1.85}} This feature activates PDF export for printable survey and Print Answers. The PDF export is totally experimental. The output is mostly ugly. At this point no support can be given - if you want to help to fix it please get in touch with us.
*'''$usejpgraph:''' (< 1.8) La [http://www.aditus.nu/jpgraph/ biblioteca JPGraph] te permite mostrar los resultados de tu encuesta en la parte de estadísticas de LimeSurvey como gráficas circulares o de barras. Si tienes una clase jpgraph correctamente configurada en tu servidor web, puedes encender o apagar esta función (1=encendido, 0=apagado). Por favor dale un vistazo, ¡toda versión de PHP necesita otra versión de JPGraph! Esta función está en desarrollo, así que puedes esperar algunos resultados extra&ntilde;os.
**usepdfexport: Set 0 to disable; 1 to enable
*'''$jpgraphdir:''' (< 1.8) La localización física de los scripts de clases de jpgraph. Esta opción sólo se necesita si $usejpgraph es igual a 1.
**pdfdefaultfont: Default font for the pdf Export
*'''$jpgraphfont:''' (< 1.8) La fuente que se usará en las gráficas. Una opción a prueba de fallas es "FF_FONT1"
**pdffontsize: Fontsize for normal text; Surveytitle is +4; grouptitle is +2
*'''$embedded:''' Si quieres integrar LimeSurvey a otra página, puedes apagar el envío de encabezados de HTML usando esta opción, y mostrándole el método de encabezado de una función personalizada. Es una solución rápida aunque poco estable, pero funciona bien para integraciones rápidas.
**notsupportlanguages = array('zh-Hant-TW','zh-Hant-HK','zh-Hans','ja','th');
*'''$filterout_incomplete_answers:''' Controla el comportamiento predeterminado de filtrar respuestas incompletas al navegar o analizar las respuestas. Para una discusión acerca de respuestas incompletas, véase [[Browsing survey results]]. Ya que estos datos pueden sesgar las estadísticas, usualmente hay una opción para encender y apagar este filtro en las interfaces gráficas. Éste parámetro es sólo el estado por defecto del filtro de respuestas incompletas. Las siguientes opciones están disponibles:
**pdforientation: Set L for Landscape or P for portrait format
**''show'': Muestra todas las respuestas
*'''$showsgqacode:''' {{NewIn|1.91}} This setting is used at the printable survey feature {IMG(attId="78",height="16",width="16")} and defaults to ''false''. If you set ''showsgqacode = true;'' the IDs for each question - and answer if applicable - will be shown; these IDs match the column heading at the Lime_survey_12345 table which holds the answer data for a certain survey. These Ids can be used for a code book for manual database queries.
**''filter'': Muestra sólo las respuestas completas
**''incomplete'': Muestra sólo las respuestas incompletas
*'''$stripQueryFromRefurl:''' Esta opción determina si el URL referidor guarda el parámetro o no. El valor por defecto es "false" (en este caso, el URL referidor guarda todo el parámetro). Por otra parte, puede ser "true", y la parte de los parámetros del URL referidor será removida.
*'''$showaggregateddata:''' ''(>=1.8)'' Cuando está activada, hay valores adicionales, como la media aritmética y la desviación estándar en las estadísticas. Se juntan datos para dar un resumen más rápido, por ejemplo, los resultados de la escala 1+2 y 4+5 se juntan para tener una calificación general como "bueno" (1/2), "regular" (3) y "malo" (4/5). Esto sólo afecta a los tipos de pregunta "A" (arreglo de 5 puntos) y "5" (elección de 5 puntos).
* '''PDF Export Settings:''' ''(>1.85)'' Esta función activa la exportación a PDF de la encuesta, y la impresión de respuestas. Es completamente experimental. Los resultados pueden ser completamente horrorosos. En este punto no se puede dar soporte - si quieres ayudar a arreglarlo, por favor comunícate con nosotros.
**$usepdfexport: 0 para deshabilitar; 1 para habilitar
**$pdfdefaultfont: Fuente por defecto para la exportación a PDF
**$pdffontsize: Tama&ntilde;o de letra para texto normal; Surveytitle is +4; grouptitle is +2
**$notsupportlanguages = array('zh-Hant-TW','zh-Hant-HK','zh-Hans','ja','th');
**$pdforientation: L es Formato panorámico y P es Formato de Portaretrato.
*'''$showsgqacode:''' ''(>1.91)'' Esta opción se usa en la función de impresión de encuesta {IMG(attId="78",height="16",width="16")} y es ''false'' por defecto. Si la ajustas a ''$showsgqacode = true;'' los IDs de cada pregunta - y respuesta, si aplican - serán mostrados; estos IDs concuerdan con el encabezado de columna en la tabla Lime_survey_12345, que contiene los datos de las respuestas de una encuesta dada. Estos IDs se pueden usar para un libro de códigos para hacer consultas manuales a la base de datos.
*{IMG(attId="79",height="200",width="400")}
*{IMG(attId="79",height="200",width="400")}


Line 121: Line 104:


= Autenticación=
= Autenticación=
In LimeSurvey 2.05 authentication will be handled by plugins. Because of this the information below might be outdated. See [[Plugins]] for most up to date information.


== Delegar Autenticación al servidor web==
== Delegar Autenticación al servidor web==
Line 188: Line 173:
== Uso de contrase&ntilde;as de sólo un uso==
== Uso de contrase&ntilde;as de sólo un uso==


''(desde 1.81)''
{{FeatureStarting|1.81}}


Desde la versión 1.81, el usuario puede llamar la autenticación de limesurvey en /limesurvey/admin y pasar un nombre de usuario y contrase&ntilde;a de un sólo uso que se escribió con anterioridad en la tabla de usuarios (en la columna one_time_pw) por una aplicación externa.
Desde la versión 1.81, el usuario puede llamar la autenticación de limesurvey en /limesurvey/admin y pasar un nombre de usuario y contrase&ntilde;a de un sólo uso que se escribió con anterioridad en la tabla de usuarios (en la columna one_time_pw) por una aplicación externa.
Line 196: Line 181:
= Configuraciones avanzadas de rutas=
= Configuraciones avanzadas de rutas=


'''Si es posible, no modifiques estas preferencias. Adicionalmente, sólo se pueden ajustar en config-defaults.php.'''
'''If possible do no touch these settings. Additionally these settings can only be adjusted on config-defaults.php.'''
*'''$homeurl:''' Debe ser el URL de tus scripts de administración. Son los scripts en el fólder /limesurvey/admin. Debe ser un URL de internet - por ejemplo "http://www.mydomain.com/limesurvey/html/admin". No agregues una diagonal al final de esta entrada. La configuración por defecto en config.php intenta detectar el nombre de tu servidor automáticamente usando una variable de php - {$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}. En la mayor parte de los casos, puedes dejar esto y sólo modificar el resto del string para que sea igual que el nombre del directorio donde están tus scripts de LimeSurvey.
*'''$homeurl:''' This should be set to the URL location of your administration scripts. These are the scripts in the /limesurvey/admin folder. This should be set to the WEB URL location - for example "http://www.example.com/limesurvey/html/admin". Don't add a trailing slash to this entry. The default setting in config.php attempts to detect the name of your server automatically using a php variable setting - {$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}. In most cases you can leave this and just modify the remainder of this string to match the directory name you have put the LimeSurvey scripts in.
*'''$publicurl:''' Esto debe ser el URL de tus 'scripts públicos'. Se encuentran en el fólder "limesurvey" (o el nombre que le diste al fólder donde están el resto de los directorios y scripts).
*'''$publicurl:''' This should be set to the URL location of your 'public scripts'. The public scripts are those located in the "limesurvey" folder (or whatever name you gave to the directory that all the other scripts and directories are kept in).
*'''$tempurl:''' Debe ser el URL de tu directorio "/limesurvey/tmp" - o un directorio en el que quieres que LimeSurvey guarde archivos temporales, incluyendo archivos de subida. Este directorio debe de poder leerse y escribirse por el servidor web (chmod 755)
*'''$tempurl:''' This should be set to the URL location of your "/limesurvey/tmp" directory - or a directory which you would like LimeSurvey to use to store temporary files, including uploads. This directory must be set to read & write for your webserver (e.g. chmod 755)
*'''$imagefiles:''' Por defecto debes dejar esto apuntando al URL de /limesurvey/admin/images - donde se instalan las imágenes inicialmente. Si prefieres mover estas imágenes a otro lugar, apunta este URL a donde se encuentran.
*'''$imagefiles:''' By default you should leave this pointing to the URL location of /limesurvey/admin/images - where the images are installed initially. You may, however, prefer to move these images to another location and if so point this to the URL directory where they are stored.
*'''$homedir:''' Debe ser la localización física en disco de tus scripts de administración - por ejemplo "/home/usr/htdocs/limesurvey/admin". No le agregues una diagonal a esta entrada. Por defecto, config.php intenta detectar este directorio con la variable de php - {$_SERVER<nowiki>[</nowiki>'DOCUMENT_ROOT']}. En la mayoría de los casos, puedes dejar esto así y sólo modificar el resto del string para que sea igual al nombre del directorio donde están los scripts de LimeSurvey.
*'''$homedir:''' This should be set to the physical disk location of your administration scripts - for example "/home/usr/htdocs/limesurvey/admin". Don't add a trailing slash to this entry. The default setting in config.php attempts to detect the default root path of all your documents using the php variable setting - {$_SERVER<nowiki>[</nowiki>'DOCUMENT_ROOT']}. In most cases you can leave this and just modify the remainder of this string to match the directory name you have put the LimeSurvey scripts in.
*'''$publicdir:''' Debe ser la localización física en disco de tus 'scripts públicos'
*'''$publicdir:''' This should be set to the physical disk location of your 'public scripts'.
*'''$tempdir:''' Debe ser la dirección física en disco de tu directorio /limesurvey/tmp para que el script puede leer y escribir archivos.
*'''$tempdir:''' This should be set to the physical disk location of your /limesurvey/tmp directory so that the script can read and write files.
*'''$fckeditordir:''' url del script fckeditor
*'''$fckeditordir:''' url of the fckeditor script
*'''$fckeditexpandtoolbar:''' define si la barra de herramientas de FCKeditor se debe abrir por defecto
*'''$fckeditexpandtoolbar:''' defines if the FCKeditor toolbar should be opened by default
*'''$pdfexportdir:''' Directorio con tcpdf.php extensiontcpdf.php
*'''$pdfexportdir:''' Directory with the tcpdf.php extensiontcpdf.php
*'''$pdffonts:''' Directorio de las fuentes para TCPDF
*'''$pdffonts:''' Directory for the TCPDF fonts

Revision as of 11:33, 20 October 2013

Nota

These optional settings can only be found in the file /application/config/config-defaults.php of a standard installation - some of them are only used for first installation and overriden in Global settings.

  If you want to change these settings please do not change it in config-defaults.php but copy the particular setting/line over to /application/config/config.php in 'config'=>array() and change it there.


All settings in config.php overwrite the default values from config-defaults.php and some of these settings get overridden in the Global settings dialog (New in 1.87 ) . This way it is much easier to upgrade your installation at a later time!

General settings

  • sitename: Give your survey site a name. This name will appear in the survey list overview and in the administration header. This setting is overridden in the Global settings dialog (New in 1.87 ).
  • siteadminemail: This is the default email address of the site administrator and used for system messages and contact options. This setting is overridden by the Global settings dialog (New in 1.87 ).
  • siteadminbounce: This is the email address where bounced emails will be sent to. This setting is overridden by the Global settings dialog (New in 1.87 ).
  • siteadminname: The real name of the site administrator. This setting is overridden in the Global settings dialog) (New in 1.87 ).

Security

  • surveyPreview_require_Auth: true by default. If you set this to false any person can test your survey using the survey URL - without logging in to the administration and without having to activate the survey first. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • usercontrolSameGroupPolicy :  set to true by default. By default non admin users defined in the LimeSurvey management interface will only be able to see users they create or user belongs to,at least one, same group. You can deactivate this behaviour.
  • filterxsshtml: This setting enables filtering of suspicious html tags in survey, group, questions and answer texts in the administration interface. Only leave this to 'false' if you absolutely trust the users you created for the administration of  LimeSurvey and if you want to allow these users to be able to use Javascript, Flash Movies, etc. Super admin never have their HTML filtered. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • demoModeOnly: If this option is set to true, then LimeSurvey will go into demo mode. The demo mode changes the following things:
    • Disables changing of the admin user's details and password
    • Disables uploading files on the template editor
    • Disables sending email invitations and reminders
    • Disables doing a database dump
    • Disables the ability to save the following global settings: Site name, Default language, Default Htmleditor Mode, XSS filter

Resources

  • sessionlifetime: Defines the time in seconds after which a survey session expires. Default: $sessionlifetime    =  3600; .This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • memorylimit: This sets how much memory LimeSurvey can access. '32' is the minimum (M=mb) recommended. If you receive time out errors or have problems generating statistics or exporting files raise this limit to '128' or '256'.
Please mind that such local settings by an application can always be overruled by global server settings.

To increase the memory limit to 128M you could also try adding:

  • 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 128M in a .htaccess file in the LimeSurvey root

Appearance

  • $lwcdropdowns: (Obsolete since 2.0) This can be set to either "L" or "R". Setting it to "R" will result in 'List with Comment' questions being displayed as radio buttons, whereas "L" will result in 'List with Comment' questions being displayed in a 'dropdown' list box .
  • $dropdownthreshold: When you have selected "R" for $dropdowns, this allows you to set a maximum number of options that will display as radio buttons, before converting back to a dropdown list. If you have a question that has a large number of options, displaying them all as radio buttons can look unweildy, and be counter-intuitive to users. Setting this to a maximum of, say 25 (which is the default) means that large lists are easier for the survey participant to use.
  • $repeatheadings: With the array (flexible) type question, often you'll have a lot of answers, which - when displayed on screen - take up more than one page. The repeat-headers setting lets you decide how many answers should be displayed before repeating the header information for the question. A good setting for this is around 15. If you don't want the headings to repeat at all, set this to 0 (which is the default).
  • $minrepeatheadings: The minimum number of reaming answers that are required before repeating the headings in array (flexible) questions.
  • $addTitleToLinks: If this option is set to true, then LimeSurvey will add 'title' html element to all links used in menus. This will help screen reader to analyze the menus. Only set this to true if you're using a screen reader because it overlaps with tool tips.
  • $defaulttemplate: This setting specifys the default theme used for the 'public list' of surveys. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • $defaulthtmleditormode: Sets the default mode for integrated HTML editor. This setting is overridden in the Global settings dialog) (New in 1.87 ). Valid settings are: inline (default), popup and none:
    • inline: Inline replacement of fields by an HTML editor. Slow but convenient and user friendly
    • popup: Adds an icon that runs a popup with and html editor. Faster, but html code is displayed on the form
    • none: No html editor

Language & Time

  • $defaultlang: This should be set to the default language to be used in your administration scripts, and also the default setting for language in the public surveys. You can change this setting for public surveys on a survey-by-survey basis from the admin scripts. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • $timeadjust: If your web server is in a different time zone to the location where your surveys will be based, put the difference between your server and your home time zone here. For example, I live in Australia but use a US web server. The web server is 14 hours behind my local time zone. So my setting here is "14". In other words, it adds 14 hours to the web servers time. This setting is particularly important when surveys timestamp the responses. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • $modrewrite: (Obsolete since 2.0) If set to 1, it activates the fancy URL feature (Example: http://survey.example.com/123456/lang-fr/tk-sdlfkjozeiru instead of http://survey.example.com/index.php?sid=123456⟨=fr&token;=sdlfkjozeiru). Before you activate this, you must rename "htaccess.txt" file to ".htaccess". You need to run an Apache web server with correctly installed mod_rewrite module.

Survey Behavior

  • $allowmandbackwards: A setting of 1 for this variable will allow survey participants to move to a previous question even if they haven't answered a mandatory question. If it is set on 0, then participants will have to answer that question even to move to a previous question.
  • $deletenonvalues: Use this feature with caution.  By default (a value of 1), irrelevant questions are NULLed in the database.  This ensures that the data in your database is internally consistent.  However, there are rare cases where you might want to hold onto irrelevant values, in which case you can set the value to 0.  Say you ask the person his gender, and he accidentally says 'female' and then answers some female-specific questions (questions that are conditioned on being female, so are only relevant for women).  Then, he realizes his mistake, backs up, sets the gender to 'male', and continues with the survey.  Now, the female-specific questions are irrelevant.  If $deletenonvalues==1, those irrelevant values will be cleared (NULLed) in the database.  If $deletenonvalues==0, his erroneous answers will not be deleted, so they will still be present in the database when you analyze it.
  • $shownoanswer: When a question of a radio button/select type that contains editable answers (ie: List, Array questions) is not mandatory and $shownoanswer is set to 1, an additional entry is shown for "N/A" - so that participants may choose to not answer the question. Some people prefer this not to be available. Set this to 0 to turn this off. This setting is overridden in the Global settings dialog) (New in 1.87 ).
  • $printanswershonorsconditions: This setting determines if the printanswers feature will display entries from questions that were hidden by conditions-branching (Default: 1 = hide answers from questions hidden by conditions).
  • $hide_groupdescr_allinone: (New in 1.85RC3 ) This setting is relevant for all-in-one surveys using conditions . When this is set to true the group name and description is hidden if all questions in the group are hidden. (Default: true (hide group name and description when all conditions in the group are hidden by conditions))
  • $showpopups:  Show popup messages if mandatory or conditional questions have not been answered correctly. 1=Show popup message (default), 0=Show message on page instead, -1=Do not show the message at all (in this case, users will still see the question-specific tips indicating which questions must be answered).

Desarrollo

  • $debug: Con esta opción puedes ajustar el reporte de errores de PHP a E_ALL. Esto significa que cada pequeño aviso, alerta o error del script se mostrará. Esta opción sólo debe ser 1 si estás intentando depurar la aplicación por alguna razón, si eres un desarrollador, debe ser 2. No lo cambies a 1 ni a 2 en la producción, ya que tal vez pueda causar la revelación de rutas. (Por defecto es 0)

Opciones de correo electrónico

Note: All these settings in this section are overridden in the Global settings dialog (New in 1.87 ).

  • $emailmethod:  This determines how E-mail messages are being sent. The following options are available:
    • mail: use internal PHP mailer
    • sendmail: use sendmail mailer
    • smtp:use SMTP relaying. Use this setting when you are running LimeSurvey on a host that is not your mail server.
  • $emailsmtphost: If you use 'smtp' as $emailmethod then you have to put your SMTP-server here. If you are using Google mail you might have to add the port number like $emailsmtphost = 'smtp.gmail.com:465';
  • $emailsmtpuser: If your SMTP-server needs authentication then set this to your user name, otherwise it must be blank.
  • $emailsmtppassword: If your SMTP-server needs authentication then set this to your password, otherwise it must be blank.
  • $emailsmtpssl: Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection
  • $maxemails: When sending invitations or reminders to survey participants, this setting is used to determine how many emails can be sent in one bunch. Different web servers have different email capacities, and if your script takes too long to send a bunch of emails, the script could time out and cause errors. Most web servers can send 100 emails at a time within the default 30 second time limit for a PHP script. If you get script timeout errors when sending large numbers of emails, reduce the number in this setting.  Clicking the 'send email invitation' button on the token control toolbar, (not the button on the right of each token), sends the maxemails number of invitations, then displays a list of the addresses sent to and a warning that "There are more emails pending than could be sent in one batch. Continue sending emails by clicking below. There are ### emails still to be sent." and provides a "continue button" to proceed with the next batch. I.e., the user determines when to send the next batch after each batch gets emailed.  It is not necessary to wait with this screen active.  The admin could log off and come back at a later time to send the next batch of invites.

Statistics and Response Browsing

  • usejpgraph: (Obsolete since 1.8) The JPGraph-library lets you display the results of your survey in the statistics part of LimeSurvey  in bar- and pie charts. If you have a correctly configured jpgraph class set up on your server, you can turn this feature on or off (1=on, 0=off). Please have a look, every version of PHP needs another version of JPGraph! This feature is currently in development, so expect a few weird outcomes.
  • jpgraphdir: (Obsolete since 1.8) The physical disk location of the jpgraph class scripts. This setting is only required if $usejpgraph is equal to 1.
  • jpgraphfont: (Obsolete since 1.8) The font to use with graphs. A failsafe setting would be "FF_FONT1"
  • embedded: (Obsolete since 2.0) If you want to integrate LimeSurvey into another page then you can turn off sending HTML headers by using this setting and point instead to the header method of a custom function. This is a dirty hack but should work for a quick integration.
  • filterout_incomplete_answers: Control the default behaviour of  filtering incomplete answers when browsing or analyzing responses. For a discussion on incomplete Responses see Browsing survey results. Since these records can corrupt the statistics, an option is given to switch this filter on or off in several GUI forms. This parameter config.php is just the default state for the incomplete answer filter. The following options are available:
    • show: Show both complete and incomplete answers
    • filter: Show only complete answers
    • incomplete: Show only incomplete answers
  • strip_query_from_referer_url: This setting determine if the referrer URL saves parameter or not. Default value is "false" (in this case referrer URL saves all parameter). Alternatively this value can be set to "true" and the parameter part of the referrer URL will be removed.
  • showaggregateddata: (New in 1.8 ) When activated there are additional values like arithmetic mean and standard deviation at statistics. Furthermore data is aggregated to get a faster overview e.g. results of scale 1+2 and 4+5 are added to have a general ranking like "good" (1/2), "average" (3) and "bad" (4/5). This only affects question types "A" (5 point array) and "5" (5 point choice).
  • PDF Export Settings: (New in 1.85 ) This feature activates PDF export for printable survey and Print Answers. The PDF export is totally experimental. The output is mostly ugly. At this point no support can be given - if you want to help to fix it please get in touch with us.
    • usepdfexport: Set 0 to disable; 1 to enable
    • pdfdefaultfont: Default font for the pdf Export
    • pdffontsize: Fontsize for normal text; Surveytitle is +4; grouptitle is +2
    • notsupportlanguages = array('zh-Hant-TW','zh-Hant-HK','zh-Hans','ja','th');
    • pdforientation: Set L for Landscape or P for portrait format
  • $showsgqacode: (New in 1.91 ) This setting is used at the printable survey feature {IMG(attId="78",height="16",width="16")} and defaults to false. If you set showsgqacode = true; the IDs for each question - and answer if applicable - will be shown; these IDs match the column heading at the Lime_survey_12345 table which holds the answer data for a certain survey. These Ids can be used for a code book for manual database queries.
  • {IMG(attId="79",height="200",width="400")}

LDAP settings

Ya que es un tema bastante largo, movimos LDAP settings a otra página.

Autenticación

In LimeSurvey 2.05 authentication will be handled by plugins. Because of this the information below might be outdated. See Plugins for most up to date information.

Delegar Autenticación al servidor web

A los administradores de sistema les puede interesar que sus administradores de encuesta sean autenticados usando un sistema de autenticación central (Active Directory, openLdap, Radius, ...) en vez de usar la base de datos interna de LimeSurvey. Una manera fácil de hacer esto es configurar tu servidor web para que use este sistema de autenticación externa, y después decirle a LimeSurvey que confíe en la identidad suplida por el servidor web. Para activar esta función necesitas:

  • ajustar $useWebserverAuth a true en config.php
  • habilitar la autenticación del lado del servidor web

Por favor note que:

  • LimeSurvey se saltará su propio proceso de autenticación (usando el nombre de usuario reportado por el servidor web sin pedir contraseña)
  • Esto sólo puede reemplazar el sistema gráfico de autenticación de LimeSurvey, no el sistema de invitaciones de encuestas (interfaz del participante)

Delegación de la Autenticación sin importación automática de usuarios

Por favor note que por defecto la delegación de autenticación no anula el sistema de autorización de LimeSurvey: esto significa que incluso si no quieres administrar contraseñas usando LimeSurvey, tienes que definir los usuarios en la base de datos de LimeSurvey y asignar los permisos pertinentes para dejar que usen los recursos de la encuesta.

Un usuario tiene acceso a LimeSurvey si y sólo si:

  • ya fue autenticado por el servidor web
  • su nombre de usuario está definido la base de datos de LimeSurvey (se le han otorgado los privilegios definidos en la base de datos de LimeSurvey)

Delegación de Autenticación con importación automática de usuario

Cuando se administra una base de datos muy grande, es más fácil auto-importar los usuarios a la base de datos de LimeSurvey.

  • $WebserverAuth_autocreateUser: si es true, LimeSurvey intentará auto-importar a los usuarios autenticados por el servidor web pero que no estén en su base de datos.
  • $WebserverAuth_autouserprofile: un arreglo describiendo el perfil por defecto que se le asignará al usuario (incluyendo nombre y apellidos falsos, correo electrónico y privilegios)

Si quieres personalizar el perfil del usuario para que se acople al usuario, deberás desarrollar una función simple llamada hook_get_autouserprofile: con esta función puedes conseguir de la base de datos central (por ejemplo, un directorio LDAP), los nombres, apellidos y correo electrónico del usuario. Incluso puedes personalizar sus privilegios del sistema basado en su grupo y la base de datos externa.

La función hook_get_autouserprofile toma el nombre de usuario como su único argumento, y puede regresar:

  • False o un arreglo vacío: en este caso, al usuario se le deniega el acceso a LimeSurvey.
  • un arreglo que contiene todas las entradas comunes del perfil del usuario, definidas en $WebserverAuth_autouserprofile
function hook_get_auth_webserver_profile($user_name)
{
     // Retrieve user's data from your database backend (for instance LDAP) here
     ... get $user_name_from_backend
     ... get $user_email_from_backend
     ... get $user_lang_from_backend
     ... from groups defined in your backend set $user_admin_status_frombackend_0_or_1
     return Array(
                     'full_name' => "$user_name_from_backend",
                     'email' => "$user_email_from_backend",
                     'lang' => '$user_lang_from_backend',
                     'htmleditormode' => 'inline',
                     'templatelist' => 'default,basic,MyOrgTemplate',
                     'create_survey' => 1,
                     'create_user' => 0,
                     'delete_user' => 0,
                     'superadmin' => $user_admin_status_frombackend_0_or_1,
                     'configurator' =>0,
                     'manage_template' => 0,
                     'manage_label' => 0);
}

     // If user should be denied access, return an empty array

     // return Array();

Mapeo de nombres de usuario

Algunos usuarios tienen un nombre de usuario externo diferente al de LimeSurvey; te puede ser útil usar el mapeo de nombres de usuario. Esto se hace con el parámetro $userArrayMap. Por ejemplo, imagina que no tienes un nombre de usuario 'admin' en tu base de datos de autenticación externa. Para poder accesar a LimeSurvey, deberás mapear tu nombre de usuario externo al nombre de usuario en LimeSurvey. Se hace así:

$config['auth_webserver_user_map'] = Array ('myname' => 'admin');

Después de una autenticación exitosa con el nombre de usuario 'myname' y contraseña con el servidor web, serás autorizado a LimeSurvey como el usuario 'admin'.

Esto tiene obviamente implicaciones de seguridad bastante serias, así que úsalo con cuidado, y por favor protege tu archivo config.php contra escritura por parte del servidor web.

Uso de contraseñas de sólo un uso

Uso de contraseñas de sólo un uso

 Hint: This features is available starting in version 1.81


Desde la versión 1.81, el usuario puede llamar la autenticación de limesurvey en /limesurvey/admin y pasar un nombre de usuario y contraseña de un sólo uso que se escribió con anterioridad en la tabla de usuarios (en la columna one_time_pw) por una aplicación externa.

This setting has to be turned on (use_one_time_passwords => true) to enable the usage of one time passwords (default = false). More information can be found at "Manage Users".

Configuraciones avanzadas de rutas

If possible do no touch these settings. Additionally these settings can only be adjusted on config-defaults.php.

  • $homeurl: This should be set to the URL location of your administration scripts. These are the scripts in the /limesurvey/admin folder. This should be set to the WEB URL location - for example "http://www.example.com/limesurvey/html/admin". Don't add a trailing slash to this entry. The default setting in config.php attempts to detect the name of your server automatically using a php variable setting - {$_SERVER['SERVER_NAME']}. In most cases you can leave this and just modify the remainder of this string to match the directory name you have put the LimeSurvey scripts in.
  • $publicurl: This should be set to the URL location of your 'public scripts'. The public scripts are those located in the "limesurvey" folder (or whatever name you gave to the directory that all the other scripts and directories are kept in).
  • $tempurl: This should be set to the URL location of your "/limesurvey/tmp" directory - or a directory which you would like LimeSurvey to use to store temporary files, including uploads. This directory must be set to read & write for your webserver (e.g. chmod 755)
  • $imagefiles: By default you should leave this pointing to the URL location of /limesurvey/admin/images - where the images are installed initially. You may, however, prefer to move these images to another location and if so point this to the URL directory where they are stored.
  • $homedir: This should be set to the physical disk location of your administration scripts - for example "/home/usr/htdocs/limesurvey/admin". Don't add a trailing slash to this entry. The default setting in config.php attempts to detect the default root path of all your documents using the php variable setting - {$_SERVER['DOCUMENT_ROOT']}. In most cases you can leave this and just modify the remainder of this string to match the directory name you have put the LimeSurvey scripts in.
  • $publicdir: This should be set to the physical disk location of your 'public scripts'.
  • $tempdir: This should be set to the physical disk location of your /limesurvey/tmp directory so that the script can read and write files.
  • $fckeditordir: url of the fckeditor script
  • $fckeditexpandtoolbar: defines if the FCKeditor toolbar should be opened by default
  • $pdfexportdir: Directory with the tcpdf.php extensiontcpdf.php
  • $pdffonts: Directory for the TCPDF fonts