Patches item #1460571, was opened at 2006-03-29 12:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308956&aid=1460571&group_id=8956
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lexus (lexus78)
Assigned to: Nobody/Anonymous (nobody)
Summary: Show Response Number in Thank You
Initial Comment:
In one of our surveys respondents are allowed to come
back and see how their response is evaluated in context
to the other results. For this we show the response id
in the text of the thank you body.
In the thank_body text the string %rid% is replaced by
the response number.
This is achieved with the following modifications:
*) FILE: admin/include/funcs.inc
change
function goto_thankyou($sid,$referer) {
to
function goto_thankyou($sid,$referer,$rid) {
add
$thank_body = preg_replace("/%rid%/", $rid,
$thank_body);
right after
if(empty($thank_body) && empty($thank_head)) {
$thank_body =
$GLOBALS['ESPCONFIG']['thank_body'];
$thank_head =
$GLOBALS['ESPCONFIG']['thank_head'];
}
*) FILE: public/handler.php
change goto_thankyou($sid,$HTTP_POST_VARS['referer']);
to
goto_thankyou($sid,$HTTP_POST_VARS['referer'],
$HTTP_POST_VARS['rid']);
PS: my code is based on phpESP 1.7.5
PPS: sorry for not providing a proper patch file
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=308956&aid=1460571&group_id=8956
|