<?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: Joomla New Item Email Notification</title>
	<atom:link href="http://www.klovera.com/joomla-new-item-email-notification/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klovera.com/joomla-new-item-email-notification/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 01 Jul 2010 15:46:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: JR</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-1127</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Sat, 12 Jun 2010 11:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-1127</guid>
		<description>Hi Umbobabo,

As you seem to be suggesting, an alternative approach in Joomla1.5 is to go to the messaging section in the console, go to settings and select &quot;Mail me on new Message&quot;. Then update \administrator\components\com_messages\tables\messages.php to provide the message content rather than just telling you there is a new message. However, I think this would involve greater changes than the change I suggested above because you would have to alter the number of arguments going into the &#039;send&#039; function in that file and alter how it is called etc, so it seems like too much effort for the same result. However, I&#039;m only a newbie so could have this wrong.
JR</description>
		<content:encoded><![CDATA[<p>Hi Umbobabo,</p>
<p>As you seem to be suggesting, an alternative approach in Joomla1.5 is to go to the messaging section in the console, go to settings and select &#8220;Mail me on new Message&#8221;. Then update \administrator\components\com_messages\tables\messages.php to provide the message content rather than just telling you there is a new message. However, I think this would involve greater changes than the change I suggested above because you would have to alter the number of arguments going into the &#8216;send&#8217; function in that file and alter how it is called etc, so it seems like too much effort for the same result. However, I&#8217;m only a newbie so could have this wrong.<br />
JR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-1126</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Sat, 12 Jun 2010 11:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-1126</guid>
		<description>I tried this in Joomla 1.5 too, but couldn&#039;t get Owen&#039;s solution to work. So here is what I did (this solution also allows more flexibilty in the message sent):

-search for &quot;foreach ($users as $user_id)&quot; in /components/com_content/controller.php
-add the following lines at the top of the loop:
				### EXTRA LINES ADDED HERE TO SEND EMAIL NOTIFICATION
				  # Invoke JMail Class
				  $mailer = JFactory::getMailer();
 
				  # Set sender -- array so that my name will show up neatly in your inbox
				  $mailer-&gt;setSender(array(&quot;me@mydomain.com&quot;, &quot;myname&quot;));
 
				  # Set recipient -- this can be a single address (string) or an array of addresses
				  $mailer-&gt;addRecipient(&quot;yourname@yourdomain.com&quot;);

				  # Set Subject
				  $mailer-&gt;setSubject(&quot;New article submitted&quot;);

				  # Set Body
				  $mailer-&gt;setBody(JText::sprintf(&#039;ON_NEW_CONTENT&#039;, $user-&gt;get(&#039;username&#039;), $post[&#039;title&#039;], $section, $category));
 
				  # Send once you have set all of your options
				  $mailer-&gt;send();

				### END OF EXTRA LINES

-no need to change any other files, unless you want to modify what ON_NEW_CONTENT says (or add a new constant), in which case edit  &quot;\language\en-GBen-GB.com_content.ini&quot;.

Regards.</description>
		<content:encoded><![CDATA[<p>I tried this in Joomla 1.5 too, but couldn&#8217;t get Owen&#8217;s solution to work. So here is what I did (this solution also allows more flexibilty in the message sent):</p>
<p>-search for &#8220;foreach ($users as $user_id)&#8221; in /components/com_content/controller.php<br />
-add the following lines at the top of the loop:<br />
				### EXTRA LINES ADDED HERE TO SEND EMAIL NOTIFICATION<br />
				  # Invoke JMail Class<br />
				  $mailer = JFactory::getMailer();</p>
<p>				  # Set sender &#8212; array so that my name will show up neatly in your inbox<br />
				  $mailer-&gt;setSender(array(&#8220;me@mydomain.com&#8221;, &#8220;myname&#8221;));</p>
<p>				  # Set recipient &#8212; this can be a single address (string) or an array of addresses<br />
				  $mailer-&gt;addRecipient(&#8220;yourname@yourdomain.com&#8221;);</p>
<p>				  # Set Subject<br />
				  $mailer-&gt;setSubject(&#8220;New article submitted&#8221;);</p>
<p>				  # Set Body<br />
				  $mailer-&gt;setBody(JText::sprintf(&#8216;ON_NEW_CONTENT&#8217;, $user-&gt;get(&#8216;username&#8217;), $post['title'], $section, $category));</p>
<p>				  # Send once you have set all of your options<br />
				  $mailer-&gt;send();</p>
<p>				### END OF EXTRA LINES</p>
<p>-no need to change any other files, unless you want to modify what ON_NEW_CONTENT says (or add a new constant), in which case edit  &#8220;\language\en-GBen-GB.com_content.ini&#8221;.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umbobabo</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-523</link>
		<dc:creator>Umbobabo</dc:creator>
		<pubDate>Fri, 02 Apr 2010 10:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-523</guid>
		<description>Hi,
well done:

Do you think it&#039;s possibile modify this code...
Then you must change the file \administrator\components\com_messages\tables\messages.php
————————
$subject	= sprintf (JText::_(‘A new private message has arrived’), $sitename);
$msg	 = sprintf (JText::_(‘Please login to read your message’), $siteURL, $message);

to insert in the message the direct link to backend-content or the Article title?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,<br />
well done:</p>
<p>Do you think it&#8217;s possibile modify this code&#8230;<br />
Then you must change the file \administrator\components\com_messages\tables\messages.php<br />
————————<br />
$subject	= sprintf (JText::_(‘A new private message has arrived’), $sitename);<br />
$msg	 = sprintf (JText::_(‘Please login to read your message’), $siteURL, $message);</p>
<p>to insert in the message the direct link to backend-content or the Article title?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-102</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Wed, 22 Jul 2009 14:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-102</guid>
		<description>Cool. Thanks Owen.</description>
		<content:encoded><![CDATA[<p>Cool. Thanks Owen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-101</link>
		<dc:creator>Owen</dc:creator>
		<pubDate>Wed, 22 Jul 2009 06:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-101</guid>
		<description>I&#039;m working through the differences with 1.5 right now and so far these are the difference I&#039;ve found to make this hack work :

The English (BG) language file is now /language/en-GB/en-GB.com_content.ini

Change the entry here to what you wish.

Then in /components/com_content/controller.php  ~~ line 218 change the foreach loop here to say :

			foreach ($users as $user_id)
			{
JUtility::sendAdminMail($adminRow-&gt;name, $adminRow-&gt;email, &#039;&#039;, JText::_(&#039;New Item&#039;), $post[&#039;title&#039;], $user-&gt;get(&#039;username&#039;), JURI::base());
				$msg = new TableMessage($db);
				$msg-&gt;send($user-&gt;get(&#039;id&#039;), $user_id, JText::_(&#039;New Item&#039;), JText::sprintf(&#039;ON_NEW_CONTENT&#039;, $user-&gt;get(&#039;username&#039;), $post[&#039;title&#039;], $section, $category));
			}</description>
		<content:encoded><![CDATA[<p>I&#8217;m working through the differences with 1.5 right now and so far these are the difference I&#8217;ve found to make this hack work :</p>
<p>The English (BG) language file is now /language/en-GB/en-GB.com_content.ini</p>
<p>Change the entry here to what you wish.</p>
<p>Then in /components/com_content/controller.php  ~~ line 218 change the foreach loop here to say :</p>
<p>			foreach ($users as $user_id)<br />
			{<br />
JUtility::sendAdminMail($adminRow-&gt;name, $adminRow-&gt;email, &#8221;, JText::_(&#8216;New Item&#8217;), $post['title'], $user-&gt;get(&#8216;username&#8217;), JURI::base());<br />
				$msg = new TableMessage($db);<br />
				$msg-&gt;send($user-&gt;get(&#8216;id&#8217;), $user_id, JText::_(&#8216;New Item&#8217;), JText::sprintf(&#8216;ON_NEW_CONTENT&#8217;, $user-&gt;get(&#8216;username&#8217;), $post['title'], $section, $category));<br />
			}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-100</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Mon, 15 Jun 2009 05:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-100</guid>
		<description>Not sure what you mean?</description>
		<content:encoded><![CDATA[<p>Not sure what you mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: search engines</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-99</link>
		<dc:creator>search engines</dc:creator>
		<pubDate>Thu, 28 May 2009 00:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-99</guid>
		<description>It sounds like you&#039;re creating problems yourself by trying to solve this issue instead of looking at why their is a problem in the first place</description>
		<content:encoded><![CDATA[<p>It sounds like you&#8217;re creating problems yourself by trying to solve this issue instead of looking at why their is a problem in the first place</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flushface</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-98</link>
		<dc:creator>Flushface</dc:creator>
		<pubDate>Mon, 23 Feb 2009 15:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-98</guid>
		<description>Hy all!

No, with the version J1.5.X it doesn&#039;t work. But you change it too.
You must change the com_messages.ini in your language folder.
------------------
PLEASE LOGIN TO READ YOUR MESSAGE=the website url (%s) public.  %s
------------------

Important is the &quot;%s&quot; at the end.

Then you must change the file \administrator\components\com_messages\tables\messages.php
------------------------
$subject	= sprintf (JText::_(&#039;A new private message has arrived&#039;), $sitename);
$msg		= sprintf (JText::_(&#039;Please login to read your message&#039;), $siteURL, $message);
-------------------------

the change of this is the variable $message.

good luck!

cheers</description>
		<content:encoded><![CDATA[<p>Hy all!</p>
<p>No, with the version J1.5.X it doesn&#8217;t work. But you change it too.<br />
You must change the com_messages.ini in your language folder.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
PLEASE LOGIN TO READ YOUR MESSAGE=the website url (%s) public.  %s<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Important is the &#8220;%s&#8221; at the end.</p>
<p>Then you must change the file \administrator\components\com_messages\tables\messages.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
$subject	= sprintf (JText::_(&#8216;A new private message has arrived&#8217;), $sitename);<br />
$msg		= sprintf (JText::_(&#8216;Please login to read your message&#8217;), $siteURL, $message);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>the change of this is the variable $message.</p>
<p>good luck!</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: revive</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-97</link>
		<dc:creator>revive</dc:creator>
		<pubDate>Sun, 28 Dec 2008 19:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-97</guid>
		<description>Great article. Love to hear if Justin was able to incorporate it into J1.5 or if you came across anything. I&#039;m looking for this functionality for J1.5.8 now.
:)

Cheers and keep up the great work!</description>
		<content:encoded><![CDATA[<p>Great article. Love to hear if Justin was able to incorporate it into J1.5 or if you came across anything. I&#8217;m looking for this functionality for J1.5.8 now.<br />
:)</p>
<p>Cheers and keep up the great work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.klovera.com/joomla-new-item-email-notification/comment-page-1/#comment-96</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Mon, 27 Oct 2008 18:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dustinsdesign.com/?p=73#comment-96</guid>
		<description>I haven&#039;t tried setting this up in 1.5 as of yet, but I don&#039;t see any reason why you couldn&#039;t do something similar. I wouldn&#039;t be surprised if someone has already found a way to do this without a hack in 1.5.

If I come across something I&#039;ll post it here.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried setting this up in 1.5 as of yet, but I don&#8217;t see any reason why you couldn&#8217;t do something similar. I wouldn&#8217;t be surprised if someone has already found a way to do this without a hack in 1.5.</p>
<p>If I come across something I&#8217;ll post it here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
