View Issue Details

IDProjectCategoryView StatusLast Update
0012802phpList 3 applicationGeneralpublic06-08-18 13:34
Reporterjsherk Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0012802: Feature request - Option to remove the Reason (Tell Us Why) from Unsubscribe page
DescriptionFeature request - Option to remove the Reason (Tell Us Why) from Unsubscribe page

I would like to see an option added in the config.php file that will remove the request for a Reason (Tell Us Why) from the Unsubscribe page. It's a fairly simply code change, and I have included my suggestion for the coding.

This is different from UNSUBSCRIBE_JUMPOFF in that it will still go to the Unsubscribe page and ask them to confirm their unsubscription, but it just won't ask them why.


Add this to config/config.php...

Code:
#set this to 0 if you do NOT want the user to give a reason for their unsubscription on the unsubscribe page.
#set this option to 1 if you would like to ask the user to give a reason for their unsubscription.
define("UNSUBSCRIBE_REASON",0);



You would then need to make the following change in lists/index.php (around line 690 in 2.10.5):

Change these lines...

Code:
$res .= $GLOBALS["strUnsubscribeRequestForReason"];
$res .= sprintf('
<textarea name="unsubscribereason" cols="%d" rows="%d" wrap="virtual"></textarea>',$c,$r).'
'.$finaltext.'

<input type=submit name="unsubscribe" value="'.$GLOBALS["strUnsubscribe"].'">

';


To this...

Code:
if (UNSUBSCRIBE_REASON) {
  $res .= $GLOBALS["strUnsubscribeRequestForReason"];
  $res .= sprintf('
<textarea name="unsubscribereason" value="Reason not requested" cols="%d" rows="%d" wrap="virtual"></textarea>',$c,$r).'
  '.$finaltext.'
  

<input type=submit name="unsubscribe" value="'.$GLOBALS["strUnsubscribe"].'">

';
} else {
  $res .= sprintf('<input type="hidden" name="unsubscribereason" value="No reason wanted (option set to 0)"></textarea>',$c,$r).'
  '.$finaltext.'
  

<input type=submit name="unsubscribe" value="'.$GLOBALS["strUnsubscribe"].'">

';
}


TagsNo tags attached.

Activities

There are no notes attached to this issue.