Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: problem with a workournd : multiple completed with only one token

problem with a workournd : multiple completed with only one token 10 Monate 1 Woche her #99872

  • startx25
  • startx25s Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 50
  • Karma: 0
I follow this workaround: manual.limesurvey.org/Workarounds:_Surve..._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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.137 Sekunden
Donation Image