Forum Replies Created
-
In reply to: Add/Change User roles
this is great. thanks Robkk. Just one question… Do I put this into the bbpress.php file in the bbpress folder?
No. Also the bbpress.php file should be in the root of your theme.
I added it here: wp-content/plugins/bbpress/templates/default/bbpress
Just checking if that is correct?
Don’t mess with any core files.
Okay so I put the above code in here and it seems to work:
plugins > bbpress > includes > users
Again, just checking if that is correct?
Don’t mess with any core files.
Here, I forgot I did this a while back. Add this to your functions.php file in your child theme.
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_get_role = bbp_get_user_display_role($replyid); $bbp_display_role = strtolower($bbp_get_role); $classes[] = $bbp_display_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );
Do the CSS I said before for the above code.
It would be something like this but for each role.
.ambassador .bbp-author-role { background-color: blue; }
And if you do not need custom roles but instead just role names, lets say for each role it would be like this.
Keymaster -> Ambassador
Moderator -> Team Member
Participant -> Community MemberYou can just change the role names using this function. Add it to your child themes functions.php file. And rename My Custom Role to what you want.
add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' ); function ntwb_bbpress_custom_role_names() { return array( // Keymaster bbp_get_keymaster_role() => array( 'name' => 'My Custom Keymaster Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) ), // Moderator bbp_get_moderator_role() => array( 'name' => 'My Custom Moderator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) ), // Participant bbp_get_participant_role() => array( 'name' => 'My Custom Participant Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) ), // Spectator bbp_get_spectator_role() => array( 'name' => 'My Custom Spectator Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() ) ), // Blocked bbp_get_blocked_role() => array( 'name' => 'My Custom Blocked Role Name', 'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() ) ) ); }
Oh and quit trying to copy Ultimate Members site, try to have a unique website.
You may need to run some repair tools like Lynq did in this plugin.
Running more than one repair tool can be resource intensive so be careful.
In reply to: Problem with bbpress and wp securitydo you know that the default WordPress login page is yoursite.com/wp-login.php and the direct link to the WordPress backend (Administration area) is yoursite.com/wp-admin?
So you renamed wp-login.php to newadmin. And after you login you are redirected to the dashboard at wp-admin.
I am starting to think this is not really an issue.
I also did test the dashboard access plugin and didn’t really see an issue from it either. Maybe the redirect url you inputted in that plugin may be causing an issue?? I am not sure.
In reply to: bbpress not logoutWhen I contacted the devs yesterday, one of them said that they haven’t come across this issue lately, and also if WordPress was installed in a subfolder.
They said a possible issue is that there might be some caching where it shouldn’t be.
I replied and said that I will at least keep this bug, that you and some other guys are experiencing, as a possible issue with bbPress. I will also report back to the devs if it happens to another user again, then we can go to bug finding from there.
In reply to: Member Names are shortenedProbably a CSS issue. Link to your site so I can give you some CSS to fix the author name text.
But its not contained in a nice neat pop-up box like here in bbpress’s sub-header bar.
That is a modified WordPress toolbar slipped under the header.
Is there a way to include registration link inside the login widget? or is there a registration widget?
There should be some settings in the widget to input a registration link and a forgot password link too.
Hmm that seems like a peice of code that has been posted on these forums before. Hopefully other users do not come across the same issue.
I am glad that you resolved your own issue though. 🙂
Are you using the WP Admin No show plugin? This is a plugin I usually recommend for users to use instead.
In reply to: Problem with bbpress and wp securityOkay I just renamed the login page using the AIO security and firewall plugin. I have bbPress enabled but do not see an issue.
You said this on the topic you linked to.
We want users to be able to register and comment etc. but we want to keep them out of the wp-dashboard completely. So we have a alternate profile page etc. and are denying access for all nor administrator & editor users. I don’t know if this might have an effect on these things.
What are you using to lock them out of the dashboard?
In reply to: How to remove field in bbpress?copy
form-anonymous.php
in your child theme and remove this in the file.<p> <label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br /> <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" /> </p>
In reply to: bbpress not logouthmmm yeah yours is different, but it might be related to the ticket at least.
I will contact the devs to see what they think it could be to make sure.
Try some troubleshooting it could be your theme conflicting with bbPress. Try a default theme temporarily to see if is in fact bbPress causing the issue with any scripts.
Contact the theme author if it just your theme, and see if they have a fix for users that want to use bbPress.
The debug information you got is explained here.
Any plugin that hooks into the default WordPress registration and adds special fields should add fields also to the bbPress registration form.
A plugin like this could add extra fields.
https://wordpress.org/plugins/cimy-user-extra-fields/
This site uses the [bbp-login] shortcode and there is a message on the registration page that says this site uses the same registration details as WordPress.org.
In reply to: Displaying comments template on user profiles?I am not sure why you would want the WordPress comment system on your profile, but a good alternative is to use the BuddyPress activity streams.
It’s amazing that such a feature is not developed !
Is this feature really easy to create??
Since bbPress does not have a view other users threads/replies and a reply to other users threads/replies user capability, I guess no.
You might be able to do this with the Private Groups plugin but that would take a lot of time to create each group.
A private emssaging plugin or a plugin like BuddyPress that has private messaging could be a good alternative though.
If you need this developed for you, you can always hire a developer to create this for you.
But really I have never seen anybody turn bbPress into a ticket system.
In reply to: bbpress not logoutYou installed WordPress in a subdirectory? This is one of the trac tickets that I found and it may seem to have the exact issue you do. Confirm so I can make sure the issue is not fixed.
https://bbpress.trac.wordpress.org/ticket/1645
I will mark the topic as [resolved] and close it after you reply to confirm the issue.
I could be wrong because I remember someone from BuddyPress @mentioned me on their forums and I got a notification for it.
It might be something introduced in the next major version of bbPress which both sites run, or that you need to make sure you type the user’s username correctly instead of their display name.
In reply to: my activity in the fourm isnt showing upWhat troubleshooting did you already do? Did you already do the plugin and theme troubleshooting?
Also sometimes it may not necessarily be a caching plugin, it could also be other thing caching your site, like cloudflare, hosting server cache, something like that.
You can always test your sites theme/plugins on a test server.
In reply to: bbpress not logoutGlad that you solved your own issue. 🙂
I am going to bookmark this so that I can lead user to your fix if they come across the same issue.
I wonder if this is related to past issues with bbPress with logging out, before I make a trac trac ticket of this issue.
Was this site set up in a multisite installation?? If not I will create a unique ticket for this issue.
In reply to: BBPress SubscriptionsIt’s like the main site isn’t detecting the forums of the sub site for some reason.
I don’t think it should work quite like that. Did you check the BuddyPress profile on the subsite also, I think there it should show that sites forum information??
Also it will only show subscribed forums or topics if you actually subscribed to them by clicking the subscribe link/checkbox.
Yeah bbPress does not support @mention notifications.
In reply to: bbpress not logoutI get that you are sorry for your English haha you don’t have to keep telling me 🙂
Okay try adding this to your child themes function.php file to see if this helps solve your issue, but try just logging out from the WordPress Toolbar only for now.
remove_filter( 'logout_url', 'bbp_logout_url' );
In reply to: plugin Button to create new topicHeck I might not need to, it may already be in the next major release.
If you go to this sites new topic page, you will see the forum dropdown does not show the (no forum), it just displays the first form in the list by default.
Will check to make sure later though.
It might be expected behaviour since their might not be functionality for notifications if the @mention is in bbPress forums.
So what you said is that @mentioning a user in the replies does not work, but it does in topics?
And of course it works find in the BuddyPress activity streams.
In reply to: bbpress not logoutTested it out on your site and I saw the issue. I don’t really have a fix for this yet but I know another guy that had something similar and I wonder if something in your guys set-ups could be causing the issue.
I emailed you some questions to help me try to pinpoint the issue.
If I still can’t find anything, I will just collect some data and post what you two guys already did and report a bug on the bbPress trac linking to both of your guys topics.
I am not sure if having email/bubble notifications is there if you @mention someone in bbPress forums.
Maybe using this would add a notification but I am not sure.