I have kept reading this forums for about a month. I saw many similar processes of solving the same problem.
Not long ago, I asked Sam Bauers a question about bbpulp.org on IRC:
<livibetter> can we (users) expand it? like FAQ, troubleshooting, theme modifications?
<livibetter> there are many questions asked again and again on forums. If we can systematically organize a collection of these, then may be easily to give a solution for their questions.
<sambauers> Yeah, go ahead.
<sambauers> It is a wiki after all 
<sambauers> Although it was focused on being a developers resource.
<livibetter> Thanks! I will post a post for this, and hope many other user will do the same thing.
<sambauers> If you wanted to look at the actual bbPress.org documentation
<sambauers> you are welcome to suggest additions and edits of the pages there
<livibetter> I see
<sambauers> It makes more sense to compile FAQs there for instance
<sambauers> And installation/integration notes
<sambauers> Which will soon need updating anyway
<livibetter> means 0.8.4 coming soon?
<sambauers> Probably not until WordPress 2.4
If we can collect and organize these solutions well, we can be more easier to help. I did a small change on the main page, not really start to write something. I took a while to write those new entries, it’s harder than I can imagine. I can’t make them systematic. And that’s still not good, but collaboration can correct mistakes and build a great stuff.
So, Let’s collaborate!
I remember there is a post about this. Anyway, I made one.
Put this in plugin folder: http://bbpress.pastebin.com/f271761bf , use any filename you like
And this to register-success.php
of template:
<?php
global $STP_password;
if ($STP_password)
echo "<p>Your password is: $STP_password</p>";
?>
Activate plugin and test.
Is there a way to print out the password after someone registers instead of sending an email? My web host won’t allow sending emails through web pages. I looked at topics already written but I was unable to implement the code because I have version 8.3. If anyone can give me the code I have to add or modify, that would be great.
Thanks,
Sue
The problem is; I’ve never explicitly told bbPress to connect via a local socket, and since I’m not a Unix expert, I didn’t really comprehend the error message. I now understand a bit more of what it says and that I should instruct bbPress to connect via TCP/IP instead. However, isn’t this something bbPress should have available as an option in the config.php
file somehow? Or even just as an automatic switch it figures out based on whether BBDB_HOST
is set (or is different from localhost
) or not?
Yes, you surely can’t, cite from man mysql
· --socket=path, -S path
For connections to localhost, the Unix socket file to use, or, on
Windows, the name of the named pipe to use.
No remote IPC, if you can communicate via TCP/IP from remote, why use unix socket?
There are some decent programs for legal mass mailing that you can use. For Mac, there’s a great program called MailDrop that will import email addresses from a spreadsheet. The email service, Constant Contact, does the same thing. Just export from PHPMyAdmin and import the info into your bulk mail program.
A plug-in would be easier, that’s for sure!
> I suspect bbPress of having hard coded a connection to localhost and thus configuring define(‘BBDB_HOST’, ‘…’) to be something else than localhost doesn’t really matter.
That’s simply not the case.
Yeah, I guess it would work for now, we only have a few forums. But I’m reluctant to put that kind of thing into the templates, where it’s hard to update, and prone to typo problems, etc., if the conditional code gets accidentally mucked up.
Is there any way to add arbitrary meta attributes to things in bbPress, the way you can add them to posts in WordPress?
Check Step 2 of https://codex.wordpress.org/Installing_WordPress#Detailed_Instructions
It’s written for WordPress, but you can use it for installing bbPress.
You could extract all the email addresses from the database with a tool like phpMyAdmin. I don’t know of a plugin that does this. If it’s a onetime thing, I would just grab the email addresses from the database with a query like:
SELECT DISTINCT user_email
FROM bb_users
ORDER BY user_email ASC
With all the email addresses, then just send out a mass email with your email client putting their email addresses in the BCC field.
Are you looking to do this regularly, and are you thinking this should be a plugin? I guess you’d need to know if the installation were integrated or not, then query the correct table, and also if it is an integrated installation, you’d need to separate out the bbPress registrations from the WordPress registrations.
If you are going to do something like bb_installation_ and bb_plugins_, it sounds like you want subforums. You would have one installation in a directory like /forums/ then you create subforums in your admin panel.
You would NOT create multiple $bb_table_prefix =
lines – that wouldn’t work.
sambauers, is there an ETA on that? I’m not trying to rush it, just wondering.
I just noticed I gave you wrong link to rss.php
This is the correct one: http://llbb.pastebin.com/f1aee01cf
The generated result, when you navigate to /wrdp2/bbp1/rss/
.
The thing starts with <?xml
What is that line of generated RSS? <link></link>
? (posting completely to pastebin would be better to find out)
Have you set $bb->uri
in your config file?
What browser are you using?
Unfortunately, not only they aren’t in the DB, but I don’t have a usable backup either (the last full backup I have is from about two weeks ago and the daily backup has the same thing as.. what i see).
Another weird thing is that some days ago, in my Akismet spam list I found some posts from way back (that weren’t spam, but.. why check them if they were already “accepted” ?).
So I suspect that something might have triggered a full check and it automagically deleted what it considered spam or something..
So, I lost about a month and some of posts
livibetter, if you can separate the logic code from the presentation it’d be even better. You can always put a hook into the template and put the code into a plugin, or use the query
filter to find when the topics are being looked for.
!defined('DB_NAME')
is redundant, since you should be only one can code on your files.
I will use
if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
require_once('../wp-blog-header.php');
Anyway, you did a great job!
PS. could you show us your forums?
Here is a quick workaround I just figured out, but I’m not sure this is state of the art:
Instead of
require_once(dirname(__FILE__) . '/../wp-blog-header.php');
in config.php, I put
`if ( !defined(‘DB_NAME’) && !strstr($_SERVER[“PHP_SELF”],’bb-admin’) )
require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’); `
There is still a set of problems with this. The value of $this->$dbhname
isn’t checked before it’s used in mysql_get_server_info()
on line 75 in db-mysqli.php
. If the connection fails, the error won’t be echoed to the user because the use of @
on the mysql_connect()
call and then the script just continues, assuming the connection went fine, which in my case, it din’t. Also, the call should be to mysql<b>i</b>_connect()
and not mysql_connect()
, as far as I can understand.
The patch doesn’t fix these problems and they need to be fixed for bbPress to work on my host. I’d write these comments on the associated ticket, but there doesn’t seem to be any way to register or comment anonymously there.
I have the same problem and overwriting db-mysqli.php
with db.php
didn’t help. Just for completeness, here’s the error messages I encounter:
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/<snip>/bbpress/bb-includes/db-mysqli.php on line 73
I suspect bbPress of having hard coded a connection to localhost
and thus configuring define('BBDB_HOST', '...')
to be something else than localhost
doesn’t really matter. I don’t have MySQL and Apache installed on the same physical server, so I have to access MySQL through a hostname and thus localhost
won’t work.
This morning when I logged in, I noticed a big chunk of the posts on my forum were gone. I still have posts from the beginning and some recent ones, but a large batch of posts from the middle was lost 
Any ideas on why or how I could get them back ?
You really, really, really need to upgrade your WordPress:
<meta name="generator" content="WordPress 1.5.1.2" />
Until then, I think it would be silly to try and fix any errors in your install.
Current WordPress version is 2.3.1: 1.5.1.2 was released 2.5 years ago and has security issues as well as limited functionality.
http://blog.taragana.com/index.php/archive/serious-security-vulnerabilities-of-wordpress-1512-and-below/
Here is a temporary solution:
rss.php
: http://llbb.pastebin.com/f5c1a8a37
rss2.php
of template: http://llbb.pastebin.com/f24cd6fd3
If you need the last post content of each topic, please find a recent topic Excerpt
and combine this with it.
Edit: Oops… just find out you are also the starter of that topic.