Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

problem with a workournd : multiple completed with only one token - by: startx25

$
0
0
I follow this workaround: manual.limesurvey.org/wiki/Workarounds:_..._with_only_one_token


I have LM1.9.2 and this workaround writed for LM1.7.1

My submitoken fucntion definition is not same (in index.php)

LM 1.7.1 :

if (bIsTokenCompletedDatestamped($thissurvey))
{
$utquery .= "SET completed='$today'\n";
}
}
else
{
$utquery .= "SET completed='Y'\n";
....


anh here is my 1.9.2

....
elseif (bIsTokenCompletedDatestamped($thissurvey))
{
if (isset($usesleft) && $usesleft<=1)
{
$utquery .= "SET usesleft=usesleft-1, completed='$today'\n";
}
else
{
$utquery .= "SET usesleft=usesleft-1\n";
}
}
else
{
if (isset($usesleft) && $usesleft<=1)
{
$utquery .= "SET usesleft=usesleft-1, completed='Y'\n";
}
else
{
$utquery .= "SET usesleft=usesleft-1\n";
}
}

can some one help me to adapte this workaround for 1.9.2 ?

Regards

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>