Guys. I make the repo for plugin on github, checkout the latest version with some fixes:
https://github.com/korobochkin/bbPress-permalinks-with-id (and russian translation included).
@pooledge don’t quite understand what you talking about. On my forum links with parameters works great with this plugin. For example:
http://selenaselena.ru/community/talks/talk/14579/ — simply topic
http://selenaselena.ru/community/talks/talk/14579/edit/ — edit topic, for admins only, but not 404 🙂
http://selenaselena.ru/community/talks/talk/14579/?bbp_reply_to=14806&_wpnonce=0fe9ee9c36#new-post — write reply to some user.
i would create a page and put the forum archive shortcode and the single topic shortcode to display both with no problems.
https://codex.bbpress.org/shortcodes/
There is probably another way , but this is the first i thought of.
1st problem:
I add bbpress in my wordpress site. Then I post a welcome topic in forum. But it not show in forum root page, but is show in “recent topic” widget!
What’s the problem here?
forum link: http://blog.imaginativeworld.org/forums/
the sidebar and the forum display overlap.
put this where you can put custom css and tell how it is.
#bbpress .singular .entry-content {
margin: 0 auto;
width: 68.9%;
float: right;
}
The only way is with a php code to create a bbpress profile link ?
well maybe if you have a shortcode to display the users “login name” then you could probably replace the the php code with the shortcode. idk if it works though havent really tried anything like that just yet.
alternative is allow php in widgets, which is unsafe.
and also you could a link to profile in your menu.
// Filter wp_nav_menu() to add profile link
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
function my_nav_menu_profile_link($menu) {
if (!is_user_logged_in())
return $menu;
else
$current_user = wp_get_current_user();
$user=$current_user->user_login ;
$profilelink = '<li><a href="/forums/users/' . $user . '/">View Profile</a></li>';
$menu = $menu . $profilelink;
return $menu;
}
I have same issue! delete_others_replies work, but not delete_replies..
Temporary solution would be changing bbpress core (/includes/replies/capabilities.php)
from:
case 'delete_reply' :
// Get the post
$_post = get_post( $args[0] );
if ( !empty( $_post ) ) {
// Get caps for post type object
$post_type = get_post_type_object( $_post->post_type );
$caps = array();
// Add 'do_not_allow' cap if user is spam or deleted
if ( bbp_is_user_inactive( $user_id ) ) {
$caps[] = 'do_not_allow';
// Moderators can always edit forum content
} elseif ( user_can( $user_id, 'moderate' ) ) {
$caps[] = 'moderate';
// Unknown so map to delete_others_posts
} else {
$caps[] = $post_type->cap->delete_others_posts;
}
}
break;
To:
case 'delete_reply' :
// Get the post
$_post = get_post( $args[0] );
if ( !empty( $_post ) ) {
// Get caps for post type object
$post_type = get_post_type_object( $_post->post_type );
$caps = array();
// Add 'do_not_allow' cap if user is spam or deleted
if ( bbp_is_user_inactive( $user_id ) ) {
$caps[] = 'do_not_allow';
// Moderators can always edit forum content
} elseif ( user_can( $user_id, 'moderate' ) ) {
$caps[] = 'moderate';
// User is author so allow edit if not in admin
} elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
$caps[] = $post_type->cap->delete_posts;
// Unknown so map to delete_others_posts
} else {
$caps[] = $post_type->cap->delete_others_posts;
}
}
break;
But I do not want to touch the core. How can I update my functions.php file to do the same? (i.e. add_filter)
I’m very new to WP and BBP..
found temporary solution.
Fix 404 issue for bbPress 2.2.x
It fix 404 error
I just wanted to give general users capabilities to delete their own topics/replies, so I added custom role for bbpress forums.
I followed: http://codex.bbpress.org/custom-capabilities/, to add ‘PPH General User’ and I see the forum role in Edit User page. I also changed Auto role in Forums Settings so that the website can automatically give registered visitor ‘PPH General User’ role.
In ‘usermeta’ database, I see that it assigned ‘a:1:{s:16:”pph_general_user”;b:1;}’ to capabilities key. It is good so far.
However, when I open the forum with PPH General User account, all bbpress capabilities for ‘PPH General User’ are disabled.
Even reading a forum shows nothing with body class = “error404 logged-in”
If I change the user account to Participant, all bbpress functions work as expected.
(with body class = “forum bbpress single single-forum postid-42 logged-in”)
With PPH General Account,
$cur_user_id = get_current_user_id();
$roles=get_userdata( $cur_user_id );
echo 'User Role:'; print_r($roles->roles); echo '<br />';
$role_caps = bbp_get_caps_for_role($roles->roles[0]);
echo 'User Cap:'; print_r($role_caps); echo '<br />';
if (current_user_can( 'spectate')){echo 'You can spectate';}
else{echo 'You cannot spectate';};
prints out:
User Role:Array ( [0] => pph_general_user )
User Cap:Array ( [spectate] => 1 [participate] => 1 [read_private_forums] => 1 [publish_topics] => 1 [edit_topics] => 1 [delete_topics] => 1 [read_private_topics] => 1 [publish_replies] => 1 [edit_replies] => 1 [delete_replies] => 1 [read_private_replies] => 1 [manage_topic_tags] => 1 [edit_topic_tags] => 1 [delete_topic_tags] => 1 [assign_topic_tags] => 1 )
You cannot spectate
If the account is changed to ‘Participant’ then it prints out:
User Role:Array ( [0] => bbp_participant )
User Cap:Array ( [spectate] => 1 [participate] => 1 [read_private_forums] => 1 [publish_topics] => 1 [edit_topics] => 1 [publish_replies] => 1 [edit_replies] => 1 [assign_topic_tags] => 1 )
You can spectate
Someone please help me. I spent so many hours debugging this..
I’m running WP 3.9.2 and bbPress 2.5.4.
I have created several forums and populated some with Topics and Replies.
I wish to display the list of forums at wordpress/forums.
I followed the instructions in ‘Step by step guide to setting up a bbPress forum – Part 1.
I tried Method 1 (created a page titled ‘forums’ and added it to the main menu), and Method 2 (shortcode in page)…neither worked for me. When I use the menu to go to wordpress/forums I don’t see the forums but, instead, a list of old posts.
I am using the plugin ‘bbPress Topics for Posts’ and it works…I have forums displaying as expected at the bottom of pages.
I’m stumped. Any suggestions would be appreciated.
David
Ha yes this link is working : <a class="bbp-profile-button" href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>">Profile Settings</a>
But I think my plugin user meta does not accept php code that is why it is not working. The only way is with a php code to create a bbpress profile link ?
Versions: WordPress 3.9.2, bbpress 2.5.4, bbpress WP Tweaks 1.3.1
Site: http://www.obatron.com/forums
Theme: TwentyEleven
I have a child theme: twentyeleven-child with a style.css file in it, no customizations to it. I added a folder under it called css and copied the bbpress.css from the plugins tree to it to change the colors only (still working on colors so pardon if there are issues). I copied the sidebar-page.php file to bbpress into this folder.
My Forum page is blank, just titled Forums with a Permalink named http://www.obatron.com/forums/ and a template set as Default.
The problem: Forum index works fine, but when you go to a forum, the sidebar and the forum display overlap. I’ve tried various combinations of removing/moving the bbpress.php file to no avail. I also tried without the tweaks plugin, without the child template, and so on…
I tried going with just a full page and just use pages with the proper tags for login, etc, but then the forum index looks odd because it continues to use the sidebar template no matter what.
If I change the theme options to put the sidebar on the right, the forum index continues to work, but the forum page sidebar now appears below the forum…
Now, I’ve searched for this and see others occasionally complaining about similar, but have not seen an answer that works…
is there any way to remove it without waiting for a bbpress upgrade?
these 3 wordpress plugins are very effective in eliminating spambots and other spammers on wordpress/bbpress site
i use all 3 with no apparent problems, but read the notes for each plugin, all need to be properly configured and stop spammer reg can be very aggressive and may deny some of your legit visitors access if not properly configured
https://wordpress.org/plugins/bad-behavior/
https://wordpress.org/plugins/stop-spammer-registrations-plugin/
https://wordpress.org/plugins/wangguard/
these 3 wordpress plugins are very effective in eliminating spambots and other spammers on wordpress/bbpress site
i use all 3 with no apparent problems, but read the notes for each plugin, all need to be properly configured and stop spammer reg can be very aggressive and may deny some of your legit visitors access if not properly configured
https://wordpress.org/plugins/bad-behavior/
https://wordpress.org/plugins/stop-spammer-registrations-plugin/
https://wordpress.org/plugins/wangguard/
Just noticed something that might cause an issue. Make sure you change the inactiveCLass variable from “paged” to something else as well as in the CSS. Apparently, when BBPress paginates topics, it assigns the class “Paged” to the whole page so if it’s set to display none, you will spend hours trying to figure out why your page 2, 3, etc is blank…
Hey there,
I know I’m probably late to the party but I’ve been searching for a way to allow pagination WITH threaded replies in BBpress for the past 3 days now with no luck. The closest I got to having it work was with the BBPress Threaded Replies plugin by Jennifer Dodd but it didn’t work as expected (I think because I am using a custom loop and also some custom functions may be messing with it). Every time I activated it and tried to enable threaded replies it would remove my formatting toolbar from the text editor (which I need) and it would only show the same reply for all pages. So I decided to try and come up with a way to mimic pagination and I think I have solved my issue. I wanted to post it here for anyone else having trouble with pagination and threaded replies.
Basically, it’s a jQuery Pagination Imitation script that hides items in a list and only shows the number you specify at a time. It also creates links that change the items being displayed to simulate different pages. I applied this to the site I am working on and it worked like a charm. The major difference with this script and actual REAL pagination is with the script, you are still having to load all the results on one page. You just hide the extras so it doesn’t look so clustered. Other than that, it does exactly what I need it for, reducing the number of replies visible at a time. Here is a link to the JSFiddle if anyone is interested. Hopefully, this will save someone some headaches.
Not really about bbpress, more about security against spam on your site.
you need to secure your website more from spam bots
akismet helps, security plugins help , captchas help (bbpress recaptcha), cdns with security features help (cloudflare, incapsula)
you could add a link to the login widget , but you have to do this every upgrade.
if you dont want to do that there is also 2 other solutions to this too in the link
Layout and functionality – Examples you can use
you need to make a bbpress.php file , edit out number of comments and whatever is calling the continue reading link.
then your forum archive should look normal after that.
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
@robin-w
idk what your talking about here when its all about a placeholder, that only a user can see if there logged in, you might be over-thinking it when you say this or you reply your information to the wrong topic that this user has.
Maybe this??
Customizing "Reply To Topic" Area
@marximusmg
i actually got a placeholder in my reply area , but you will lose the quick tag toolbar by doing it this way.
in form-reply.php replace
<?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
<?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
<?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
with this
<?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
<textarea placeholder="Reply..." id="bbp_reply_content" tabindex="104" name="bbp_reply_content"></textarea>
<?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
heres a snippet of form-reply.php with the code inserted
<div class="bbp-template-notice">
<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
</div>
<?php endif; ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div>
<?php bbp_get_template_part( 'form', 'anonymous' ); ?>
<?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
<textarea placeholder="Reply..." id="bbp_reply_content" tabindex="104" name="bbp_reply_content"></textarea>
<?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
<?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
<p class="form-allowed-tags">
<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
<code><?php bbp_allowed_tags(); ?></code>
</p>
I have the latest WP installed with OptimizePress 2, Buddy Press and BBpress (latest versions) installed. I am building the forums in the private section of a membership site.
I am having issues with the Breadcrumb links.
I used method 2, a page for the forums index with short code. The forums display properly.
>> http://www.imstudy.club/forums-welcome/
Then when I click on each forum it goes to the correct page, I have set-up “Content Aware Sidebars” to show widgets in the sidebar and the forums in the content area. It works.
Now when I am on one of these forums the breadcrumb shows:
IM Study Club’s Public Home › Forums › Site Feedback
The link “Forums”, is the Forum root and it goes here:
http://www.imstudy.club/forums/
That’s a Blog Archives page with a link “continue reading” going nowhere.
How can I have this “Forums” link in the breadcrumb go to my custom page “forums-welcome” instead.
I have tried to change the name of the root forum to match the page, but it doesn’t works, always get the blog archives page… I also tried to redirect, but got a loop.
Any idea?
Thank you very much for your help.
Michel
Hi,
Thank you for responding. Sorry I couldn’t get back to you for so long.
I don’t use breadcrumbs in my website. I use a custom menu with one of the menu items being the forum. The forum is navigated using bbpress breadcrumbs.
The page title would be ‘No Labels Community Forum’ and in breadcrumbs it would be N L C F
Thank you for your time
Jerry
I posted it here because the sign up is by the bbpress widget using this code [bbp-register]
and before I was having an issue which is many users with weird names and emails are registering with my websites and I have been told to use captcha so a real person can sign up only but now even with capthca I am having spam users idk how!
knowing that I am the only admin and I changed my pass and email several times and didn’t work
The way profiles are shown requires some coding – would a menu item do you?
Layout and functionality – Examples you can use