<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Internet Marketing Blog &#124; Jesse Kanclerz &#124;  Rochester, NY &#187; phplist</title>
	<atom:link href="http:///index.php?option=com_wordpress&#038;feed=rss2&#038;lang=en&#038;tag=phplist" rel="self" type="application/rss+xml" />
	<link>http://www.jessekanclerz.com/blog/</link>
	<description>Marketing advice for running your business.</description>
	<lastBuildDate>Sun, 18 Apr 2010 01:45:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to integrate a Phplist Subscribe Page into Joomla</title>
		<link>http://www.jessekanclerz.com/blog/2008/02/how-to-integrate-a-phplist-subscribe-page-into-joomla/</link>
		<comments>http://www.jessekanclerz.com/blog/2008/02/how-to-integrate-a-phplist-subscribe-page-into-joomla/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 02:59:41 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
				<category><![CDATA[Email Marketing]]></category>
		<category><![CDATA[phplist]]></category>

		<guid isPermaLink="false">http://www.jessekanclerz.com/blog/2008/02/how-to-integrate-a-phplist-subscribe-page-into-joomla/</guid>
		<description><![CDATA[These instructions were carried out using phplist and joomla version 1.0X.  However, it should still work with new versions of joomla 1.5X
You don&#8217;t need nasty wrappers,  phplist-bridge or Joomclub to integrate nice looking newsletter sign-up forms into your Joomla pages. However, I should preface if you&#8217;re looking for your Joomla subscribers to be automatically [...]]]></description>
			<content:encoded><![CDATA[<p><span class="info">These instructions were carried out using phplist and joomla version 1.0X.  However, it should still work with new versions of joomla 1.5X</span></p>
<p>You don&#8217;t need nasty wrappers,  phplist-bridge or Joomclub to integrate nice looking newsletter sign-up forms into your Joomla pages. However, I should preface if you&#8217;re looking for your Joomla subscribers to be automatically subscribed to phplist then you&#8217;ll want to consider one of the aforementioned integrations.</p>
<p><strong>What you need:</strong></p>
<li><a href="http://www.phplist.com/download" target="_blank">Phplist</a></li>
<li><a href="http://www.joomla.org/" target="_blank">Joomla</a></li>
<li><a href="http://www.chronoengine.com/" target="_blank">ChronoForms</a> â€“ Joomla Component</li>
<p><img src="http://www.jessekanclerz.com/images/blog/joomla-phplist.png" alt="Customize Phplist forms to match your Joomla site" /></p>
<p><span id="more-12"></span></p>
<p><strong><br />
Steps</strong></p>
<p>1)  Install the ChronoForms component. I&#8217;m assuming you&#8217;re familiar with Joomla and know how to install a component. While you&#8217;re at it install the ChronoForms mambot which will allow you to place forms inside content pages.</p>
<p>2)  Create a new form for your subscribe page. In my example its listed as Phplist. Leave Email The Results field set to no.[<a href="http://www.jessekanclerz.com/images/blog/phplist-newform.jpg" target="_blank">Image 1</a>] [<a href="http://www.jessekanclerz.com/images/blog/phplist-emailresultsfieldblank.jpg" target="_blank">Image 2</a>]</p>
<p>3)  Click the <a href="http://www.jessekanclerz.com/images/blog/phplist-formcodetab.jpg" target="_blank">Form Code tab</a>. Now view the page source of the subscribe page you created in Phplist.</p>
<li>Paste your HTML code into the Form HTML box of ChronoForms. DO NOT include the form tags. It should look something like:</li>
<pre>
&lt;table style="text-align: left; width: 100%;" border="0"&gt;
cellpadding="2" cellspacing="2"&amp;amp;amp;amp;amp;amp;amp;gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="required"&gt;Email*&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input name="email" size="40" type="text" /&gt; &lt;script type="text/javascript"&gt;&lt;!--
addFieldToCheck("email","Email");
// --&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="required"&gt;Confirm your email address*&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input name="emailconfirm" size="40" type="text" /&gt; &lt;script type="text/javascript"&gt;&lt;!--
addFieldToCheck("emailconfirm","");
// --&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;input name="htmlemail" type="hidden" value="1" /&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="required"&gt;First Name*&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input class="attributeinput" name="attribute1" size="40" type="text" /&gt;&lt;script type="text/javascript"&gt;&lt;!--
addFieldToCheck("attribute1","First Name");
// --&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="required"&gt;Last Name*&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input class="attributeinput" name="attribute2" size="40" type="text" /&gt;&lt;script type="text/javascript"&gt;&lt;!--
addFieldToCheck("attribute2","Last Name");
// --&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="attributename"&gt;Company&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input class="attributeinput" name="attribute5" size="40" type="text" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div class="attributename"&gt;Title&lt;/div&gt;&lt;/td&gt;
&lt;td class="attributeinput"&gt;&lt;input class="attributeinput" name="attribute3" size="40" type="text" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;strong&gt;
&lt;/strong&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;
&lt;div class="attributename"&gt;Does your company market to B2B, B2C or both?&lt;/div&gt;
B2B
&lt;input class="attributeinput" name="attribute6" type="radio" value="1" /&gt; B2C
&lt;input class="attributeinput" name="attribute6" type="radio" value="2" /&gt; Both
&lt;input class="attributeinput" name="attribute6" type="radio" value="3" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;strong&gt;&lt;input name="list[7]" type="hidden" value="signup" /&gt; &lt;input name="listname[7]" type="hidden" value="Turn On The Light Newsletter" /&gt; &lt;/strong&gt;
&lt;div style="display:none"&gt;&lt;strong&gt;&lt;input name="VerificationCodeX" size="20" type="text" /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;strong&gt;&lt;input onclick="return checkform();" name="subscribe" type="submit" value="Subscribe" /&gt; &lt;/strong&gt;</pre>
<p>&lt;strong&gt;</p>
<p>&lt;/strong&gt;</p>
<p>&lt;strong&gt;&lt;a href=&#8221;http://www.jessekanclerz.com/newsletter-unsubscribe.html&#8221;&gt;Unsubscribe&lt;/a&gt;&lt;/strong&gt;</p>
<p>&lt;strong&gt;
</pre>
<li>Located above the HTML code should be the Javascript. Paste your Javascript into the Form Javascript box without the script tags. Note: Chronoforms changes the form name to 'ChronoContact_form_name' (where 'form_name' is the name you give the form in the Chrono Forms General Tab). My Javascript code looks like:</li>
<pre>function checkform() {
for (i=0;i
if (eval("document.ChronoContact_Phplist['"+fieldstocheck[i]+"'].type") == "checkbox") {
if (document.ChronoContact_Phplist[fieldstocheck[i]].checked) {
} else {
alert("Please enter your "+fieldnames[i]);
eval("document.ChronoContact_Phplist['"+fieldstocheck[i]+"'].focus()");
return false;
}
}
else {
if (eval("document.ChronoContact_Phplist['"+fieldstocheck[i]+"'].value") == "") {
alert("Please enter your "+fieldnames[i]);
eval("document.ChronoContact_Phplist['"+fieldstocheck[i]+"'].focus()");
return false;
}
}
}
for (i=0;i
if (!checkGroup(groupstocheck[i],groupnames[i])) {
return false;
}
}&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;</code>

&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt; if(! compareEmail())
{
alert("Email Addresses you entered do not match");
return false;
}
return true;
}&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;

&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;var fieldstocheck = new Array();
var fieldnames = new Array();
function addFieldToCheck(value,name) {
fieldstocheck[fieldstocheck.length] = value;
fieldnames[fieldnames.length] = name;
}
var groupstocheck = new Array();
var groupnames = new Array();
function addGroupToCheck(value,name) {
groupstocheck[groupstocheck.length] = value;
groupnames[groupnames.length] = name;
}&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;

&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;function compareEmail()
{
return (document.ChronoContact_Phplist["email"].value == document.ChronoContact_Phplist["emailconfirm"].value);
}
function checkGroup(name,value) {
option = -1;
for (i=0;i
if (document.ChronoContact_Phplist[name][i].checked) {
option = i;
}
}
if (option == -1) {
alert ("Please enter your "+value);
return false;
}
return true;
}
</pre>
<p>4)  Click the <a href="http://www.jessekanclerz.com/images/blog/phplist-formurls.jpg" target="_blank">Form URL's tab</a>. In the Submit URL field enter your action URL, in my case it is http://www.jessekanclerz.com/lists/?p=subscribe. This is important otherwise the data entered into your sign-up form will not post back to the Phplist database tables.</p>
<p>You'll also notice in this section a Redirect URL. Note that leaving this blank or putting a 	redirect to a page on your website will have no effect â€“ Phplist will redirect to a public confirmation page upon submittal of the form. However, you'll find an excellent post over at <a href="http://www.spamcollect.com/archives/category/phplist" target="_blank">Spamcollect</a> which details how to hack the phplist code to redirect back to pages on your CMS.</p>
<p>5)  Go back to the Forms Manager of ChronoForms and click on the Link for your phplist subscribe page. If it shows up - awesome! Now just create newsletter-subscribe page in one of your Joomla content items and embed the Chrono mambot within that page for a pretty, search engine friendly URL.</p>
<p><strong> <span style="text-decoration: line-through;">Take my functioning subscribe page for a spin. </span></strong>Since switching to Joomla 1.5X I haven't had time to update the subscribe form for Joomla+Phplist. However, these instructions should still work.</p>
<p>To customize your unsubscribe and preferences pages requires following the steps outlined in this post.</p>
<p>Much thanks to <a href="http://www.chronoengine.com/">Bob Janes</a> for helping me figure this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jessekanclerz.com/blog/2008/02/how-to-integrate-a-phplist-subscribe-page-into-joomla/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
