Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: html)

  • DenisChenu
  • DenisChenu's Avatar
07 Feb 2024 14:55
Replied by DenisChenu on topic Help! We have a problem with MySQL database
When i talk about report issue
community.limesurvey.org/bug-tracker/

About the index dev.mysql.com/doc/refman/8.0/en/create-index.html
But i'm not sure of the index to create.
  • ngolub
  • ngolub's Avatar
06 Feb 2024 17:02
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition   Version 6.4.0+231218 
Own server or LimeSurvey hosting: own server
Survey theme/template: bootstrap vanilla
==================
Hallo,

Ich habe ein Dual Array Skala in meiner Umfrage und möchte wissen, ob es möglich ist die rechts Seite, bzw. die zweite Skala in einen Slider zu umzuwandeln.
 

Hier ist der Code für mein Array
Code:
<p><strong>10. Wie wichtig sind die nachfolgenden General Management-Kompetenzen bezogen auf Ihre aktuelle Führungsposition?</strong></p>
<style type="text/css">.answertext .tooltip {
    color: black; /* Or any other color that stands out against your background */
    visibility: visible;
    display: inline; /* Or 'block', depending on your layout */
  }
  .tooltip[data-toggle="tooltip"] {
    cursor: pointer;
  }
  .tooltip:hover::after {
    content: attr(data-original-title);
    position: absolute;
    left: 0;
    top: 100%;
    white-space: nowrap;
    z-index: 1000;
    background-color: #f8f8f8;
    padding: 5px;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    pointer-events: none;
  }
 
/* Coloring the first set of headers with light orange */
table.subquestion-list tr th.dsheader:nth-of-type(2),
table.subquestion-list tr th:nth-child(3),
table.subquestion-list tr th:nth-child(4),
table.subquestion-list tr th:nth-child(5),
table.subquestion-list tr th:nth-child(6),
table.subquestion-list tr th:nth-child(7)  {
    background-color: rgba(255, 204, 153, 0.3); /* Light orange with transparency */
}
 
/* Coloring the second set of headers with light blue */
table.subquestion-list tr th.dsheader:nth-of-type(3),
table.subquestion-list tr th:nth-child(9),
table.subquestion-list tr th:nth-child(10),
table.subquestion-list tr th:nth-child(11),
table.subquestion-list tr th:nth-child(12),
table.subquestion-list tr th:nth-child(13),
table.subquestion-list tr th:nth-child(14) { /* Added this line to include the blue header */
    background-color: rgba(153, 204, 255, 0.3); /* Light blue with transparency */
}
 
/* Coloring the columns 3 to 7 with light orange */
table.subquestion-list tr td:nth-child(3),
table.subquestion-list tr td:nth-child(4),
table.subquestion-list tr td:nth-child(5),
table.subquestion-list tr td:nth-child(6),
table.subquestion-list tr td:nth-child(7) {
    background-color: rgba(255, 204, 153, 0.3);
}
 
/* Coloring the columns 9 to 14 with light blue */
table.subquestion-list tr td:nth-child(9),
table.subquestion-list tr td:nth-child(10),
table.subquestion-list tr td:nth-child(11),
table.subquestion-list tr td:nth-child(12),
table.subquestion-list tr td:nth-child(13),
table.subquestion-list tr td:nth-child(14) {
    background-color: rgba(153, 204, 255, 0.3);
}
 
/* Coloring the specific header with an ID with light orange */
#answer866522X20X368_0-4 {
    background-color: rgba(255, 204, 153, 0.3); /* Light orange with transparency */
}
 
/* Ensure that the header_separator class has no background color */
table.subquestion-list tr .header_separator {
    background-color: transparent !important; /* This will make it transparent and override other styles */
}
  
  div.ls-question-mandatory-array {
    display: none;
  }
</style>
<script type="text/javascript">
  $(document).ready(function() {
    // Identify this question
    var thisQuestion = $('#question1784');
 
    // Define the sub-heading text strings with tooltip text using the title attribute
    var subHeading1 = '<strong title="Your detailed information for Leadership">Leadership</strong>';
    var subHeading2 = '<strong title="Your detailed information for Academic Environment">Handeln im akademischen Umfeld</strong>';
    var subHeading3 = '<strong title="Your detailed information for Political Environment">Handeln im politischen Umfeld</strong>';
    var subHeading4 = '<strong title="Your detailed information for Strategic Design">Strategisches Gestaltungsvermögen</strong>';
    var subHeading5 = '<strong title="Your detailed information for Business Thinking">Betriebswirtschaftliches Denken und Handeln</strong>';
    var subHeading6 = '<strong title="Your detailed information for Organizational Change">Den organisatorischen Wandel gestalten</strong>';
 
    // Find out the number of columns in the question
    var columnsLength = $('tr.answers-list:eq(0) > *', thisQuestion).length;
 
    // Insert the subheadings before the specific subquestions
    $('tr.answers-list:eq(0)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading1+'</th></tr>');
    $('tr.answers-list:eq(5)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading2+'</th></tr>');
    $('tr.answers-list:eq(10)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading3+'</th></tr>');
    $('tr.answers-list:eq(15)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading4+'</th></tr>');
    $('tr.answers-list:eq(19)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading5+'</th></tr>');
    $('tr.answers-list:eq(24)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading6+'</th></tr>');
 
    // Fix the row classes for styling
    var rowClass = 1;
    $('table.subquestion-list tbody tr', thisQuestion).each(function(i) {
      if($(this).hasClass('sub-header-row')) {
        rowClass = 1;
      } else {
        rowClass++;
        $(this).removeClass('array1 array2');
        if(rowClass % 2 == 0) {
          $(this).addClass('array2');
        } else {
          $(this).addClass('array1');
        }
      }
    });
 
    // Initialize Bootstrap tooltips
    $('[data-bs-toggle="tooltip"]').tooltip();
  });
</script>

Ich habe gesehen, dass es einen workaround für Slider in Dual Arrays gibt, aber bei mir hat es nicht funktioniert.

Ich habe auch den folgenden Code probiert, aber ohne Erfolg
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
    // Target the second scale of question 1784 with the specified header.
    // This assumes 'subquestion' and 'answer' classes are used; these might need adjustment.
    var scaleHeader = "Veränderung der Bedeutung inskünftig (in den kommenden 5-10 Jahren)";
    var questionId = '#question1784';
    var headerExists = $(questionId + ' .answer-item.text-item .answertext').filter(function() {
        return $(this).text().trim() === scaleHeader;
    }).length > 0;
 
    if(headerExists) {
        // Assuming LimeSurvey generates a specific structure for dual scale array questions
        // Find the right table or div that contains the second scale based on the header
        var scale2Container = $(questionId + ' .answer-item.text-item').filter(function() {
            return $(this).text().trim() === scaleHeader;
        }).closest('.answers-list');
 
        // Hide the original scale 2 options
        scale2Container.find('input').closest('li').hide(); // Adjust this selector based on your actual structure
 
        // Create slider and insert it into the document
        var sliderHtml = '<div class="custom-slider-container"><input type="range" min="1" max="5" value="3" class="slider" id="customSlider1784"></div>';
        scale2Container.before(sliderHtml); // You may want to adjust the placement based on your layout
 
        // Update hidden inputs based on slider change
        $('#customSlider1784').on('input change', function() {
            var value = $(this).val();
            // Find and check the corresponding input for the second scale
            scale2Container.find('input[value="' + value + '"]').prop('checked', true);
        });
    }
});
</script>

Könnt ihr mir helfen?
  • Joffm
  • Joffm's Avatar
05 Feb 2024 12:51
Has instalado y activado el plugin?
Has importado las encuestas de demonstracion incluidas en el plugin?
Tienes que creer todo en el texto de la pregunta.
ExpressionScript es suficiente, como
Pregunta: {Q1.question}
Contesta: {Q1} o {Q1.shown}
Todos que puedes hacer con ExpressionScript.
Y claro puedes mejorar con HTML, css, todas las opciones de bootstrap.

Joffm
 
  • DenisChenu
  • DenisChenu's Avatar
01 Feb 2024 15:08
Replied by DenisChenu on topic Conditionner une question
Hin ?
En mode éditeur HTML : en mode réponse rapide : pas de boutons.

Sinon: drop.chapril.org/
  • Joffm
  • Joffm's Avatar
01 Feb 2024 13:41 - 01 Feb 2024 13:46
Replied by Joffm on topic PDFreport verwenden
Hallo,
"eine sehr detallierte Step by Step..." kann es nicht geben.

Was Du machst, ist, im Fragetext der Upload-Frage den Report zu designen.
Dazu stehen Dir alle Möglichkeiten von HTML, css und bootstrap zur Verfügung.

Hier einmal ein Ausschnitt eines sehr alten Beispiels von mir:
Code:
<h2>Hier sind die Ergebnisse für {F6a} am {date("F d, Y")}</h2>
{F6a} ist {F6b} Jahre alt und {if(F6c==1,"sein",if(F6c==2,"ihr", "hat sein/ihr"))} Geschlecht {if(F6c==1,"ist männlich",if(F6c==2,"ist weiblich","leider nicht angegeben."))}<br /><br />
{F6a} kennt folgende Ubuntu-Tiere:<br />{list(that.F1.shown)}<br />
und mag {F3_1.shown} am liebsten {F4.shown}.
 
<section id="Start">
<h4>Nun die Ergebnisse im einzelnen</h4>
 
<table class="table table-condensed">
  <thead>
    <tr>
      <th class="bg-primary" colspan="2">F1. Welche der folgenden interessanten Ubuntu-Tiere kennen Sie?</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="text-left">{if(F1_SQ001=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ001.question}<br />{if(F1_SQ002=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ002.question}<br />{if(F1_SQ003=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ003.question}</checkbox></checkbox-checked></checkbox></checkbox-checked></checkbox></checkbox-checked></td>
      <td class="text-left">{if(F1_SQ004=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ004.question}<br />{if(F1_SQ005=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ005.question}<br />{if(F1_SQ006=="Y","<checkbox-checked>","<checkbox>")} {F1_SQ006.question}</checkbox></checkbox-checked></checkbox></checkbox-checked></checkbox></checkbox-checked></td>
    </tr>
  </tbody>
</table>
 
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th class="bg-primary" colspan="3">F1. Welche der folgenden interessanten Ubuntu-Tiere kennen Sie?</th>
    </tr>
  </thead>
  <thead>
    <tr>
      <th class="bg-info text-left" style="width:50%"> </th>
      <th class="bg-info text-center" style="width:25%" valign="middle">Ja</th>
      <th class="bg-info text-center" style="width:25%" valign="middle">Nein</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="text-left">{F1_SQ001.question}</td>
      <td class="text-center">{if(F1_SQ001=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ001!="Y","X","")}</td>
    </tr>
    <tr>
      <td class="text-left">{F1_SQ002.question}</td>
      <td class="text-center">{if(F1_SQ002=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ002!="Y","X","")}</td>
    </tr>
    <tr>
      <td class="text-left">{F1_SQ003.question}</td>
      <td class="text-center">{if(F1_SQ003=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ003!="Y","X","")}</td>
    </tr>
    <tr>
      <td class="text-left">{F1_SQ004.question}</td>
      <td class="text-center">{if(F1_SQ004=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ004!="Y","X","")}</td>
    </tr>
    <tr>
      <td class="text-left">{F1_SQ005.question}</td>
      <td class="text-center">{if(F1_SQ005=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ005!="Y","X","")}</td>
    </tr>
    <tr>
      <td class="text-left">{F1_SQ006.question}</td>
      <td class="text-center">{if(F1_SQ006=="Y","X","")}</td>
      <td class="text-center">{if(F1_SQ006!="Y","X","")}</td>
    </tr>
  </tbody>
</table>
</section>
<pagebreak>
<section id="2.Teil" name="2.Teil">



Wie Du siehst, werden die Daten mittels ExpressionScript eingefügt. Und auch hier kannst Du alle Funktionen von LimeSurvey nutzen.
Der endgültige Report wird dann in dieser Frage angezeigt (später wird sie natürlich versteckt)

Und - klar - er wird mit dem gewählten Theme hier gezeigt.
 

Und das ist der fertige Report

 

This browser does not support PDFs. Please download the PDF to view it: Download PDF



Das ist natürlich schon ein bisschen aufwendig (hier wird übrigens noch der Zusatz "limeMpdf" benutzt.

Gan einfach kannst Du anfangen mit (hier eine Einfachnennung)
Frage: {Q1.question}
Antwortcode: {Q1}
Antworttext: {Q1.shown}

Und mit ein paar wenigen Basics in HTML und css hübschst Du es etwas auf.

Im Verzeichnis des Plugins gibt es zwei Demo-Dateien. Schau sie einmal an!

Joffm
 
  • cavo789
  • cavo789's Avatar
31 Jan 2024 10:27
Your LimeSurvey version: 6.2.4
Own server or LimeSurvey hosting: own server
==================
Good morning

I'm trying to migrate a very old LimeSurvey instance (v3.x) to 6.2.4. I've made a backup of the previous db (both using web interface or mysqldump on the server); the file is 340MB then I copy the backup to my LS 6.2.4 new server and each time I get the following error 

```bash
sudo php -d memory_limit=-1 application/commands/console.php updatedb
Update mysql:host=xxxxx;port=xxxxx;dbname=xxxxxxxxx; with prefix :xxxxxx from 359 to 612
CException: Please fix this error in your database and try again in /var/www/html/limesurvey_r_o/application/commands/UpdateDbCommand.php:50
Stack trace:
#0 /var/www/html/limesurvey_r_o/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): UpdateDBCommand->run()
#1 /var/www/html/limesurvey_r_o/vendor/yiisoft/yii/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#2 /var/www/html/limesurvey_r_o/vendor/yiisoft/yii/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#3 /var/www/html/limesurvey_r_o/application/commands/console.php(77): CApplication->run()
```

The error returned by LimeSurvey didn't help to understand what I need to do.

So, the DB migration is from 359 to 612.

If I rerun the exact same statement, I see: "from 418 to 612" and it crashes again.

And now if I rerun again, the version number still stay on 418.

Did you have any idea how I can solve this?

Thanks!
  • modernity4r
  • modernity4r's Avatar
31 Jan 2024 07:41 - 31 Jan 2024 07:44
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.4+
Own server or LimeSurvey hosting: Both
Survey theme/template: Fruity
==================I'm encountering an issue while trying to render LaTeX expressions in MathJax, specifically when alphabets are enclosed within braces. For instance, expressions like
Code:
\(\overline{A}\)
or
Code:
\(\sqrt[3]{B}\)
are not displaying correctly. Expressions with numbers that do not use braces are rendered correctly. I've made sure that the MathJax script is properly loaded and my code seems syntactically correct. Here’s an example of the LaTeX expression I’m trying to render:

<script>
MathJax = {
  tex: {
    inlineMath: '$', '$'], ['\\(', '\\)'
  }
};
</script><script id="MathJax-script" async
  src=" cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js ">

<p>\(\overline{AP}\)</p>

 This expression is supposed to display the letter 'AP' with an overline, but it's not showing up as expected in the web page. Similar issues occur with other expressions where alphabets are placed inside braces.Any help or pointers would be greatly appreciated. Thank you in advance!
  • DenisChenu
  • DenisChenu's Avatar
29 Jan 2024 10:34 - 29 Jan 2024 10:35
Replied by DenisChenu on topic Limesurvey does not continue after Creat survey

there is a whole bunch of responses:

Call to undefined function mb_ereg_replace()

/var/www/html/limesurvey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145)


 
This is the broken part
www.php.net/manual/en/function.mb-ereg-replace.php

With deb based :
Code:
apt install php-mbstring
How do you install limesurvey ? We check if mbstring is present when installing !

PS : to check if you have all needed php option installed : mive you config.php to config-back.php, go to home page until checking if all is here.
After : rename again your config.php

 
  • Lemmy
  • Lemmy's Avatar
29 Jan 2024 09:52
there is a whole bunch of responses:

Call to undefined function mb_ereg_replace()

/var/www/html/limesurvey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145)
Code:
 
133      */
134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
145             return parent::__get($name);
146     }
147 
148     /**
149      * PHP setter magic method.
150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      * @throws CException
154      */
155     public function __set($name,$value)
156     {
157         if($this->setAttribute($name,$value)===false)

Stack Trace
#0

/var/www/html/limesurvey/application/models/Template.php(168): sanitize_filename()
Code:
163      * @return string existing $sTemplateName
164      * @throws Exception
165      */
166     public static function templateNameFilter($sTemplateName)
167     {
168         $sTemplateName = sanitize_filename($sTemplateName, false, false, false, true);
169 
170         // If the names has already been filtered, we skip the process
171         if (!empty(self::$aNamesFiltered[$sTemplateName])) {
172             return self::$aNamesFiltered[$sTemplateName];
173         }


and the rest :
Code:
#3   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CComponent.php(111): TemplateConfiguration->getPreview()
#4   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145): CComponent->__get()
#5   
+
 /var/www/html/limesurvey/application/models/TemplateConfiguration.php(1477): CActiveRecord->__get()
#6   
+
 /var/www/html/limesurvey/application/models/Template.php(507): TemplateConfiguration->__get()
#7   
+
 /var/www/html/limesurvey/application/extensions/admin/survey/ListSurveysWidget/views/massive_actions/_select_survey_theme.php(13): Template::getTemplateListWithPreviews()
#8   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/var/www/html/limesurvey/application/extensions/admin/survey/Lis...")
#9   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal()
#10   
+
 /var/www/html/limesurvey/application/extensions/admin/survey/ListSurveysWidget/views/massive_actions/_selector.php(61): CBaseController->renderFile()
#11   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/var/www/html/limesurvey/application/extensions/admin/survey/Lis...")
#12   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal()
#13   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/widgets/CWidget.php(244): CBaseController->renderFile()
#14   
+
 /var/www/html/limesurvey/application/extensions/admin/survey/ListSurveysWidget/ListSurveysWidget.php(60): CWidget->render()
#15   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(182): ListSurveysWidget->run()
#16   
+
 /var/www/html/limesurvey/application/views/admin/super/welcome.php(198): CBaseController->widget()
#17   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/var/www/html/limesurvey/application/views/admin/super/welcome.p...")
#18   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal()
#19   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile()
#20   
+
 /var/www/html/limesurvey/application/controllers/AdminController.php(261): CController->renderPartial()
#21   
+
 /var/www/html/limesurvey/application/core/SurveyCommonAction.php(273): AdminController->renderPartial()
#22   
+
 /var/www/html/limesurvey/application/core/SurveyCommonAction.php(395): SurveyCommonAction->renderCentralContents()
#23   
+
 /var/www/html/limesurvey/application/controllers/admin/index.php(94): SurveyCommonAction->renderWrappedTemplate()
#24   
 unknown(0): Index->run()
#25   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs()
#26   
+
 /var/www/html/limesurvey/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal()
#27   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams()
#28   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction()
#29   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters()
#30   
+
 /var/www/html/limesurvey/application/controllers/AdminController.php(202): CController->run()
#31   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run()
#32   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController()
#33   
+
 /var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
#34   
+
 /var/www/html/limesurvey/index.php(161): CApplication->run() 

I hope the format is ok now
  • Lemmy
  • Lemmy's Avatar
29 Jan 2024 08:52
OK, situation at login screen (before pressing login button) :

Uncaught TypeError: c is null
    setLang http://localhost/assets/packages/ckeditor/ckeditor.js:268
    <anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
    <anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1802
    <anonymous> http://localhost/assets/packages/ckeditor/ckeditor.js:1913

after pressing login:

error:  GET[url]http://localhost/index.php/admin[/url]    [HTTP/1.1 500 Internal Server Error 79ms] GET schemehttphostlocalhostfilename/index.php/admin Address127.0.0.1:80Status500Internal Server ErrorVersionHTTP/1.1Transferred47.64 kB (47.18 kB size)Referrer Policystrict-origin-when-cross-originRequest PriorityHighestDNS ResolutionSystem
  •  
  Cache-Controlno-store, no-cache, must-revalidateConnectioncloseContent-Typetext/html; charset=UTF-8DateMon, 29 Jan 2024 07:46:07 GMTExpiresThu, 19 Nov 1981 08:52:00 GMTPragmano-cacheServerApache/2.4.52 (Ubuntu)Set-CookieYII_CSRF_TOKEN=ZnhGVEpBTGVUc1ltdn43bH5udWFnR2pWWGxTWU1Pc3HPHB6sCM7EGZcBWHRvO0LsAg-s5_es4NXcvRzmoUkpyw%3D%3D; path=/; HttpOnly; SameSite=LaxTransfer-Encodingchunked  Accepttext/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8Accept-Encodinggzip, deflate, brAccept-Languageen-US,en;q=0.5Connectionkeep-aliveCookieLS-OUFMHCJNMSUYMAIB=kkjhdata7ssbgpsvagap2md7lmHostlocalhostReferer[url]http://localhost/index.php/admin/authentication/sa/login[/url]Sec-Fetch-DestdocumentSec-Fetch-ModenavigateSec-Fetch-Sitesame-originSec-Fetch-User?1Upgrade-Insecure-Requests1User-AgentMozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0

Error 2 : GET http://localhost/favicon.ico        [HTTP/1.1 404 Not Found 0ms]GEThttp://localhost/favicon.icoStatus404Not FoundVersionHTTP/1.1Transferred271 B (271 B size)Referrer Policystrict-origin-when-cross-originDNS ResolutionSystem
  •  
  ConnectionKeep-AliveContent-Length271Content-Typetext/html; charset=iso-8859-1DateThu, 25 Jan 2024 07:19:36 GMTKeep-Alivetimeout=5, max=98ServerApache/2.4.52 (Ubuntu)  Acceptimage/avif,image/webp,*/*Accept-Encodinggzip, deflate, brAccept-Languageen-US,en;q=0.5Connectionkeep-aliveCookieLS-OUFMHCJNMSUYMAIB=kkjhdata7ssbgpsvagap2md7lm; YII_CSRF_TOKEN=ZnhGVEpBTGVUc1ltdn43bH5udWFnR2pWWGxTWU1Pc3HPHB6sCM7EGZcBWHRvO0LsAg-s5_es4NXcvRzmoUkpyw%3D%3DHostlocalhostReferer[url]http://localhost/index.php/admin[/url]Sec-Fetch-DestimageSec-Fetch-Modeno-corsSec-Fetch-Sitesame-originUser-AgentMozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
 
  • Lemmy
  • Lemmy's Avatar
29 Jan 2024 07:31
OK, I switched to console and I have one error:

Unknown property ‘-moz-border-radius’. Declaration dropped. admin:72:21
Elements matching selector: .message
NodeList [ p.message
]

0: <p class="message">

length: 1

<prototype>: NodeListPrototype { item: item(), keys: keys(), values: values(), … }
​​
constructor: function ()
​​
entries: function entries()
​​
forEach: function forEach()
​​
item: function item()
​​
keys: function keys()
​​
length:
​​
values: function values()
​​
Symbol(Symbol.iterator): function values()
​​​
length: 0
​​​
name: "values"
​​​
<prototype>: function ()
​​
Symbol(Symbol.toStringTag): "NodeList"
​​
<get length()>: function length()
​​
<prototype>: Object { … }



and 1 warning:


This page is in Almost Standards Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.

But as soon As I log in I get :

Call to undefined function mb_ereg_replace() as described in my previous post
  • jelo
  • jelo's Avatar
27 Jan 2024 21:14
Replied by jelo on topic Die Survey-URL hat falschen Link
Sieht nach einen Bug aus, wo der Link korrekt als sichtbarer Text ist, aber der hinterlegte Link unvollständig ist.
Du scheinst LimeSurvey über QNAP-Store installiert zu haben. Als Workaround kannst Du den Link manuell als HTML-Code hinterlegen und den dynamischen TOKEN als Variable einbaust.

manual.limesurvey.org/Email_templates

Einen Bugreport anzulegen ist auch ratsam. Wobei QNAP als Umgebung hier kaum genutzt oder offizell von LimeSurvey unterstützt wird. h
  • Lemmy
  • Lemmy's Avatar
26 Jan 2024 08:10 - 26 Jan 2024 08:18
Hi Denis,

Sorry for questions that might seem basic, I have used limesurvey in the past but never had to configure it. I have enabled the debug mode, how do I get into the console?

When I go to list survey I now get an error screen with error : Call to undefined function mb_ereg_replace()

/var/www/html/limesurvey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145) */
134 public function __get($name)
135 {
136 if(isset($this->_attributes[$name]))
137 return $this->_attributes[$name];
138 elseif(isset($this->getMetaData()->columns[$name]))
139 return null;
140 elseif(isset($this->_related[$name]))
141 return $this->_related[$name];
142 elseif(isset($this->getMetaData()->relations[$name]))
143 return $this->getRelated($name);
144 else
145 return parent::__get($name);
146 }
147
148 /**
149 * PHP setter magic method.
150 * This method is overridden so that AR attributes can be accessed like properties.
151 * @param string $name property name
152 * @param mixed $value property value
153 * @throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)
  • Joffm
  • Joffm's Avatar
25 Jan 2024 21:48
Replied by Joffm on topic Implicit association test
Hi,
1. there is a question theme
[url] github.com/tpartner/LimeSurvey-Implicit-Association-Test-3x [/url]
You did not answer the question about hosting. Therefore I do not know if you are allowed to install it.
Also I do not know if it works in LS 6.x.
You may try.

2. There is a script (nearly the same), developped before it was programmed as question theme.
This works in 6.x

First the javascript code
Code:
<script>
// A plugin to insert an IAT interface
function implicitAssociation(el, showAnswers) {
    
    $(el).each(function() {
            
        var thisQuestion = $(this);
        var thisQuestionHelp = $('div.ls-questionhelp', thisQuestion);
        var thisQuestionAnswers = $('table.subquestion-list', thisQuestion).parent();
        var startTime = '';
        var endTime = '';    
        var agent = navigator.userAgent.toLowerCase();
        var mobile = false;
        if( /android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent) ) { // Mobile devices
            mobile = true;
        }
        
        // Some classes
        $(thisQuestion).addClass('iat-question');
        $('tr.subquestion-list', thisQuestion).addClass('unanswered');
        
        // Hide the question help element
        $(thisQuestionHelp).hide();
        $(thisQuestionHelp).closest('.question-help-container').hide();
        
        // Hide the answers
        if(showAnswers != true) {
            $('table.subquestion-list', thisQuestion).hide();
        }
        
        // Insert IAT display
        var iatTexts = $(thisQuestionHelp).html().split('||');
        var iatDisplayHTML = '<div class="iatWrapper">\
                                <div class="iatLeftLabel">'+iatTexts[0]+'</div>\
                                <div class="iatRightLabel">'+iatTexts[1]+'</div>\
                                <div class="iatWord"></div>\
                                <div class="iatInstructions">'+iatTexts[2]+'</div>\
                            </div>\
                            <div class="iatMobileButtonWrapper">\
                                <div class="iatButton iatLeftButton">E</div>\
                                <div class="iatButton iatRightButton">I</div>\
                                <div style="width:100%; clear:both;"></div>\
                            </div>';
        $(thisQuestionAnswers).prepend(iatDisplayHTML);
        
        // Show a word
        function iatShowWord() {
            $('div.iatWord', thisQuestion).html($('tr.subquestion-list.unanswered:first .answertext', thisQuestion).html());
            startTime = new Date();
            
            $(document).bind('keypress.iatKeypress', function(e) {
                if(e.which == 101 || e.which == 105) {
                    var thisRow = $('tr.subquestion-list.unanswered:eq(0)', thisQuestion);
                    $(thisRow).removeClass('unanswered');
                    endTime = new Date();
                    $('input[type="text"]:eq(1)', thisRow).val(endTime.valueOf() - startTime.valueOf());
                    if(e.which == 101) {
                        $('input[type="text"]:eq(0)', thisRow).val('E');
                    }
                    else {
                        $('input[type="text"]:eq(0)', thisRow).val('I');
                    }
                    $(document).unbind('keypress.iatKeypress');
                    if($('tr.subquestion-list.unanswered', thisQuestion).length > 0) {
                        iatShowWord();
                    }
                    else {
                        $('.iatLeftLabel, .iatWord, .iatRightLabel, .iatInstructions', thisQuestion).fadeOut('slow', function() {
                            $('div.iatWord', thisQuestion).text('done');
                            $('.iatWord', thisQuestion).addClass('done').fadeIn('slow');
                        });
                    }
                }
            });
        }
        function iatShowWordMobile() {
            $('div.iatWord', thisQuestion).html($('tr.subquestion-list.unanswered:first .answertext', thisQuestion).text());
            startTime = new Date();
            
            $('.iatButton', thisQuestion).bind('click.iatButtonClick', function(e) {
                var thisRow = $('tr.subquestion-list.unanswered:eq(0)', thisQuestion);
                $(thisRow).removeClass('unanswered');
                endTime = new Date();
                $('input[type="text"]:eq(1)', thisRow).val(endTime.valueOf() - startTime.valueOf());
                $('input[type="text"]:eq(0)', thisRow).val($(this).text());
                $('.iatButton', thisQuestion).unbind('click.iatButtonClick');
                if($('tr.subquestion-list.unanswered', thisQuestion).length > 0) {
                    iatShowWordMobile();
                }
                else {
                    $('.iatLeftLabel, .iatWord, .iatRightLabel, .iatInstructions, .iatMobileButtonWrapper', thisQuestion).fadeOut('slow', function() {
                        $('div.iatWord', thisQuestion).text(iatTexts[3]);
                        $('.iatWord', thisQuestion).addClass('done').fadeIn('slow');
                    });
                }
            });
        }
        
        // Start the IAT display
        if(mobile == true) { // Mobile devices
            $('.iatMobileButtonWrapper', thisQuestion).show();
            $('.iatButton', thisQuestion).bind('click.iatStartMobile', function(e) {
                $('.iatButton', thisQuestion).unbind('click.iatStartMobile');
                iatShowWordMobile();
            });
        }
        else {
            $(document).bind('keypress.iatStart', function(e) { // Non-mobile devices
                if(e.which == 101 || e.which == 105) {
                    $(document).unbind('keypress.iatStart');
                    iatShowWord();
                }
            });
        }
    });
}
 
 
 $(document).ready(function() {
        // Apply the IAT plugin to this question
        implicitAssociation('#question{QID}');
    });    
</script>

And some styling:
Code:
<style type="text/css">
/* IAT questions */
.iatWrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    color: #D0DBE5;
    background-color: #2C3E50;
    font-size: 21px;
}
 
.iatLeftLabel {
    float: left;
    padding: 10px;
}
 
.iatRightLabel {
    float: right;
    padding: 10px;
}
 
.iatWord {
    position: absolute;
    width: 100%;
    top: 35%;
    text-align: center;
    font-size: 36px;
    color: #C4D1DE;
}
 
.iatWord.done {
    color: #C4D1DE;
}
 
.iatInstructions {
    position: absolute;
    width: 100%;
    bottom: 0px;
    padding-bottom: 10px;
    text-align: center;
}
 
.iatMobileButtonWrapper {
    display: none;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-size: 36px;
}
 
.iatButton {
    float: left;
    margin: 20px;
    width: 100px;
    padding: 2px 0 5px 0;
    border: 5px solid #233140;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;
    text-align: center;
    line-height: normal;
    cursor: pointer;
}
 
.iatLeftButton {
    float: left;
}
 
.iatRightButton {
    float: right;
}
</style>

Here in "fruity_twentythree" to show that it is really 6.x
 

And you may read this
[url] forums.limesurvey.org/forum/can-i-do-thi...tion-task-workaround [/url]

Joffm
 
  • bhavik
  • bhavik's Avatar
22 Jan 2024 17:28
Where should I import the Demo, when I installed the plugin, I had the demo file in the pdfReport.zip file, by creating report you mean changing the HTML, css and ExpressionScript in the upload Question I created? What kind of code should I add to render question?
Displaying 76 - 90 out of 4728 results.

Lime-years ahead

Online-surveys for every purse and purpose