Re: Group forum subscription
Hi Ray,
Here’s what I think is going on. When you create a new topic, bbPress has to go to the BP tables to find out who’s in the topic’s group and then subscribe them to the new topic. It looks like I wrote the code with the assumption that your BP db is accessible by the same mysql user as your bbPress db. I guess that’s probably not the case in some situations. That could be the problem.
On the other hand, the fact that your error says “using password: NO” suggests that no password is being sent at all, i.e. that $bb->user_bbdb_password is coming up blank. I’m not sure what that’s about.
In either case, a quick workaround is to hardcode your bp mysql db username/pw into the plugin. In
$con = mysql_connect(“localhost”,$bb->user_bbdb_user,$bb->user_bbdb_password);
replace $bb->user_bbdb_user with the user and …password with the pw.
Hope that works.