<?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: Why is integration so troublesome?</title>
		<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom</link>
		<description>bbPress Support Forums &#187; Topic: Why is integration so troublesome?</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 16:24:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/why-is-integration-so-troublesom" rel="self" type="application/rss+xml" />

		<item>
			<title>abdessamad idrissi on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-77831</link>
			<pubDate>Wed, 01 Dec 2010 11:36:25 +0000</pubDate>
			<dc:creator>abdessamad idrissi</dc:creator>
			<guid isPermaLink="false">77831@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I run in the same proble as I installed bbpress prior to wordpress, so i created a plugin to handel the transaction:<br />
<a href="http://bbpress.org/plugins/topic/bb-to-wp-users-copier/" rel="nofollow">http://bbpress.org/plugins/topic/bb-to-wp-users-copier/</a></p>
<p>hope it helps.
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18137</link>
			<pubDate>Mon, 11 Aug 2008 10:06:31 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">18137@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>This plugin is meant as a temporarily workaround until the bug can be fixed in WordPress - it will replace "anonymous" with the user login.<br />
<strong>Install it on the WordPress side:</strong><br />
<pre><code>&#60;?php
/*
Plugin Name: changes anonymous to member&#39;s login if display name missing  (plugin for WordPress)
*/
function no_anonymous_members($author) { // this is a WORDPRESS plugin, not bbPress
global $comment;
if (empty($comment-&#62;comment_author) &#38;&#38; !empty($comment-&#62;user_id)) {$user=get_userdata($comment-&#62;user_id); $author=$user-&#62;user_login;}
return $author;
} add_filter(&#39;get_comment_author&#39;, &#39;no_anonymous_members&#39;);

if ( !function_exists(&#39;get_userdata&#39;) ) :
function get_userdata( $user_id ) {
	global $wpdb;

	$user_id = absint($user_id);
	if ( $user_id == 0 )
		return false;

	$user = wp_cache_get($user_id, &#39;users&#39;);

	if ( $user ) {
		if (empty($user-&#62;display_name)) {$user-&#62;display_name=$user-&#62;user_login;}
		return $user;
	}
	if ( !$user = $wpdb-&#62;get_row($wpdb-&#62;prepare(&#34;SELECT * FROM $wpdb-&#62;users WHERE ID = %d LIMIT 1&#34;, $user_id)) ) {
		return false;
	}
	_fill_user($user);
	if (empty($user-&#62;display_name)) {$user-&#62;display_name=$user-&#62;user_login;}
	return $user;
}
endif;
?&#62;</code></pre>
<p>(The real answer of course is to insert the user_login when the comment is posted, however I cannot find a suitable hook in WordPress's <code>comment-template.php</code> so I am doing it by completely replacing the get_userdata function  in <code>pluggable.php</code>)
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18136</link>
			<pubDate>Mon, 11 Aug 2008 09:19:37 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">18136@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I guess I can create some code to fix the display name issue in existing databases. Give me a few minutes.</p>
<p>update: actually it's as simple as this in phpMyAdmin:</p>
<pre><code>UPDATE wp_users SET display_name=user_login WHERE display_name=&#39;&#39;</code></pre>
<p>or via a mini-plugin:<br />
<pre><code>&#60;?php
/*
Plugin Name: Fix Anonymous Members
*/
function fix_anonymous() {global $bbdb;
$bbdb-&#62;query(&#34;UPDATE $bbdb-&#62;users SET display_name=user_login WHERE display_name=&#39;&#39; &#34;);
} add_action(&#39;bb_init&#39;,&#39;fix_anonymous&#39;);
?&#62;</code></pre>
<p>save as <code>_fix-anonymous.php</code> (with leading underscore)<br />
you only need to upload and run bbpress once with it loaded (no activation required) and then delete the plugin or it will slow down bbPress.</p>
<p>I am now writing a WordPress plugin to fix this without having to duplicate all the names in the table which is a horrendous waste of space.
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18135</link>
			<pubDate>Mon, 11 Aug 2008 09:06:24 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">18135@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Well we know what causes "anonymous" to show up, it's because bbPress is not creating the display name for the user when the user registers on the bbPress side and then goes to use WordPress.</p>
<p>The question is, why is this suddenly happening when bbPress is supposed to create it already. This might be a question for Sam - but I hope he can reproduce the problem.</p>
<p>Did you add the above code to insert the display name?</p>
<p>I hope I didn't lead you wrong by implying you should try 2.6 because that will be incompatible with bbPress 0.9<br />
2.6 has compatibility with bbPress 1.0 alpha but a few plugins won't work with the alpha yet (like bb-topic-views)</p>
<p>Oh and the display name persists in 1.0 alpha and is on line 487 in pluggable. I've filed a trac report:<br />
<a href="http://trac.bbpress.org/ticket/922" rel="nofollow">http://trac.bbpress.org/ticket/922</a>
</p>]]></description>
					</item>
		<item>
			<title>mciarlo on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18117</link>
			<pubDate>Sun, 10 Aug 2008 15:33:17 +0000</pubDate>
			<dc:creator>mciarlo</dc:creator>
			<guid isPermaLink="false">18117@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>With 2.6 I still have anonymous names =(
</p>]]></description>
					</item>
		<item>
			<title>mciarlo on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18116</link>
			<pubDate>Sun, 10 Aug 2008 15:19:58 +0000</pubDate>
			<dc:creator>mciarlo</dc:creator>
			<guid isPermaLink="false">18116@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I couldn't tell you, but I am using bbPress 0.9.0.2 and WordPress 2.5.1.</p>
<p>I am going to update to 2.6 and see how it goes...
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18083</link>
			<pubDate>Sat, 09 Aug 2008 06:55:24 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">18083@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>It only affects posts made afterwards, not existing posts but some easy php/mysql code could fix existing posts.</p>
<p>But I could have sworn this was fixed in bbPress 0.9 with the WordPress Integration section built in. It should give the users a WordPress role and display name. Actually, WordPress should create the display name itself if it sees a user name without a display name. I wonder if this is a WP 2.6 issue which should not be used with bbPress 0.9
</p>]]></description>
					</item>
		<item>
			<title>mciarlo on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-18072</link>
			<pubDate>Fri, 08 Aug 2008 16:59:04 +0000</pubDate>
			<dc:creator>mciarlo</dc:creator>
			<guid isPermaLink="false">18072@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Does the fix apply to comments made on WordPress before the fix is implemented or does it start after?
</p>]]></description>
					</item>
		<item>
			<title>Detective on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17451</link>
			<pubDate>Sun, 20 Jul 2008 17:13:15 +0000</pubDate>
			<dc:creator>Detective</dc:creator>
			<guid isPermaLink="false">17451@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>"Glad you got it working but I really dislike "display names" and I think it's the worst concept in WordPress. Very bad idea to allow users to spoof other names. Even the "impostercide" plugin doesn't solve all the issues. No other blog/forum system has such a quirky concept."</p>
<p>I think the same. In a forum it doesn't make much sense. What if i want to send a private message to a user ? If he changes his display name and avatar it could be very hard to find who he really is. It shouldn't be allowed in a forum with a lot of users, it could get extremely chaotic.
</p>]]></description>
					</item>
		<item>
			<title>Anonymous on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17393</link>
			<pubDate>Thu, 17 Jul 2008 15:18:33 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">17393@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thanks for the advice _ck_. i'll attempt to make a plugin for this fix. Yeah, it seems kind of strange that their are 4 different fields being used to identify users and is an obvious security issue when it comes to social engineering.
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17392</link>
			<pubDate>Thu, 17 Jul 2008 15:13:14 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">17392@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>If you are changing a function in pluggable.php, the good news is you do not have to change the core. Just copy the function to a new plugin and edit it there. The plugin will load before "pluggable.php" and superceed the core function. No core edits required.</p>
<p>Glad you got it working but I really dislike "display names" and I think it's the worst concept in WordPress. Very bad idea to allow users to spoof other names. Even the "impostercide" plugin doesn't solve all the issues. No other blog/forum system has such a quirky concept.</p>
<p>BTW make sure you do NOT use the "Display Name" plugin for bbPress. It has a great deal of issues with other plugins and causes some weird behavior.
</p>]]></description>
					</item>
		<item>
			<title>Anonymous on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17391</link>
			<pubDate>Thu, 17 Jul 2008 15:06:18 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">17391@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Sorry, didn't see you post there _ck_. I appreciate the work and effort you guys are putting into things. I've used bbPress successfully in the past... see <a href="http://www.foronemoreday.co.uk/" rel="nofollow">http://www.foronemoreday.co.uk/</a> which runs a bbPress backend.</p>
<p>Also I'll take another look at my integration settings but i've been through it a lot already trying to get it to work today.</p>
<p>Cheers again!<br />
KJ
</p>]]></description>
					</item>
		<item>
			<title>Anonymous on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17389</link>
			<pubDate>Thu, 17 Jul 2008 15:03:28 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">17389@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Well I fixed it, if anyone (incl. developers) are interested. Unfortunately it requires modifying a line of core application code...</p>
<p>pluggable.php in bb-includes</p>
<p>Line 502<br />
	$bbdb-&#62;insert( $bbdb-&#62;users,<br />
		compact( 'user_login', 'user_pass', 'user_nicename', 'user_email', 'user_url', 'user_registered' )<br />
	);</p>
<p>Replace with</p>
<p>	// bbPress / WordPress bug fix added display name to wordpress<br />
	$display_name = $user_login;<br />
	$bbdb-&#62;insert( $bbdb-&#62;users,<br />
		compact( 'user_login', 'user_pass', 'user_nicename', 'user_email', 'user_url', 'user_registered', 'display_name' )<br />
	);
</p>]]></description>
					</item>
		<item>
			<title>_ck_ on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17387</link>
			<pubDate>Thu, 17 Jul 2008 14:38:32 +0000</pubDate>
			<dc:creator>_ck_</dc:creator>
			<guid isPermaLink="false">17387@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>If you are getting anonymous users, I suspect you haven't setup integration properly and they are not sharing the same user table.</p>
<p>As far as your other observations (and I felt he same way in the beginning too) you have to realize that (easy) integration was only a priority starting with 0.9</p>
<p>(you can see how <a href="http://bbshowcase.org/forums/topic/better-bbpress-wordpress-integration-the-missing-faq">complicated the process used to be under 0.8 here</a> - note most of that is not needed now)</p>
<p>Until 0.9, bbPress was just something that ran wordpress.org for Matt and there was no attitude to make integration work. There were tons of problems with usernames etc. and all integration had to be done manually with lots of plugins to fix things.</p>
<p>Then attitudes changed when Matt got funding and decided to use the bbPress code to power TalkPress (essentially forums for users on WordPress.com)   Sam and MDA have done a great deal of work to make integration work better but it definitely has a way to go (and should become painless and super-easy IMHO).</p>
<p>So 0.9 has made integration easier but keep in mind bbPress is not even 1.0 yet, so officially it's not even a released product. The radical cookie changes in 2.6 will take awhile for bbPress to catchup, it's always been that way.</p>
<p>ps.  if it's not obvious, I am in no way officially associated with Automattic/WordPress/bbPress.  Just a plugin developer. And I am not paid. My opinions are definitely just my own and not any kind of official statement.
</p>]]></description>
					</item>
		<item>
			<title>Anonymous on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17385</link>
			<pubDate>Thu, 17 Jul 2008 14:28:19 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">17385@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>From what I can tell the anonymous issue is because users that register through bbPress get added to the wp_users table but the display_name field is left empty. Where do I change the query to put the user_nicename into the display_name on registration, like WordPress does? I'm not sure why bbPress doesn't do this automatically.
</p>]]></description>
					</item>
		<item>
			<title>Anonymous on "Why is integration so troublesome?"</title>
			<link>http://bbpress.org/forums/topic/why-is-integration-so-troublesom#post-17382</link>
			<pubDate>Thu, 17 Jul 2008 13:30:44 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">17382@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I'm not meaning to be rude or anything but I'm struggling to understand why two bits of software made by the same company are so hard to integrate? I've never managed to get integration working fully and I always get to the point where users who registered through the forum post on the WordPress blog show up as Anonymous... which basically renders the whole process pointless. I've managed to get WordPress and vBulletin to integrate seamlessly, but not bbPress.</p>
<p>bbPress and WordPress are both great pieces of software in their own right, but when it comes to integration with each other they are pretty weak. For example, the new bbPress isn't compatible with WordPress 2.6 because of an issue with cookie management in WordPress... for the integration to work we now have to wait for bbPress to release an update which according to a moderator on here will be a while away.</p>
<p>There are also so many unsolved integration threads here that it's very difficult to find any one collection of possible solutions. I appreciate the amount of work that goes into this kind of software and time required to provide support. I'm just feeling a bit frustrated :(
</p>]]></description>
					</item>

	</channel>
</rss>

