The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Multiple completions with one token - in version 1.91

Multiple completions with one token - in version 1.91 1 year 11 months ago #61821

  • lstrange
  • lstrange's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
I have a user that wants to be able to do multiple completions with one token. They found this workaround for version 1.71 here:

docs.limesurvey.org/tiki-index.php?page=..._with_only_one_token

but I just installed Version 1.91 Build 10120 on a test server and this portion of code is different, so I'm not quite sure how to make the changes for version 1.91.

The section of new code appears like this:

///////

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";
}
}

/////

Any ideas? Appreciate it.

Lainie
The administrator has disabled public write access.

Re: Multiple completions with one token - in version 1.91 1 year 11 months ago #61822

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
I don't think you need the hack for 1.91. You can add multiple uses to the tokens. Note that "Enable token-based response persistence?" must be set to "No".

Capture3_2011-06-03.JPG
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Multiple completions with one token - in version 1.91 1 year 11 months ago #61824

  • lstrange
  • lstrange's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
That worked! Thank you!
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.256 seconds
Donation Image