<?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: bbPress 1.0-alpha-6 : Favorites problem</title>
		<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem</link>
		<description>bbPress Support Forums &#187; Topic: bbPress 1.0-alpha-6 : Favorites problem</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 14:20:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/bbpress-10-alpha-6-favorites-problem" rel="self" type="application/rss+xml" />

		<item>
			<title>plop on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-38408</link>
			<pubDate>Wed, 08 Jul 2009 09:31:35 +0000</pubDate>
			<dc:creator>plop</dc:creator>
			<guid isPermaLink="false">38408@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Ok just so you know, about the problem with the meta value :<br />
" if I add another topic to my favs, it doesn't add the id with the previous ones, but overrides the meta_value with the new one", found the bug :</p>
<p>in the functions.bb-users.php , <code>$user-&#62;favorites</code> is used instead of <code>$user-&#62;bb_favorites</code>.<br />
That solves the problem.</p>
<pre><code>&#60;br /&#62;
function bb_add_user_favorite( $user_id, $topic_id ) {&#60;br /&#62;
	global $bbdb;&#60;br /&#62;
	$user_id = (int) $user_id;&#60;br /&#62;
	$topic_id = (int) $topic_id;&#60;br /&#62;
	$user = bb_get_user( $user_id );&#60;br /&#62;
	$topic = get_topic( $topic_id );&#60;br /&#62;
	if ( !$user &#124;&#124; !$topic )&#60;br /&#62;
		return false;&#60;/p&#62;
&#60;p&#62;	$fav = $user-&#62;bb_favorites ? explode(&#39;,&#39;, $user-&#62;bb_favorites) : array();&#60;br /&#62;
	if ( ! in_array( $topic_id, $fav ) ) {&#60;br /&#62;
		$fav[] = $topic_id;&#60;br /&#62;
		$fav = implode(&#39;,&#39;, $fav);&#60;br /&#62;
		bb_update_usermeta( $user-&#62;ID, $bbdb-&#62;prefix . &#39;favorites&#39;, $fav);&#60;br /&#62;
	}&#60;br /&#62;
	do_action(&#39;bb_add_user_favorite&#39;, $user_id, $topic_id);&#60;br /&#62;
	return true;&#60;br /&#62;
}&#60;br /&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>plop on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-38277</link>
			<pubDate>Tue, 07 Jul 2009 10:35:03 +0000</pubDate>
			<dc:creator>plop</dc:creator>
			<guid isPermaLink="false">38277@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Done!
</p>]]></description>
					</item>
		<item>
			<title>Jason Giedymin on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-38200</link>
			<pubDate>Mon, 06 Jul 2009 18:18:36 +0000</pubDate>
			<dc:creator>Jason Giedymin</dc:creator>
			<guid isPermaLink="false">38200@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Flag this resolved plz.</p>
<p>Cleaning the house for V1 issues.
</p>]]></description>
					</item>
		<item>
			<title>plop on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-38170</link>
			<pubDate>Mon, 06 Jul 2009 10:08:22 +0000</pubDate>
			<dc:creator>plop</dc:creator>
			<guid isPermaLink="false">38170@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Ok thanks.
</p>]]></description>
					</item>
		<item>
			<title>chrishajer on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-37979</link>
			<pubDate>Fri, 03 Jul 2009 19:08:37 +0000</pubDate>
			<dc:creator>chrishajer</dc:creator>
			<guid isPermaLink="false">37979@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>At this point, I would suggest upgrading to bbPress 1.0 and troubleshoot from there.  No sense rehashing alpha bugs.
</p>]]></description>
					</item>
		<item>
			<title>plop on "bbPress 1.0-alpha-6 : Favorites problem"</title>
			<link>http://bbpress.org/forums/topic/bbpress-10-alpha-6-favorites-problem#post-37913</link>
			<pubDate>Fri, 03 Jul 2009 10:15:06 +0000</pubDate>
			<dc:creator>plop</dc:creator>
			<guid isPermaLink="false">37913@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Hi all,<br />
I have a bbPress 1.0-alpha-6 running, and I don't know why the favorites link on a topic doesn't entirely work. </p>
<p>When I click on the link "Add this topic to your favorites", it creates a meta on the database "bb_favorites" with the proper id, BUT, the link still shows "add this topic to your favorites" instead of a link to the favorite page.<br />
AND, if I add another topic to my favs, it doesn't add the id with the previous ones, but overrides the meta_value with the new one :/</p>
<p>Is it a known bug or is something wrong with my bbpress ..?
</p>]]></description>
					</item>

	</channel>
</rss>

