P.S. I wrote a quick and dirty perl script to do a bunch of page retrievals, grep for bbPress’s self-reporting string in the footer, and report median times. Let me know if anybody wants it.
What function do I call to output a permalink to a specific post in a thread? As threads get very long I would like to link to an individual post in the thread. I can’t seem to find this function anywhere. WordPress comments have such a function, does bbpress have it per post?
Don’t re-invent the wheel. WP-Chunk
or Sam Ingle’s Link Truncator for WordPress can be hacked to support bbpress in under 5 minutes. There are probably others too.
Ahhh that auto worked a treat
I’ve used the break-word as well for IE so it doesn’t even need to scroll when words are too long, in FF it just scrolls. Although a plugin to shorten long url’s words etc might be quite cool, like:
http://www.ilovebbpress.com/bla/blab/blalblba/indexnop/123
to
http://www.ilovebbpress.com/bla…/123
If I get time next week I might make one… but don’t quote me on that 
Thanks guys for the help!
Here is my latest redesign of my site.. the site has wordpress and bbpress completely integrated..
there is no bbpress frontpage it shares the wordpress frontpage. the plugins are shared by both bbpress and wordpress.
I have integrated the search also.. try the ajax live search. type and wait.
Here is the link – http://www.adityanaik.com
I will be releasing the last theme ‘sunnyside’ in a few days
let me hear your thoughts.
Ok, I finally got around to some testing. I have disabled almost all plugins and recounted… still the same behavior. However, I was unable to disable “Online List” and “BBPress Private Messaging” because it broke the admin console. So there’s a chance that one of those plugins might be causing this strange behavior.
I cant get this theme downloaded. All thats in the download link is a text file and its not wrote in english so i dont know what it says.
Thanks, CK. I’m a trusting soul, so here you go (on the same server and database):
http://riddle.whsites.net/bbpress/phpinfo.php
http://riddle.whsites.net/bbpress/static.html
http://riddle.whsites.net/cgi-bin/perlinfo.cgi
If I’ve just opened a big security hole, I hope someone will tell me!
I’m paying about $12 a month so this shouldn’t be absolute bottom-of-the-barrel service.
As for the shell: yes, I’m an old Unix guy, I built the site in SSH and vi. There’s no top, w or uptime in my path. If there’s a Red Hat-specific bin directory where I should look, I’ll do so.
I settled on Patrick Hunlock’s wonderful client-side javascript to pull a Yahoo Pipes JSON feed into the page. It doesn’t cache anything on the server, which of course is good for the server but causes a noticeable delay for the user. C’est la vie.
You can see it in action at (please don’t link to this site yet):
http:// muellerfever dot com /news.php
For anyone running 0.8.2.x I bundled this as a proper plugin with some of my other “views” tricks:
bbPress plugin: My Views
optional: install bb-topic-views for the other extra views
Sigh, I guess I’ll tempt fate and install the latest trunk. Though I know it’s going to instantly break half a dozen plugins or more, so I need to do that when I have a full night to dedicate to it.
I really like “views” and keep thinking of more helpful ones I can create that drill down through the data.
You should enquire about the development priorities and directions on the bbPress dev list though, you may get more joy there.
I find it somewhat hilarious that a *forum* development team uses a mailing list for group communications. The year 2000 called – it wants it’s static email posts back!
Since there’s no real way to cache bbpress as static pages like wordpress (and not that there ever really can be, defeats the purpose) if you plan to have anything bigger than a “micro-forum” it’s important your host has mysql caching and optionally but recommend, some kind of php opcode cache (ie. eaccelerator)
Otherwise you’ll be getting emails from your host about your account creating all of the mysql load, etc.
The problem is I think most hosts do not have the two features I mentioned enabled. At least most shared hosting that’s done on cpanel “out of the box” on defaults. They have to be a bit more tech-savvy. And then if they are that clever, sometimes they will “oversell” the box thinking it can do more work than average.
Last but not least, on all shared hosting and VPS, you can have great performance for the moments you test it, but then a “bad neighbour” comes along and your performance will become quite bad for no reasons of your own, until the host does something about it, which can be days. Sometimes even the host can make poor decisions that will cripple your site, like backing it up during times of higher activity or allowing the statistics programs to run on dozens of clients at the exactly same time.
I wish I could afford dedicated hosting myself! Solves most of these problems. But spending $100 per year instead of $100 a month is no contest.
ps. 2.490 – 8 queries is not good at all if you are expecting high traffic – I have mysql cache and opcode cache and get always get under 0.300 for 10-30 queries no matter how many visitors. But I suspect I pay much more for my hosting. My guess is there’s definitely no mysql cache on there or you are paying very very little for that hosting.
lazyweb responds:
http://www.google.com/search?q=insert+rss+into+html
Will any of those approaches work for you?
Use the port of a pretty cool wp server diagnostics plugin. https://bbpress.org/forums/topic/front-page-takes-50-mysql-queries?replies=15#post-9140
Just add define( 'SAVEQUERIES', true ); to your config.php and activate this. Then go to View > Page Source and scroll to the bottom to see the diagnostics. (You can ignore all the stuff about queries. Just check out query time, page time, page render time. This tells you about the server bottlenecks.)
I just checked the numbers on my server, and I had 3.399 once and about twenty minutes later I had 0.436. This sort of thing can vary a lot, especially on shared hosting.
I’m in the process of setting up a bbPress installation (my first) at a new hosting provider (also my first time with them).
Subjectively, things seem a bit slow. Is there a tool for testing response time on a generic PHP hosting provider? Maybe a PHP app for very gentle stress testing?
Failing that, what sort of response time should be considered normal in bbPress’s self report in the comments at the bottom of the page? My top page currently says, “2.490 – 8 queries.” (That’s with a nearly-empty database.)
If there are serious problems with this host, I’d like to figure it out now, before I get settled in and launch.
Thanks.
Oh lazyweb I invoke thee: does anybody have a recommendation for an RSS aggregator to incorporate a feed or feeds into a bbPress site?
For WordPress, of course, there are a zillion plugins that will do the job. And there are generic ones I could adapt to my bbPress. But if somebody has done it, I’d rather benefit from your experience.
Thanks.
@sam
Already tried (as mentioned above) using forums as subdomain and also putting the htaccess details in a vhost.conf file. No joy either way.
@colin
“Quick and dirty” fix seems to do the trick.
Not actually sure if I’m going to go with bbpress anymore, I put a vanilla forum up in the meanwhile and it seems pretty decent. Although integration is nowhere near as slick with WordPress.
er, nevermind me, you’re doing it within bbpress…
Oh if you are trying to do it from an integrated WordPress you’ll need to do this:
<?
if function_exists("get_currentuserinfo") {global $user_ID;}
else { $user_ID=bb_get_current_user_info( 'id' )}
if ($user_ID) { echo '<a href="/forums/profile.php?id='.$user_ID.'&tab=favorites">favorites</a>';} ?>
untested – change /forums/ to whatever your bbpress path is.
Hi!
For my bbpress I need a check against human spam attacks.
For this I just need a random generated question in my language (the one that the spammers cannot speak
) and a check if the postet answert is correct. I tried to implement this into register.php, but my checks are ignored by bbpress. Is there anybody who can give me a hint, who maybe works on the same problem?
I also figured out that I can register twice with the same e-mail adress. How can I check if the adress already exists?
Thanks for your help,
Markus
__ck__
i done what you told but i have got error:
see my script:
http://pastebin.ca/638062
mdawaffe has committed to try and bring the point releases closer together. I believe there are no hard targets set, but it should be better than last time. I would estimate that 0.8.3 will be out within a month, but that is just an estimate. mdawaffe gets pulled from bbPress all the time to do other things.
I can’t talk with authority about the XML-RPC features being added, but they will potentially open up a whole heap of options for people wanting to connect their forums with other forums and blogs. You should enquire about the development priorities and directions on the bbPress dev list though, you may get more joy there.
I just noticed you said something about cache? Is the cache working in the current bbPress release?
Apache processes rewrite directives in the order they are found.
First the main Apache config file is used, then (if they are allowed) the .htaccess files are used in the order they are encountered from the root of the website out through the directories until the final directory that contains the file that is being accessed.
So if you have a page at http://www.example.com/blog/forum, then the order of processing is like:
Apache config
|
+-> /path/to/site/www.example.com/.htaccess
|
+-> /path/to/site/www.example.com/blog/.htaccess
|
+-> /path/to/site/www.example.com/blog/forum/.htaccess
So the “blog” rewrite rules will be assessed first. This means that you may want to place your bbPress rewrite rules in the same .htaccess file as your blog rules, before the blog rules, as they are more specific and should be handled first.
Also, there were some problems with WordPress throwing 404 errors based on what mod_rewrite was doing. This was specifically with version 2.1 I think, so your WordPress may need to be upgraded.