<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Custom data in EventList frontend event submission form</title>
	<atom:link href="http://www.aleixcortadellas.com/main/2009/03/15/478/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aleixcortadellas.com/main/2009/03/15/478/</link>
	<description>A little bit of everything...</description>
	<lastBuildDate>Sat, 13 Feb 2010 06:52:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aleix</title>
		<link>http://www.aleixcortadellas.com/main/2009/03/15/478/comment-page-1/#comment-308</link>
		<dc:creator>Aleix</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=478#comment-308</guid>
		<description>Hello, 

Unfortunately I don&#039;t think I will write a tutorial about this, because this version of EventList 1.0 RC is outdated and I ignore if the steps apply for EventList 1.0 stable, which is the version everytime more and more people are using since few months ago. But I can guide you a bit with what would be my approach to the issue:

1. Create a new PHP file, which you will link from wherever you want in the EventList template (external file so not to mess EL code)

2. (this will allow everyone to use mass mail; so if you want to restrict this to admins use the appropriate Joomla function to check user level and display only to admin) When you link it, append a GET variable to make reference to the event ID the registered people of which will get e-mail. To dynamically retrieve the Event ID, you can use the specific EL function (you&#039;ll find it anywhere in the code where reference is made to the event ID).

3. In this PHP file, build a simple form with the necessary fields for e-mail (subject &amp; message at least). Retrieve the event ID from the URL using $id = $_GET[&#039;id&#039;]. Submit button too.

4. On submit, the PHP script to run must:

- First, fetch users registered to the specific event (MySQL query table &#039;jos_eventlist_register&#039;, selecting all rows where event = event ID, retrieve the column uid for each (this is the Joomla user ID, we&#039;ll need it to find every email address).

- Then, with the resulting user IDs, you can query table &#039;jos_users&#039; to gather each e-mail address from registered users. Select all rows where id matches the retrieved ones, then retrieve e-mail from column &#039;email&#039;

5. Put all e-mails together separated with commas, using a loop. Then make the whole resulting string be recipient value for PHP mail function.


That was it. This is just an improvised summary of the steps of a possible approach. I know it might sound a bit confusing, you&#039;ll need good PHP knowledge to make all this. But as far as I can think about, there&#039;s no easier way. I ignore if 1.0 stable provides a built-in mass-mail function. Hope it helps, though.</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Unfortunately I don&#8217;t think I will write a tutorial about this, because this version of EventList 1.0 RC is outdated and I ignore if the steps apply for EventList 1.0 stable, which is the version everytime more and more people are using since few months ago. But I can guide you a bit with what would be my approach to the issue:</p>
<p>1. Create a new PHP file, which you will link from wherever you want in the EventList template (external file so not to mess EL code)</p>
<p>2. (this will allow everyone to use mass mail; so if you want to restrict this to admins use the appropriate Joomla function to check user level and display only to admin) When you link it, append a GET variable to make reference to the event ID the registered people of which will get e-mail. To dynamically retrieve the Event ID, you can use the specific EL function (you&#8217;ll find it anywhere in the code where reference is made to the event ID).</p>
<p>3. In this PHP file, build a simple form with the necessary fields for e-mail (subject &amp; message at least). Retrieve the event ID from the URL using $id = $_GET['id']. Submit button too.</p>
<p>4. On submit, the PHP script to run must:</p>
<p>- First, fetch users registered to the specific event (MySQL query table &#8216;jos_eventlist_register&#8217;, selecting all rows where event = event ID, retrieve the column uid for each (this is the Joomla user ID, we&#8217;ll need it to find every email address).</p>
<p>- Then, with the resulting user IDs, you can query table &#8216;jos_users&#8217; to gather each e-mail address from registered users. Select all rows where id matches the retrieved ones, then retrieve e-mail from column &#8216;email&#8217;</p>
<p>5. Put all e-mails together separated with commas, using a loop. Then make the whole resulting string be recipient value for PHP mail function.</p>
<p>That was it. This is just an improvised summary of the steps of a possible approach. I know it might sound a bit confusing, you&#8217;ll need good PHP knowledge to make all this. But as far as I can think about, there&#8217;s no easier way. I ignore if 1.0 stable provides a built-in mass-mail function. Hope it helps, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tai</title>
		<link>http://www.aleixcortadellas.com/main/2009/03/15/478/comment-page-1/#comment-299</link>
		<dc:creator>Tai</dc:creator>
		<pubDate>Tue, 28 Apr 2009 09:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.aleixcortadellas.com/main/?p=478#comment-299</guid>
		<description>Hi 

Great work ...

Was just wondering if you have a similar workaround to link the registered users of an event to mass mail component. I would like to  be able to easily mail all registered users of an event ...

Thanks</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Great work &#8230;</p>
<p>Was just wondering if you have a similar workaround to link the registered users of an event to mass mail component. I would like to  be able to easily mail all registered users of an event &#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.156 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-04-16 16:17:50 -->

