Search Results for 'code'
-
Search Results
-
All,
I’ve posted a few things on the forums about odd behavior I’ve seen – href attributes in a tags getting stripped, slashes not getting stripped, etc.
I’ve confirmed that these problems are due to the WordPress integration. I am running WordPress 2.1 and bbPress 0.75 and followed the documentation to do the integration.
When I stop loading wp-config in my bbPress config, the slashes get removed and href attributes stay in posts.
I’m still digging, but part of this problem is overlap between WordPress and bbPress. The docs talk about a constant WP_BB that tells the code there are possibly conflicting APIs out there. Setting it causes bbPress to use the kses code from WordPress instead. WordPress 2.1 uses kses v0.2.2 while bbPress ships with v0.2.1. My guess is something changed between the two that bbPress doesn’t handle.
As for the slashes in front of apostrophes, it MAY be part of it – I’m not sure yet if kses is used to strip slashes. I didn’t think kses got called except during posting, not during viewing. There is another library from WordPress that bbPress uses in integration mode (l10n) for localization – not sure if this is involved in anyway (doubt it)
So if you’re seeing weird behavior – it may very well be intergation. But the good news is it doesn’t seem to be overly difficult to fix. Still digging to find the ‘right’ way (though as a hack for the slash problem, you can include a stripslashes call in template-functions:
function get_post_text() {global $bb_post;
// Hack to strip slashes until WordPress integration is fixed
return stripslashes($bb_post->post_text);
}
Anyway – just an FYI. I’ll dig more into the kses href issue and post if I find anything.
Topic: Send Post takes 45 seconds
When viewing pages on my forum, the pages load relatively quickly and normally. When submitting a new post, or editing an existing post (as admin) after hitting “send post” there is a 45 second delay. This happened once before (on Jan 16, if it matters) but appeared to go away on its own. Now, it’s back, for the past 12 hours or so. Every post that is submitted has a 45 second delay. The display of the page happens fine:
0.986 - 13 queriesis one example.It’s just new posts, new topics or edited posts that have the 45 second delay. Setting the akismet key to FALSE did not improve the response time. This is a new problem. The forum software was fine for a couple months and now has this problem.
Also, I’m using 0.73. I know I need to upgrade to 0.75, but I was kind of waiting for 0.80, and the fact that 0.73 has been running fine for a long time, with this problem just cropping up makes me think it’s something else. Of course, I will upgrade if you think it will help.
Thanks
Topic: Plugin: bbMenu 0.1 beta
Topic: Missing Template Function ?
Hi
Probably me being blind, but I could find a function that returned the post authors website url.
In my theme I didn’t want the username to be a hyperlink (in post.php), I wanted to add buttons, for profile, website, & PM.
I wrote one to get my tests working.. but is there an “official” way ?
function post_author_url() {if ( get_user_link( get_post_author_id() ) ) {
echo get_user_link( get_post_author_id() ) ;
} else {
bb_get_option('uri');
}
}
Hi!
First off all, thank you very much for this great piece of code!

We’re using bbpress as forum for our citizen journalism project “Bürgerzeitung Köln” at http://bz.koeln.de. Because our users prefer german language, we decide to do a translation. And of course we will make it public and available for everyone.
So, as ‘only’ 133 translations are waiting to be done, there should be a public Alpha availabe by the end of this week. It will be a “Sie”-Version, but it shouldn’t be a problems doing a “Du”-Version as well, later.
Greetz, Sven

