My host has disabled sendmail (because they like to make things a pain in the ass for everyone, apparently), so I have to find workarounds for everything I have installed. This plugin for WP has saved my bacon for my main site, but I haven’t found a solution for bbPress and my php fu is weak.
Hi everyone,
Currently my forum is located in something like:
example.com/dir/forum/
But I want to rewrite it to be like this:
example.com/forum/
Since WordPress can do that, I was hoping bbPress can too, but I’m not sure how. Is there some setting I can change?
Also secondary to that is that if there is no setting for such an option, can I just move the “forum” directory out of “dir” and into the root, and change the “bbPress address” to force it to physically be like “example.com/forum/” or would that screw things up?
Thanks a lot everyone
Hi,
I installed a bbpress + wp thing and something screwed up a little with the bbpress part, but I think I can fix it if someone could please tell me how to change the “bbPress address (URL)” that comes in the General Settings directly. By that I mean is this value stored somewhere in a file or database that I can directly change, rather than through the General Settings menu?
Thanks
that’s what i did, but it doesn’t work. all users that registered with bbpress before the update, are shown as “anonymous”. and also, some of the other users are getting mixed up …
I’am currently working on a Dutch translation file for bbPress, zo maybe today, otherwise today it will be come available
I also get the same error…
I hope the author will come up with a fix, this would be a handy plugin.
Cheers,
Gene
Where can I download futurekind?
Thanks Rune. I actually don’t like to hack admin files… Wyvn’s suggestion did the trick. I just made note of the change so I can do it again when I upgrade next.
Maybe you can submit that for a future version of bbPress.
I have spent the last couple of hours on the forums trying to figure out how to actually do this when the existing blog and forum are currently seperate databases.
My situation is as follows:
– wordpress 2.3 blog with no users (except admin)
– bbpress 0.8 forum with many users
I want to get to a wordpress 2.5 blog and a bbpress 0.9 forum with an integrated database.
I think the steps are:
1. upgrade wordpress to 2.5
2. upgrade bbpress to 0.9
3. then?…. how do I combine the database?
Or can I keep the seperate databases and still get the benefits of combined cookies and users carried from wp to bb and vice versa? If so, how do I bootstrap the wp database with the existing bb users?
Any help out there?
Well, if you like to hack you admin files, you can add the following code to the options-general.php file just after line 143, making this code start on line 144;
<label for="avatars_size">
<?php _e('Gravatar Size:'); ?>
</label>
<div>
<select name="avatars_size" id="avatars_size">
<?php
$selected = array();
$selected[bb_get_option('avatars_size')] = ' selected="selected"';
?>
<option value="16"<?php echo $selected[16]; ?>><?php _e('16 px'); ?></option>
<option value="32"<?php echo $selected['32']; ?>><?php _e('32 px'); ?></option>
<option value="36"<?php echo $selected['36']; ?>><?php _e('36 px'); ?></option>
<option value="48"<?php echo $selected['48']; ?>><?php _e('48 px'); ?></option>
<option value="80"<?php echo $selected['80']; ?>><?php _e('80 px'); ?></option>
<?php
unset($selected);
?>
</select>
</div>
And in the bb-includes/template-functions.php file, after line 1198 you can add this;
$size = bb_get_option('avatars_size');
Then you can change the size in the admin section, and the correct size will show with the posts.
Or you can download the edited files here
—
Rune
This is a tricky problem.
It’s easy to remove the ability entirely to post new topics for all forums (by removing the ability from the “member” role) but to keep a forum visible but not allow a new topic to be created would require intercepting the forum list from the “add new post” sections.
If you can live with not allowing any member to create a new topic you can do this:
https://bbpress.org/forums/topic/only-key-holders-add-topics#post-15339
Then only moderators and above could create topics.
This request comes up at least once a month, someone might try to tackle it someday (but don’t look at me!)
Unlike WordPress I don’t believe bbPress has an easy way to do role management (yet). There is a privilege built-in for bb_current_user_can( 'write_topics' )
which means it is technically possible to control who can start topics by taking away that role privilege from the “member” role.
In theory a small plugin should be able to do this – I’ll take a look at how it might be done as an exercise in learning more about bbPress roles…
Just set up the “user role map” in the “WordPress integration” section of the bbPress admin area.
It seems fixed now but almost sounds like you are running separate user tables when they should both be pointing to the user table in WordPress? Are you certain you have the correct setup in bbPress pointing to WordPress?
And I assume that’s WP 2.5 with bbPress 0.9?
ps. be sure to check out the alternative Kakumei Blue theme (in bbPress 0.9) to match your WP’s blue colors…
Sounds interesting but:
Fatal error: Call to undefined function: bb_option() in wp-content/plugins/bbpress-admin/bbpress-options-admin.php on line 38
Is this for people who has bbPress running INSIDE WordPress, instead of just stand-alone integration?
This is the plugin to do exactly what you want:
https://bbpress.org/plugins/topic/restrict-registration-for-bbpress/#post-173
You might also want to add my “Human Text” plugin to help stop bot (automated) registrations:
https://bbpress.org/plugins/topic/human-test
The first two user registrations I’ve had on my new forum are both using @mail.ru email addresses. Experience with other forums tells me these are probably spam registrations. On the SMF forums I admin I block @mail.ru email addresses from being able to register at all. Is there a way to do this in bbPress? Maybe have them default to Inactive or Blocked depending on the email address used?
I’d like to see bbPress replace commenting in Word Press. Ideally it would just embed as a plugin and look the same as the current commenting but then the comments could be viewed and managed as a forum.
If bbPress was designed to easily embed as a commenting system it wouldn’t have to just be used in WordPress either. I’m currently trying to implement something along these lines where bbPress functions as the comment system on a website so people can comment on our short films through the forum or directly on the website. Each comic/film/whatever will be tied to a separate topic ID and pull related comments. Hopefully it works because I like the way it looks in my head.
OK, solved for the moment but I had to reset the forum’s permalinks to default, which I had originally set to “Name-based”.
Unless there’s a fix for this, I don’t mind using the standard “ugly” permalinks.
Gene
LOL!
Just installed bbPress into my WP 2.5 blog (sub-folder) and using the same database.
For some strange reason, when I click on a forum link, it takes me to my blog with a “page not found error”.
Gene
WordPress is thinking this forum page does not exist., so WordPress throws the 404 but the page is still properly served. It happens only because you’ve included blog-header.php (a normal integrated installation wouldn’t do this).
I think this post covers it (basically, install a WordPress plugin to overcome the problem):
https://bbpress.org/forums/topic/bbpress-wordpress-mu-or-not-leads-to-404-errors-but-pages-still-load#post-13156
Spend a while reading current posts in this forum; it’s your best bet for being prepared. Other than that, it’s pretty straightforward. With integration, be sure you have the same secret key from wp-config.php in your bb-config.php. It’s pretty straightforward.
Thanks,
I uploaded bbPress to a WP sub-folder and will use the same database (backed everything up), before I proceed in installing the forum, any tips so I don’t run into problems?
Cheers,
Gene
to better illustrate my issue, my current code for the profile page is:
if ( avatarupload_get_avatar(ID) ) {
avatarupload_display($user->ID);
} else {
echo bb_get_avatar( $user->ID );
}
which means if uploaded avatar exists then display it, else get gravatar.
but what i really want is:
if uploaded avatar exists then display it, else if gravatar exists then display that, but if neither exists then display the avatar upload default avatar.
Right now it displays gravatar default instead. which isn’t my first choice since avatar upload would give me control over the default image which is better for obvious reasons.