phpList 2.10.13 Directing to Custom "You have been unsubscribed" page?

Hello all,

I know the answer is somewhere and I have been looking for the past few days. I have successfully created a custom subscription page, confirmation page,unsubscribe page, but when the the unsubscribe button is pressed I’m directed to the phpList message/page “You have been unsubscribed…” how can I direct the action of pushing the button to a custom designed page I have built?

I’m sorry if this is the wrong forum, but i think the answer lies somewhere in their php code. But any help, guidance, or code to copy would greatly be appreciated.

PChuprina

At the site: Update on hacking PHPList to redirect subscription and unsubscription page at spamcollect I found:

In list/index.php: For the subscribe page go to line 404 and look for:

  • function subscribePage($id) {
  • This leads you to the function that is generating the subscribe page
  • Looking for the line 525 there is a
  • return $html;
  • Remove that line and replace it with a
  • header(“Location: YOURURL.com”);
  • For the confirmation page go to line 528:
  • function confirmPage($id) {
  • Look for return $res; in line 580.
  • Comment it out or remove it and replace it with the header redirect.
  • Finally go to line 583 for the unsubscribe page.
  • function unsubscribePage($id) {
  • You will find in line 700 the
  • return $res;
  • Same procedure here.

This is only working if PHPlist is not writting a header up front.
As I mentioned in the beginning, TOTALLY UNTESTED NO GARANTUEES."

In list.php I found these lines:


697  if (!$email) { 
698    $res .= "<input type=submit name=unsubscribe    value=\\"$GLOBALS[strContinue]\\"></form>\
"; 
699    $res .= $GLOBALS["PoweredBy"]; 
700    $res .= $data["footer"]; 
701    return $res; 
702    } 

THe code to replace it(I think) is:

header(“Location: YOURURL.com”);

Not sure where it goes, tried a few places with no success. Getting a migraine struggling with this. Any help, ideas, and/or code to paste would be a gratefully appreciated.

PChuprina