Hey guys,
wordpress already has an attchment uploader, doesn’t it? is there a chance to build a plug-in for bbpress using that code?
grz,
jaithn
Prototype is being phased out in both wp and bb I think, in favour for jQuery (18 kB).
I really like Ajax. o/ Where in bb is it being used where it’s not needed? If you’ve got a better implementation, make it and submit on trac (or just propose on trac).
Apparently WordPress allows dots (periods) in usernames as well?! (it did at some point, not sure if it still does but I have users with nicknames like that)
So I had to modify this plugin with a dot
return preg_replace('/[^ ta-z0-9_.-]/i', '', str_replace("%20"," ",$raw));
apparently php is very sensitive as to what order the pattern is in, that dot has to be right there in the sequence or it throws a shedload of errors.
Fourth time is the charm? Ugh. Sorry!
<?php
/*
Plugin Name: Admin Can Post Anything
Plugin URI:
Description: allows keymaster/administrators to post any content regardless of tag restrictions
Author: _ck_
Author URI: http://CKon.wordpress.com
Version: 0.04
*/
function bb_admin_post_anything($text) {
if (bb_current_user_can('administrate') ) {
remove_filter('pre_post', 'encode_bad' );
remove_filter('pre_post', 'bb_encode_bad' );
remove_filter('pre_post', 'bb_filter_kses', 50);
remove_filter('pre_post', 'addslashes', 55);
remove_filter('pre_post', 'bb_autop', 60);
$text=bb_autop(addslashes($text)); // I don't completely understand why this is necessary here but it is
// the following two lines are untested code to allow compatibility with the allow images plugin
// it's safe to remove it's filters because this only happens if admin are trying to post
remove_filter( 'pre_post', 'allow_images_encode_bad', 9 );
remove_filter( 'pre_post', 'allow_images', 52 );
}
return $text;
}
add_filter('pre_post', 'bb_admin_post_anything',
;
?>
I’ve been studying to see if there’s anyway via plugins instead of hacking the code for both WP and BB to consolidate the common javascript routines they both use.
Not only do they load half a dozen scripts at certain times, one of them, prototype.js is 50k in size. But they seem to be common for both.
All we would need is choose a common script path.
I guess it’s possible to
remove_action(‘bb_head’, ‘bb_print_scripts’);
and then plugin your own.
But what kills me is bbPress doesn’t need ANY of those scripts except for thinks like deleting posts to forward correctly and the ajax actions.
I really dislike ajax, especially when it’s used where it’s not needed.
I posted v0.03 on my wp blog
https://ckon.files.wordpress.com/2007/07/admin-can-post-anythingphp.doc
(rename to *.php)
Let me know if the allow images hack works?
Been meaning to do this for awhile, didn’t realise how easy it was. This makes bbPress behave more like WordPress in that admin (keymasters/administrators) can post any content regardless of tag restrictions for the rest of members. This includes images, javascript, objects like flash video player, etc.
<?php
/*
Plugin Name: Admin Post Anything
Plugin URI:
Description: allows keymaster/administrators to post any content regardless of tag restrictions
Author: _ck_
Author URI: http://CKon.wordpress.com
Version: 0.02
*/
function bb_admin_post_anything($text) {
if (bb_current_user_can('administrate') ) {
remove_filter( 'pre_post', 'encode_bad' );
remove_filter( 'pre_post', 'bb_encode_bad' );
remove_filter('pre_post', 'bb_filter_kses', 50);
$text=addslashes($text);
$text=bb_autop($text);
}
return $text;
}
add_filter('pre_post', 'bb_admin_post_anything',9);
?>
Hello,
The fault was found and suggested to me at wordpress forum and it is due to magic quotes runtime being turned on.
I’d strongly recommend as an interim you modify your installation instructions to state clearly that magic quotes runtime should be turned off for the software to work.
And for any future stable/svn release you should perform a check on magic quotes and code around this issue.
Neil.
I bet they mean like in wordpress where the cookie will be set for a year instead of a week?
What’s the bbpress cookie default, I’ll have to go look at the code.
I get around this problem by forcing the wp login from everywhere.
There was another request for this feature here:
https://bbpress.org/forums/topic/remember-me-option-at-login?replies=3
I’ve yet to see forum software that makes it hard for members to use/post?
My problem is not really spam but a bunch of pre-teens running around and posting massive, rapid, rabid chats with each other like it’s a chat room. bbPress completely lacks any management tools to deal with that. If you ban them, they can re-register with a different nickname in less than 30 seconds. If you ban their ip, they just use a randomizing proxy.
On my wordpress side I have it completely programmed with stop-words, how fast each member can post and decent moderation tools. But the forum, which from the start needs those abilities the most, does not have them.
This is so simple I bet I am duplicating what someone else has already done. I am not sure why this isn’t in bbPress by default and it doesn’t even begin to address what I would consider basic moderation tools but it’s a start.
Install and check under “content” submenu. Why the posts menu =deleted posts in bbpress’s default I have no clue.
<?php
/*
Plugin Name: bbPress Recent Posts
Plugin URI: http://bbpress.org/plugins/
Description: shows most recent posts with (extremely limited) moderation options
Author: _ck_
Author URI: http://CKon.wordpress.com
Version: 0.01
*/
function recent_posts_admin_page() {
if ( !bb_current_user_can('browse_deleted') ) {die(__("Now how'd you get here? And what did you think you'd being doing?"));}
global $bbdb, $bb_posts, $bb_post, $page;
$bb_posts=get_latest_posts(0,$page);
$total = bb_count_last_query();
?>
<h2>Recent Posts</h2>
<ol id="the-list">
<? bb_admin_list_posts(); ?>
</ol>
<?php echo get_page_number_links( $page, $total );
}
function recent_posts_admin_menu() {
global $bb_submenu;
$bb_submenu['content.php'][] = array(__('Recent Posts'), 'use_keys', 'recent_posts_admin_page');
}
add_action( 'bb_admin_menu_generator', 'recent_posts_admin_menu' );
Well akismet support can be added to virtually any forum or blog software so that’s not really a claim to fame. I tried installing the moderate posts plugin but it’s not working right and preventing all posts from being displayed.
There’s also no way to tie any kind of “bad words” list into auto-moderation, and then how do you find any list of moderated posts? Sigh. All of this is already in wordpress so it’s really strange to me it’s not in bbpress by default.
Well I’ll stop here and won’t tie up this particular topic with this further since you can’t move individual posts to other/new topics with bbpress (another missing moderation need).
Ah thanks Trent, I thought I saw that list weeks ago but couldn’t find it again.
I’m still not convinced bbpress’s “selling point” is speed or management as other forums seem just as lightweight and definitely more robust. But the biggest problem on any large forum is the sheer number of people doing searches at any given time.
BBpress kinda cheats in this regard (keeping search overhead down) as it tries to enforce tags over searches (I’m not a big believer in user submitted tags when you have a lack of quality control over your members) and it’s search feature is so poor that no one will seriously use it right now (it cannot find whole words, limit by member, limit by forum, limit by subject, etc. etc. etc.)
To me, I thought bbpress’s benefit was WP integration and I was familiar with the functions used after months of hacking wordpress. Wasn’t convinced the wordpress forum plugins were going to keep evolving or be flexible enough.
I guess my problem is jumping in too soon, waited a year to add a forum to let projects like this mature but it’s still a bit early. By the winter the forum I setup should be as big as technorati – it definitely needs better management features.
“The advanced moderation and spam protection features of bbPress save the WP mod team tons of time.“
What advanced moderation features? Am I missing something? You have to actually go into each topic, go to each post and manually moderate. It kinda blows me away that there’s nowhere in the bbpress admin panel to see the last 50 posts like in wordpress. I’m coding the feature for myself right now…
The big ones:
Examples
As well, wordpress.com is a huge forum as well as the wordpress MU forum is getting there. Each of the wordpress forums have 2,000+ new registrations each day. Pretty large examples.
Trent
Wait, there are numerous people installing bbpress as their only website program without having WP installed? Why? It’s such an early, early beta and has virtually no administration features. Any mature forum program can blow it away right now. Are they masacists or just running really tiny, micro forums?
Just out of curiosity, what are the largest known bbpress forums, other than the wordpress site and here? I suspect the forum I’ve integrated is probably in the top 10 since it has over 100 daily active users (with 800+ registered from the wordpress config).
BBpress has no mass search/delete feature, unlike several wordpress plugins that are available. Even the upcoming search feature that was posting on the blog doesn’t seem to have an “action” ability, just search, which doesn’t make sense, so maybe there will be more to it.
Trying searching and deleting 50+ posts by hand, not worth it.
Recount will only update counts, not pointers.
I am just about finished with a new function to do this however.
Right now it only updates the last poster id and name, the trickiest part was figuring out the proper mysql expression to grab the last item while grouping by topic_id. Took an hour of research.
But in fact my routine could be extended further to rebuild the entire topics database from scratch if need be since all the data is in the posts and it’s just kept in the topics table for speed.
I just find it surprising there isn’t such a routine already and I am hoping I am not duplicating efforts already done.
An integration forum does sound pretty good.
Just wanted to share that I’d had some success with integrating some simpler wordpress plugins into bbpress by creating some functions to mimic get_settings() and update_options()
Since bbpress fortunately uses differently named functions for the same actions, I was able to make them point to the wordpress table instead of bbpress and fetch the proper options that the plugins were calling for.
Not sure how useful this would be to anyone else and it’s not for novices since other little tweaks are usually necessary and admin menus are definitely not supported, but it’s nice to have the integration ability.
ps. maybe we need a separate integration sub-forum
I followed the detailed steps in the documentation for installation and also those for integrating with wordpress. After changing the config-sample to config.php and uploading the contents of the unzipped bb folder to a subdirectory (‘forums”) in the main word press directory I attempted to load the install.php script. I use IE7 and I tried both opening the file using the option on the File menu and also calling the file through the http protocol. In both cases all I get is a blank page. I don’t get any error messages, not even from my server. Thus, I have no clue what to look for or where to look to solve the problem. I’d appreciate some help in the detective work. Thanks.
Mike R.
I have recently installed bbpress and then created a new directory named my-plugins, where I have also placed bbpress integration.
The problem is whilst I can SEE (thus activate bbpress integration plugin) I can NOT see display-name.php plugin under site management. I have definitely uploaded it.
Ok, solved that as well 
Now, for my next problem. What do I type so it knows when I’m browsing a forum page? If you look at my site I have highlighted tabs for my different sections. I need the forum tab to be highlighted while in the forum and for the start tab not to be! I use is_home for the start tab
http://www.doublepeace.se/forum
Please help!
Hi all
I am interested in moving my forum from Punbb to bbpress as my site is powered by WordPress.
The only converter that I could get my hands on is the phpbb converter. However I seem to be encountering errors whilst attempting to import phpbb database.
The converters do not seem to have been updated and are stated to be compatible with the earlier 0.73 release.
Where can I get (download) earlier releases on bbpress especially version 0.73. I intend to update to the current release as soon as I import all of my posts.
Thanks in advance.
Thank you for the help! Actually I solved it just now, I had to put
global $current_user; echo $current_user->ID;
to get it right!
Heh, thanks for the compliment but I am completely self-trained and rather unprofessional in my code (translation: I’d make a mess)
I just seem to have a knack at code, I learn very quickly from examples and can figure out how to apply them. Also, exhaustive hours at hacking pre-2.0 wordpress taught me a lot.
ps. what “serious” issues – I might have a go… maybe…