# personalise the thank you page
if ($subscribepagedata["thankyoupage"]) {
$thankyoupage = $subscribepagedata["thankyoupage"];
} else {
$thankyoupage = '<h3>'.$strThanks.'</h3>'. $strEmailConfirmation;
}
phader wrote:Thanks. I added a header() call at the appropriate place and it seems to work. Now I'm trying to do the same with the "You've been unsubscribed" page. I can't seem to find the file to edit in order to change that page as well.
Any hints?
Thanks,
phader
<h3>Thank you for subscribing to our newsletters.</h3>
Your email has been added to our system. You will be e-mailed shortly with a request to confirm your membership. Please make sure that you click the link in that message to confirm your subscription.
<script language="javascript">
<!--
window.location="/newsletters/thanks";
-->
</script>
Click <a href=/members>here</a> to return to the members' area
Something likehellomobe wrote:don't know how to use the header () call.
header("Location:http://yourdomain.com/yourpage.php");
SaWey wrote:You can find that in the function
- Code: Select all
unsubscribePage($id) {
in 'index.php' at line 541
Spamcollect developed a mod for redirecting to a custom subscribe, unsubscribe and preferences page. See: viewtopic.php?t=16808phader wrote:I've created a custom subscribe page and I'd like to take the user to a certain URL after they registered, instead of the default thank you page. How do I do that?
ref: viewtopic.php?p=60737#p60737dimasko wrote:subscribelib2.php file line 297
something like:works for me
- Code: Select all
# personalise the thank you page
if ($subscribepagedata["thankyoupage"]) {
//$thankyoupage = $subscribepagedata["thankyoupage"];
header("location: link");
} else {
//$thankyoupage = '<h3>'.$strThanks.'</h3>'. $strEmailConfirmation;
header("location: link");
}
H2B2 wrote:Spamcollect developed a mod for redirecting to a custom subscribe, unsubscribe and preferences page.phader wrote:I've created a custom subscribe page and I'd like to take the user to a certain URL after they registered, instead of the default thank you page. How do I do that?
$res = '<title>'.$GLOBALS["strConfirmTitle"].'</title>';
$res .= $data["header"];
$res .= '<h1>'.$info.'</h1>';
$res .= $html;
$res .= "<P>".$GLOBALS["PoweredBy"].'</p>';
$res .= $data["footer"];
return $res;
$res = ".$GLOBALS["strConfirmTitle"].";
$res .= $data["header"];
$res .= ".$info.";
$res .= $html;
$res .= "".$GLOBALS["PoweredBy"].";
$res .= $data["footer"];
$res = header(’Location: URL to thanks-for-confirming-your-subscription page‘);
/* $res = ".$GLOBALS["strConfirmTitle"].";
$res .= $data["header"];
$res .= ".$info.";
$res .= $html;
$res .= "".$GLOBALS["PoweredBy"].";
$res .= $data["footer"]; */
$res = header(’Location: URL to thanks-for-confirming-your-subscription page‘);
# personalise the thank you page
if ($subscribepagedata["thankyoupage"]) {
// $thankyoupage = $subscribepagedata["thankyoupage"];
header(’Location: URL to thanks-for-subscribing page‘);
} else {
// $thankyoupage = ".$strThanks.". $strEmailConfirmation;
header(’Location: URL to thanks-for-subscribing page‘);
}
if ($userid)
$res .= '<h1>'.$GLOBALS["strUnsubscribeDone"] ."</h1><P>";
// $res = header(’Location: URL to unsubscribe confirmation page‘);
#0013076: Blacklisting posibility for unknown users
if ($blacklist)
$res .= '<h1>'.$GLOBALS["strYouAreBlacklisted"] ."</h1><P>";
$res .= $GLOBALS["PoweredBy"].'</p>';
$res .= $data["footer"];
//$res = header(’Location: URL to unsubscribe confirmation page‘);
return $res;
Return to Answers, Howtos, Tips & Tricks
Users browsing this forum: No registered users and 5 guests