ok, you’ll need to add the following to your functions file
//this function removes the "this topic contains..." and "this forum contains..." text
function no_description ($retstr) {
$retstr="" ;
return $retstr ;
}
add_filter ('bbp_get_single_topic_description', 'no_description' ) ;
add_filter ('bbp_get_single_forum_description', 'no_description' ) ;
//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'Your account has the ability to post unrestricted HTML content.' ) {
$translated_text = '';
}
if ( $translated_text == 'Oh bother! No topics were found here!' ) {
$translated_text = '';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
I’ll have to take a closer look at this as I have thought/presumed that all vBulletin v3.x installs include the ‘topic tags’ table tagthread irrespective of if they are used or not.
That said because of that error the import stopped, the good thing is that if you click ‘Start’ again it will resume from where it left of, in this case it will start importing your ~300,000 replies. (Just ensure you use the same settings for the import as your outlined above).
I’ll try to get to this on the weekend whilst I’m updating many of the other importers 🙂
Hi!
I use the 1.7 version.
Listen… When I red your last message, I began to make a clean installation of my bbPress forum with Private Groups plugin on a server (I developp on localhost) in order to give you an access and to make it easier for you to check what should be wrong with the plugin.
At the beginning, everything seemed to work correctly (without any bug)!
Then I changed the slug of my 2 forums (slug? I don’t know if it is the right word in english. I mean, the name that is directly used in the permalink).
… and issues appeared!
– When no top level forum is defined, any logged user can see all forums in the index (even if visibility option is not activated in Private groups). He can’t access to the “private” one but he see it.
– Search don’t hide ‘private group’ topics and replies from search results.
I tried to definitly delete the forums and create them again but it didn’t change anything…
So what? … I don’t know!
I will send you an email in a few minutes (I’ve found your address on your site) with further informations (access code to my site)
Regards,
mareva
What does this insert in the db that I need to remove manually?
Because my blog messed up because of this plugin. It is poorly coded to deal with the following situation:
Owner doesn’t want to get hacked because he has user ID 1 so he creates a new admin account and changes his previous account data to the new one.
This the plugin does not handle well…
Now I got no forum rules tab in user list, all forum roles are loaded in the blog roles.
With the recent bbPress update, the way notification is sent is changed. Earlier individual emails are sent to each people, but now only one email is sent with all the email address in bcc. I guess this is done to prevent email bottleneck. But this seems to have caused a issue in my setup.
I use wpmandrill to send emails through the mandrill service. With the new change, the to and from address is changed to a default “do not reply” email address that is calculated using the current domain name. The code is present in the bbpress/includes/common/functions.php
$do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
So it becomes <nobody@domain.com>
When this address is used as “to” address, the mandrill service thinks that it is an invalid email address because of the angle brackets.
I went through the code, but there is no filter to change the $do_not_reply variable.
Hi,
Odd indeed – it’s driving me batty trying to go through all the code and determine what function could be doing this.
I’ve turned off any other bbpress related plugin I had, switched to standard Twenty Fourteen theme. I then go in as anonymous on a different browser, create a new topic and then I can’t even see the topic I just created (nor any other anonymous person’s topics).
The topic gets created, looks fine and I can see it. It’s just anonymous users can’t see any anonymous posts.
solved my own problem
found this
Add “Resolved” to Closed Topics in bbPress
instead of using function.php
i threw this into loop-single-topic ,
the way i have my topics arranged it shows below the title
for closed label
<?php
$topic_id = bbp_get_topic_id();
if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_closed( $topic_id ) )
echo '<span class="closed">[CLOSED]</span>';
?>
for sticky label
<?php
$topic_id = bbp_get_topic_id();
if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_sticky( $topic_id ) )
echo '<span class="sticky">[STICKY]</span>';
?>
Hi There,
I’m working on my forum and i’m customizing my profile page(the one you can see other people’s reccords and number of posts)
the only thing i get to see are:
Forum Role
Topics Started
Replies Created
the fields in the code look like:
<p class="bbp-user-forum-role"><?php printf( __( 'Forum Role: %s', 'bbpress' ), bbp_get_user_display_role() ); ?></p>
i’m just wondering how to show first/lastname or only lastname.
hope you can help,
Best regards,
Kaluh
Tried applying the code and give me warning after activating the plugin
/* Plugin Name: BBPress Close Old Posts Description: Close BBPress 2.0+ posts that haven’t been updated in X days. Author: Raygun Version: 0.1 Author URI: http://madebyraygun.com Originally found here: https://wordpress.org/support/topic/plugin-bbpress-new-topic-notifications-new-reply-notications-too?replies=13 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ register_activation_hook(__FILE__, ‘bbpress_topic_scheduler’); add_action(‘bbpress_daily_event’, ‘bbpress_close_old_topics’); function bbpress_topic_scheduler() { wp_schedule_event(time(), ‘daily’, ‘bbpress_daily_event’); } function bbpress_close_old_topics() { // Auto close old topics $topics_query = array( ‘author’ => 0, ‘show_stickies’ => false, ‘parent_forum’ => ‘any’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1 ); if ( bbp_has_topics( $topics_query ) ) while( bbp_topics() ) { bbp_the_topic(); $topic_id = bbp_get_topic_id(); $last_active = strtotime( get_post_meta( $topic_id, ‘_bbp_last_active_time’, true ) ); if ($last_active < strtotime( ‘-60 days’) bbp_close_topic( $topic_id ); } } ?>
using most of the code structure that robin gave me from
Display Topic Starter label around topic authors avatar in topic replies
how do i do the same for topic status like sticky, supersticky , closed
all i probably need to change from the code from the link is
if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) {
to something like
if topic status = sticky
i just dont know how to write that line correctly with the right code
Any help?
Two ideas.
1. If using a multi-site, start a subdomain for bbPress and activate it on that site alone.
2. Using a plugin called – https://wordpress.org/plugins/plugin-organizer/ As Diphda mentioned, bbPress loads on every page. This plugin can block any plugin from loading on pages where it is not required (for bbPress where there are no short codes or forums).
The only draw back is your Admin panel will still be sluggish for those who are experiencing a similar lag, but visitors will experience faster load times.
Hope this helps.
I found this code in my files, try this
/*
Plugin Name: BBPress Close Old Posts
Description: Close BBPress 2.0+ posts that haven't been updated in X days.
Author: Raygun
Version: 0.1
Author URI: http://madebyraygun.com
Originally found here: https://wordpress.org/support/topic/plugin-bbpress-new-topic-notifications-new-reply-notications-too?replies=13
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
add_action('bbpress_daily_event', 'bbpress_close_old_topics');
function bbpress_topic_scheduler() {
wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
}
function bbpress_close_old_topics() {
// Auto close old topics
$topics_query = array(
'author' => 0,
'show_stickies' => false,
'parent_forum' => 'any',
'post_status' => 'publish',
'posts_per_page' => -1
);
if ( bbp_has_topics( $topics_query ) )
while( bbp_topics() ) {
bbp_the_topic();
$topic_id = bbp_get_topic_id();
$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) );
if ($last_active < strtotime( '-10 days') )
bbp_close_topic( $topic_id );
}
}
?>
change the -10 days to whatever you want
Basically just create a file called say ‘close.php’ and put this code in it. Create a directory in your site
wp-content/plugins/close
and put the file in there
then go into
dashboard>plugins>installed plugins and activate it
I haven’t tested this.
Sorry, but there’s no simple way to do this.
It can be done with code, but I don’t know of anything that has already been done
Hi, I’m looking for any solution with regards to removing of forum posts to expire after 60 days?
I tried applying the solution found in this thread
expired topics
But this code is untested, any insights?
Any help would be appreciated!
I just want to strip out all html code, so I need to remove everything between < and > from the db entry THEN display the first 100 chars.
http://venodsharmaa.tumblr.com/
Hi!
Thank you for the !is_bbpress() code, that works perfectly with Widget Logic plugin.
My trouble is: I’d like to specify more that one condition, e.g :
!is_page(‘page_name’) || !is_bbpress()
Unfortunatly, !is_bbpress code is not interpreted anymore when using this condition (the widget appears in the sidebar of all pages of the forum).
Any idea about what I should do to make it work?
Following some of the code I found on the site to re-enable TinyMCE I am unable to reply to any comments. The TinyMCE box appears, but when you attempt to click inside it doesn’t allow you to. It appears that the iframe contents are deleted when the jQuery moves it to the temporary div. I have found this thread: http://wordpress.org/support/topic/tinymce-in-relation-with-nested?replies=1 as well as a few others I can’t seem to find now with the same issue. I attempted to get the jQuery working but with no luck, would appreciate if someone can file a bug report, I can’t figure out where to. Thanks.
Getting an error when posting a new topic, but only when debug mode is true in wp-config. Just want to make sure this isn’t an issue going forward. The topic does post when I revisit the forum, but the user is greeted with the following white screen error message:
Notice: Undefined variable: user_id in /home/myuser/mydomain.com/wp-content/plugins/bbpress/includes/common/functions.php on line 1225
Notice: Undefined variable: user_id in /home/myuser/mydomain.com/wp-content/plugins/bbpress/includes/common/functions.php on line 1231
`Warning: Cannot modify header information – headers already sent by (output started at /home/myuser/mydomain.com/dev/wp-content/plugins/bbpress/includes/common/functions.php:1225) in /home/myuser/mydomain.com/dev/wp-includes/pluggable.php on line 1121
This is on a clean installation with a fresh copy of bbpress 2.5.4. Zero plugins, zero bbpress template modifications.
Ideas? Can anyone else duplicate?
Most likely you need to make a copy of your themes page.php and rename it to bbpress.php and that should stop the featured image displaying.
If that does not work I’d suggest submitting a support request to theme authors.
When a plugin is updated via WordPress’s Admin Interface
- It is deactivated
- New files are pulled down
- It is reactivated
Problem is, the bbPress Notify Spam plugin isn’t coded in such a way to fail gracefully when bbPress is not active. Thus when WordPress tries to reactivate bbPress, a fatal error occurs. Not because of bbPress, but because bbPress is temporarily not there, and bbPress Notify Spam tries to call bbPress functions.
The fix is for that plugin author to use bbPress’s sub-actions and filters to include its files and execute code, and not call bbPress core functions without confirming bbPress is active previously in its call stack.
Sorry y’all for the inconvenience, but there’s little we can do in bbPress core to prevent this type of thing.
Thanks, that is a good thing, basically as your wp_posts table contains 12,878 records it looks like the importer didn’t import any replies, if it had your wp_posts table would be ~350,000.
Presuming you are doing this on a test site I would suggest you reset bbPress (Tools-> Forums-> Reset bbPress) and delete the imported users along with all the previous imported forums, topics and replies and run the import again.
Hi,
I’ve recently migrated a large forum from phpBB to bbPress using the import tool (which has gone extremely smoothly – so thanks to all who have worked on the importer tools!)
Users have been imported successfully, and I can login via wp-admin with the password that was used on the previous phpBB forum… All of that is glorious! 😀
On our site however, I’ve created an ajax login so visitors never have to get in via /wp-admin
The issue I’m having is that whatever code is used to check a users old password and convert it to a WordPress encoded password is not being run when I attempt to log a user in via wp_signon().
Is there a filter or something I can run to ensure that bbPress runs the password conversion when a user logs in via my ajax login prompt?
If I login via http://localhost/wp-login.php I get logged in and returned to the home/front page http://localhost/
If I login via http://localhost/wp-admin the url becomes http://localhost/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwp-admin%2F&reauth=1
If I login via a separate WordPress installed in /pref as a sub directory of the localhost install via http://localhost/pref/wp-admin the login URL becomes http://localhost/pref/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fpref%2Fwp-admin%2F&reauth=1
Note how the sub folder on my install is also /pref and is also part of the new redirect URL, for whatever reason, most likely a .htaccess issue or some other oddity in your config is is changing the redirect to /wp39.
With multiple WordPress installs this quite easily happens and you need to make sure you are loading the correct WordPress install you are actually intending to load 😉