Crowspeaker, would you mind editing a core file? If you can edit line 257 of bb-includes/capabilities.php to this:
$this->cap_key = 'foo_capabilities';
Then save/publish a post as you always do and see if the entry foo_capabilities
is created?
That would bizarrely mean that the BB_User has an ID but no capabilities.
Oh this is driving me crazy.
Every so often, the private forum settings reset back to open to all and expose the moderator forum to everyone. Not good.
Until this bug is found I need to know how to hardwire a forum by number via code to always be moderator’s only.
update: I hardwired private_forums_custom_get_options, adding
if (!bb_current_user_can("moderate")) {$private_forums_for_user[8] = "MODERATOR";}
This should make sure no matter what, #8 stays private
Hopefully you can find the bug soon… it might even be a bbpress core bug which is scary… then again, your settings are the only ones that seem to reset?
fel,
I posted this on the plugin in page as well:
The upgrade did not fix my problem. Trying to post with default forum left blank failed to create a post in BBpress. Posting with a default forum would post only to that forum (no override on the writing page). User_meta with the key capabilities still being created.
Sorry.
I’m now getting a median response time of about 0.125 seconds for 8 queries on the top page and 0.205 seconds for 12 queries on a topic page.
That’s like night and day compared to what you had before. It was taking almost a full second in some cases, look at the bottom source of the static.html !!!
Now can you believe most shared hosting environments have mysql cache turned off by default!!! Even your VPS neighbours may have it turned off which is causing high disk load that’s affecting you. This is where all those who claim how VPS is superiour are wrong. Disk access is the achilles heel of VPS (and shared hosting).
Next performance improvement you can do is install eaccelerator. Though it’s nowhere near as easy as editing mysql and restarting services.
Do you know how much guaranteed ram you have on your vps? Because the mysql and eacellerator cache will eat into that. If you have less that 128mb it will limit the sheer number of simultaneous connections you can have. Though for your needs I don’t think it’s a big deal unless all the search engines start scanning you at once.
ps. don’t worry any more about mysql tuning and phpmyadmin status reports, it’s really all you can do for now – the rest is a limit of how wordpress/bbpress works and can’t be avoided
pps. most of your pages are now coming up in 1.5 seconds for me when they were taking up to 6 seconds before – there are still some weird delays sometimes though which must be OS loads
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