Hopefully you have read the previous article to integrate the phplist subscribe page into your Joomla site. This is great except that when the user subscribes they are bounced back to phplist looking thankyou messages. Only two things remain to make the subscribe process look more seamless.
This process was made easier because of a simple mail list requirement, with only one newsletter.
1. Customize the thank you message;
Create a Joomla article with the verbage you require;
You will need to edit the following file to point to your article (my phplist install was in the the "newsletter" directory
[your domain]/newsletter/admin/subscribelib2.php
Around line 342 the code should look like this;
# personalise the thank you page
# modified below by Trevor Smith 8/20/2011
if ($subscribepagedata["thankyoupage"]) {
//thankyoupage = $subscribepagedata["thankyoupage"];
header ('Location:http://www.beanboxbikerental.com/index.php?option=com_content&view=article&id=66&Itemid=70');
}
else {
//thankyoupage = '<h3>'.$strThanks.'</h3>'. $strEmailConfirmation;
header ('Location:http://www.beanboxbikerental.com/index.php?option=com_content&view=article&id=66&Itemid=70');
}
2. Customize the confirm page
Create a Joomla article with the verbage you require;
You will need to edit the following file to point to your article (my phplist install was in the the "newsletter" directory
[your domain]/newsletter/index.php
Around line 574 the code should look like this;
/* added by TCS 08/23/20111 - the header line below to customize confirm page */
header ('Location:http://www.beanboxbikerental.com/index.php?option=com_content&view=article&id=67&Itemid=70');
$res = '<title>'.$GLOBALS["strConfirmTitle"].'</title>';
$res .= $data["header"];
$res .= '<h1>'.$info.'</h1>';
$res .= $html;
$res .= "<P>".$GLOBALS["PoweredBy"].'</p>';
$res .= $data["footer"];
return $res;
}
Source/credits:
Jesse Kanclerz
http://www.jessekanclerz.com/
http://www.jessekanclerz.com/blog/2008/02/how-to-integrate-a-phplist-subscribe-page-into-joomla/
Mr Pepper marketing
http://mrpeppermarketing.com/
http://mrpeppermarketing.com/blog/technical-posts/how-to-create-a-custom-subscribe-form-with-phplist/