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:
PHP Code:
697 if (!$email) {
698 $res .= "<input type=submit name=unsubscribe value=\"$GLOBALS[strContinue]\"></form>\n";
699 $res .= $GLOBALS["PoweredBy"];
700 $res .= $data["footer"];
701 return $res;
702 }
THe code to replace it(I think) is:
PHP Code:
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
Bookmarks