Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: html)

  • tpartner
  • tpartner's Avatar
02 Aug 2011 12:04
I haven't tested but maybe something like:
Code:
<a href="http://yourSurveySite/limesurvey//optout.php?lang=en&amp;sid=12345&amp;token={TOKEN}">Opt out</a>
  • tpartner
  • tpartner's Avatar
18 May 2011 20:29
Replied by tpartner on topic timestamps in questions. it wont work... :((
METHOD 1
The first (shorter) workaround simply populates a hidden question with a timestamp of when the group is viewed for the last time.

I think, though, that this workaround may not work because hiding the hidden question with the 'Always hide this question' advanced setting prevents it from being included in the DOM which means that it is inaccessable by JavaScript. I think this question should be hidden with CSS or JavaScript.

METHOD 2
The longer workaround records a total time that the group was viewed, even if a respondent leaves and returns to the group.

To test, you can leave the hidden question visible. Change:
Code:
$('#question'+timeQID).hide();
To:
Code:
//$('#question'+timeQID).hide();

I want there to be several groups with timestamps

Both workarounds can be applied to as many groups as you like.

also, in the short solution its said that the visibility of the timestamp question should be hidden. but the long solution doesnt say anything about it. i dont know which is right?

In the second workaround the question is hidden with JavaScript (see testing above).

The "hide" here is meant as hide the question or hide the short-text field of the question??

Hide the whole timer question.

where do i place the javascript in the timestmap question or in my actual question which the user sees??

JavaScript can be place in the question source or the help source of any question on the page.
  • ikojck
  • ikojck's Avatar
18 May 2011 12:38
Hi,

i want to add a timestamp to my question groups and i found some solutions. But, as i tried them none of them will work. i cant understand where the problem is as i am doing everything right, or am i forgetting something??!
i followed the instructions on both solutions that i found and i tested my survey for javascript and its enabled. but the timer still wont work.
its really urgent as i am doing my bachelor thesis at the moment.

Thank you!

1st. solution

www.aptigence.com.au/home/archives/28-Re...sing-LimeSurvey.html

2nd. solution

docs.limesurvey.org/Workarounds:+Manipul...cord_group_view_time
  • tpartner
  • tpartner's Avatar
13 Apr 2011 11:56
Replied by tpartner on topic Vertical Text alignment in Array
AFAIK it is not possible to vertically align text in (X)HTML.
  • Karny
  • Karny's Avatar
23 Mar 2011 19:19
Graphs not working was created by Karny
Hi there

I've done a bunch of tweaking on the box that limesurvey is installed on, including manually updating the limesurvey version and the directory in which it was installed.

Everything appeared to work fine, but it would seem the Graph feature no longer works.

If I do a HTML report with graphs the graphs aren't shown and if I do a PDF report with graphs I get the following error:
TCPDF ERROR: [Image] No such file or directory in /var/www/surveywarriors.co.uk/tmp/

Any ideas how to get that working again?

Thanks!
  • DenisChenu
  • DenisChenu's Avatar
12 Mar 2011 15:30 - 12 Mar 2011 15:33
Replied by DenisChenu on topic True visual analogue scales in Limesurvey?
Maybe there are some other possibility:



It's just an idea :)

PS : again another possibility of jquery plugin with a option select : www.visualjquery.com/rating/rating_redux.html
  • joop
  • joop's Avatar
03 Mar 2011 14:30
I solved all my problems.
The error message when importing the specific survey, was caused by the configuration of PHP. The imported survey was to big. I solved this by changing the upload_max_filesize setting in the php.ini from 2M to 20M.
Still the limesurvey error message is quit confusing:
Code:
An error occurred uploading your file. This may be caused by incorrect permissions in your /var/www/html/limesurvey/tmp folder.

To be able to import and copy my survey (earlier imported from 1.87) I still had to solve my character set problem. I first changed the driver back from 'odbc_mssql' to 'mssql_n', as the odbc driver gave lots of other troubles. Then I adapted the PHP configuration by changing the mssql.charset parameter to UTF-8. This forced freetds to use the UTF-8 character set.

After this my limesurvey installation was working properly with new created surveys. My existing survey (earlier imported from 1.87) was still giving problems. Therefore I had to replace manually all strange characters from the export file (.lss). Because of my chracter set problem all the special characters like ë, ï, é,`,ö etc. where misshapen.
  • DenisChenu
  • DenisChenu's Avatar
24 Feb 2011 10:42 - 24 Feb 2011 10:43
Replied by DenisChenu on topic Jquery-lightbox
Salut,

Surtout pas dans comon.php, c'est uniquement dans le template.
METHODO:
* Ajouter le fichier jquery.lightbox.js dans le template (envoi de fichier)

* Ajouter dans le fichier start.pstpl
Code:
<script type="text/javascript" src="{TEMPLATEURL}jquery.lightbox-0.4.js"></script>
au dessus de la ligne équivalent mais avec template.js

* Ajouter dans le fichier template.js
Code:
$(document).ready(function() {
$('a.lightbox').lightBox();
});

Et bien sur, mettre pour les images:
Code:
<a href="lien-vers-images.jpg" class="lightbox"><img src="petite-image.jpg"></a>
en mode d'édition de la source

J'ai souvent utilisé jquery-lightbox opu media box dans des sites web, mais peu sous LS.
  • badronald
  • badronald's Avatar
23 Feb 2011 20:26 - 23 Feb 2011 23:39
Replied by badronald on topic Using pictures in ranking question
I did solve this.
I created an array by column question.

For the Answers going down the left side I used div tags, see below, to insert the images and create the mouse hover effect.

For an example of the questions I set up I made this for you

www.nhs2survey.org/limesurvey2/index.php...63&newtest=Y&lang=en
Code:
<div style="display: none; position: absolute; border-style: solid; background-color: white; padding: 5px;" id="uniquename3">
 
<a href="javascript:ShowContent('uniquename3')" onmouseout="HideContent('uniquename3'); return true;" onmouseover="ShowContent('uniquename3'); return true;">Apri<img alt="Apri" src="http://www.nhs3.org/oc/images/apri.jpg" />
</a>
</div> 
 
<a href="javascript:ShowContent('uniquename3')" onmouseout="HideContent('uniquename3'); return true;" onmouseover="ShowContent('uniquename3'); return true;"> [Apri] 
</a> 
 
<div style="display: none; position: absolute; border-style: solid; background-color: white; padding: 5px;" id="uniquename3"></div>
  • joop
  • joop's Avatar
16 Feb 2011 11:34
Hi Mazi,

I switched from driver 'mssql_n' to 'odbc_mssql'. Bottomline is that it still not solved (all) my problems or that it introduced new errors.

Installation of an odbc driver on Linux is quite an experience. I use Freetds and the php-odbc module. I installed a system DSN by configure freetds.conf, odbc.ini and odbcinst.ini.
To get Limesurvey recognize the system DSN on Linux, you need to adapt common.php as is written somewhere else on this forum. (line 160 should be
Code:
case "odbc_mssql": $dbhost="$databaselocation";
)

Directly after login in limesurvey admin section, you get a blank page. After completely debugging limesurvey till the specific query that gave problems, I noticed in the freetds logging that the query/action somehow was canceled. Some searching on the Internet learned me that I needed to upgrade my freetds driver from version 0.64 to 0.82. After this I was able to login and do the same stuff as with the mssql_n driver.

One point seems to be solved now; mandatory questions are validated again after survey activation.

While importing the specific survey I still get the same error that my tmp folder has not enough permissions. I think I do a complete debugging of limesurvey for this problem too.

When copying the specific survey I got a different error now:
Code:
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 11209: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xC4 0x3F 0x64 0x65 in /var/www/html/limesurvey/admin/importsurvey.php  on line 1232
 
Warning: simplexml_load_string() [function.simplexml-load-string]: <answer><![CDATA[Ni�?de]]></answer> in /var/www/html/limesurvey/admin/importsurvey.php on line 1232
 
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /var/www/html/limesurvey/admin/importsurvey.php on line 1232
 
Notice: Trying to get property of non-object in /var/www/html/limesurvey/admin/importsurvey.php on line 1235
This is not a valid LimeSurvey survey structure XML file.
This seems to be a charset problem now with the current driver.

Any advise?
  • joop
  • joop's Avatar
09 Feb 2011 18:03
Hi All,

I've got the following message when importing a survey:

An error occurred uploading your file. This may be caused by incorrect permissions in your /var/www/html/limesurvey/tmp folder.

I normally can import surveys that which I create in my current limesurvey version. Problems only show up when I try to export and import a survey that I earlier created in Limesurvey 1.87.

My /tmp /upload and /templates and subfolders have all 777 permissions.
The strange part is that I can import this survey in the Demo installation of limesurvey.org.

Is something fixed in the version of the demo installation or is something wrong with my installation? (version 1.90 build 9642)

Part of the message is hidden for the guests. Please log in or register to see it.


any help would be appreciated,

Joop
  • holch
  • holch's Avatar
05 Dec 2010 19:59
Replied by holch on topic Multiple question types in array modifiy
Hi TPartner!

Thanks for letting me know. I am little "out" of the whole XHTML and CSS stuff. I know that the trailing slash is closing the element, but I was not aware that DIVs could be used this way. I thought this would be limited to some elements like IMG, HR, etc.
  • tpartner
  • tpartner's Avatar
05 Dec 2010 18:00
Replied by tpartner on topic Multiple question types in array modifiy
Oh, and some XHTML validators might whine about those elements being there but that's just because they're not smart enough to realize that the tags are just quoted inside a script.
  • tpartner
  • tpartner's Avatar
05 Dec 2010 17:57 - 05 Dec 2010 18:01
Replied by tpartner on topic Multiple question types in array modifiy
Hi holch, that trailing slash does close the tag and is valid XHTML.

In this case it doesn't matter though because that tag is just in the script and the actual generated HTML will be:
Code:
<div id="inlineWrapper1">...</div>
  • tpartner
  • tpartner's Avatar
05 Dec 2010 14:50
Replied by tpartner on topic Multiple question types in array modifiy
I have updated the code in the workaround to work in IE8 and to be a little more XHTML valid.

The new code is:
Code:
<script type="text/javascript" charset="utf-8">
 
    $(document).ready(function() {
 
        /*********** 
        Display multiple questions side by side
        ***********/
 
        if ($('div.qRow1').length == 0) {
 
            //////// Add question classes for later use ////////
 
            // Give questions row specific attributes so we can easily manipulate them by row
            $('#question190, #question191, #question192, #question193, #question194').addClass('qRow1 inlineQuestion');
            $('#question195, #question196, #question197, #question198, #question199').addClass('qRow2 inlineQuestion');
            $('#question200, #question201, #question202, #question203, #question204').addClass('qRow3 inlineQuestion');
            $('#question205, #question206, #question207, #question208, #question209').addClass('qRow4 inlineQuestion');
 
            // Give questions column specific classes so we can easily manipulate them by column
            $('#question190, #question195, #question200, #question205').addClass('qCol1');
            $('#question191, #question196, #question201, #question206').addClass('qCol2');
            $('#question192, #question197, #question202, #question207').addClass('qCol3');
            $('#question193, #question198, #question203, #question208').addClass('qCol4');
            $('#question194, #question199, #question204, #question209').addClass('qCol5');
 
            //////// Survey layout manipulation ////////
 
            // Fix the width of the survey
            $( 'table.outerframe' ).css({
                'width': '900px'
            });
 
            // Wrap each row in a div
            $('.qRow1').wrapAll('<div id="inlineWrapper1" />');
            $('.qRow2').wrapAll('<div id="inlineWrapper2" />');
            $('.qRow3').wrapAll('<div id="inlineWrapper3" />');
            $('.qRow4').wrapAll('<div id="inlineWrapper4" />');
 
            // Style the wrapper divs
            $( '#inlineWrapper1, #inlineWrapper2, #inlineWrapper3, #inlineWrapper4' ).css({
                'width': '850px',
                'margin': '0 auto 0 auto',
                'clear': 'both'
            });
 
            // Get all the questions to sit politely side by side
            $( '.qRow1, .qRow2, .qRow3, .qRow4' ).css({
                'float': 'left'    
            });
            $( '.inlineQuestion .survey-question-help' ).parent().hide();
 
            //////// Column manipulation ////////
 
            // Set the column widths - can be set individually if necessary
            // Must add up to less than 100%
            $( '.qCol1' ).css({
                'width': '12%'
            });
            $( '.qCol2, .qCol3, .qCol4, .qCol5' ).css({
                'width': '22%'
            });
 
            //////// Question manipulation ////////
 
            // Hide the answer element in boilerplate questions
            $( 'div.boilerplate td.answer' ).parent().hide();
 
            // Hide the question text elements in non-boilerplate questions
            $('div.text-short td.questiontext, div.list-dropdown td.questiontext, div.yes-no td.questiontext, div.numeric td.questiontext').parent().hide();
 
            // Push the question tables to 100%
            $( 'div.qRow1 table, div.qRow2 table, div.qRow3 table, div.qRow4 table' ).css({
                'width': '100%'
            });
 
            // Get everything to line up nicely vertically
            $( 'td.questiontext, td.answer p' ).css({
                'text-align': 'center'
            });
 
            // Adjust cell heights so everything lines up nicely horizontally
            $( 'td.answer, td.questiontext' ).css({
                'height':'35px',
                'overflow':'hidden'
            });
            $( '.inlineQuestion' ).css({
                'height':'40px',
                'overflow':'hidden'
            });
 
            // Yes-no question styles
            $( 'div.yes-no ul' ).css({
                'text-align': 'center',
                'font-size': '90%',
                'margin': '0',
                'padding-bottom': '5px'
            });
            $( 'div.yes-no li' ).css({
                'padding-right': '1.5em'
            });
            $( 'div.yes-no td.answer' ).css({
                'padding-bottom': '0'
            });
 
            // Short-text question styles
            $( 'div.text-short input' ).css({
                'width': '125px',
                'margin-left': '0'
            });
 
            // Numeric question styles
            $( 'div.numeric input' ).css({
                'width': '125px',
                'margin-left': '0'
            });
            $( 'div.numeric p.tip' ).css({
                'display': 'none'
            });
 
            // Get rid of the margins around select boxes    
            $( 'p.question' ).css({'margin':'0'});
 
            // Reduce the space caused by the question help table
            $( '.qRow1, .qRow2, .qRow3' ).css({
                'margin-bottom': '-8px'
            });
 
        }    
 
    });
 
</script>
Displaying 4711 - 4725 out of 4731 results.

Lime-years ahead

Online-surveys for every purse and purpose