<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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"
		>
	<channel>
		<title>bbPress Support Forums &#187; Topic: How to send forum posts to email</title>
		<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email</link>
		<description>bbPress Support Forums &#187; Topic: How to send forum posts to email</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 11:35:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/how-to-send-forum-posts-to-email" rel="self" type="application/rss+xml" />

		<item>
			<title>xtint on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-39263</link>
			<pubDate>Mon, 20 Jul 2009 07:31:42 +0000</pubDate>
			<dc:creator>xtint</dc:creator>
			<guid isPermaLink="false">39263@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Gautam that is the source.i adopted it from Thomas Klaiber post notification plugin.Klaiber plugin sends one email notification on topics in their favourites only without the contents.so i need to figure out how to reply to a post through email.<br />
&#60;?php<br />
 function notification_new_post()<br />
    {<br />
        global $bbdb, $bb_table_prefix, $topic_id,$bb_current_user,$post_id;<br />
           $all_users = notification_select_all_users();<br />
	   foreach ($all_users as $userdata) :<br />
	      $topic = get_topic($topic_id);<br />
              $posts = get_thread($topic_id, 1, 1);<br />
              $posts = array_reverse($posts);<br />
              $last = array_pop($posts);<br />
              $last_text = strip_tags($last-&#62;post_text);<br />
$message = __("There is a new post on the forum\n\nTopic title: %1\$s \nPosted by: %2\$s\n\n Url:%3\$s \n\n Contents \n\n %4\$s");<br />
	 mail( $userdata-&#62;user_email, bb_get_option('name') . ':' . __('Notification'),<br />
	sprintf( $message, $topic-&#62;topic_title,get_user_name($bb_current_user-&#62;ID),get_topic_link($topic_id),$last_text),<br />
	'From: ' . bb_get_option('admin_email') );<br />
endforeach;<br />
    }<br />
    add_action('bb_new_post', 'notification_new_post');<br />
function notification_select_all_users()<br />
{<br />
global $bbdb;<br />
$all_users = $bbdb-&#62;get_results("SELECT ID, user_email FROM $bbdb-&#62;users WHERE user_status=0");<br />
return $all_users;<br />
}a<br />
?&#62;
</p>]]></description>
					</item>
		<item>
			<title>Gautam on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-39118</link>
			<pubDate>Fri, 17 Jul 2009 10:24:44 +0000</pubDate>
			<dc:creator>Gautam</dc:creator>
			<guid isPermaLink="false">39118@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Can you give me the current source of the plugin you have made?<br />
You can get the post text (of the first post of the topic) by:<br />
<code><br />
global $bbdb;<br />
$topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic<br />
$first_post = (int) $bbdb-&#62;get_var("SELECT post_id FROM $bbdb-&#62;posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");<br />
$content = urlencode(substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0,300));<br />
$content = str_replace('+','%20', $content);<br />
$content = str_replace("&#8217;","'", $content);<br />
$post_summary = stripslashes($content);<br />
</code>
</p>]]></description>
					</item>
		<item>
			<title>xtint on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-39116</link>
			<pubDate>Fri, 17 Jul 2009 09:52:23 +0000</pubDate>
			<dc:creator>xtint</dc:creator>
			<guid isPermaLink="false">39116@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>i have now figured out how to send forum posts to registered users through email but what i have failed is to let users reply to this post through email.please any one have an idea.</p>
<p>xtint
</p>]]></description>
					</item>
		<item>
			<title>xtint on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-37858</link>
			<pubDate>Thu, 02 Jul 2009 08:36:58 +0000</pubDate>
			<dc:creator>xtint</dc:creator>
			<guid isPermaLink="false">37858@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks Michael3185.nways one of the things i need right now is the filter that pulls the post's content like this one for the topic<br />
topic_title.</p>
<p>Cheers<br />
Xtint
</p>]]></description>
					</item>
		<item>
			<title>Michael3185 on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-37831</link>
			<pubDate>Wed, 01 Jul 2009 11:17:05 +0000</pubDate>
			<dc:creator>Michael3185</dc:creator>
			<guid isPermaLink="false">37831@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Neat idea xtint - I like it. I'm not a bbPress hotshot by any means, and am also busy with my own forum set-up, but I'll keep tabs on this one. There are some superb coders in the forum, and I'm sure you'll get some pointers soon enough.
</p>]]></description>
					</item>
		<item>
			<title>xtint on "How to send forum posts to email"</title>
			<link>http://bbpress.org/forums/topic/how-to-send-forum-posts-to-email#post-37830</link>
			<pubDate>Wed, 01 Jul 2009 09:54:52 +0000</pubDate>
			<dc:creator>xtint</dc:creator>
			<guid isPermaLink="false">37830@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>i need help with creating a plugin that helps send a forum post through email.i have achieved sending  a notification with title of the post and author but i need to also show the contents of the post.Also i need some one to be able to reply to this post through email.Any help please.Am new to bbpress and plugin creation.</p>
<p>Cheers
</p>]]></description>
					</item>

	</channel>
</rss>

