Forum Replies Created
-
In reply to: Wrong title on forums page
suspect it is theme related, but give us a link tk a live example, and I’ll try to give you some css to hide this
In reply to: Sidebar widget text issues.@terih I suspect your post is spam, but if not, please start a fresh post with a description of exactly what is wrong
In reply to: Something wrong with how the forums looksthe bbpress theme is here
In reply to: Something wrong with how the forums looksIn reply to: be notified of posts that have been posted sinceI don’t know of anything that does this – it could be coded, but that would be bespoke work and beyond free help
In reply to: How to arrange forum displaylets you style
in dashboard>settings>bbp style pack>forum templates
you can select an alternate display
or just have vertical lists in
dashboard>settings>bbp style pack>Forum Display
In reply to: bbpress update broke my websiteIn reply to: bbpress update broke my websiteThere hasn’t been an update to bbpress for over 6 months – so not sure what you were updating.
you will need to either get your host provider to roll back you site, or get ftp access and change the name of the offending plugin
great – glad you are fixed !
In reply to: automatic groupsby a ‘group’ do you mean a forum?
In reply to: Deactivating bbPress for testinggreat – glad you are fixed
In reply to: Deactivating bbPress for testingyes data and settings will be saved.
In reply to: Topic Count Showing Incorrectly?great – glad you are fixed
In reply to: Topic Count Showing Incorrectly?it’s usually a spam or hidden topic – have a look in the backend
if you can find it, delete it, otherwise try
dashboard>tools>forums>repair fourms and repair the counts
In reply to: Learndash and Bbpress plugin issueand there is an integration plugin
In reply to: 404 on forums and groupsnone errored when I tried them
In reply to: Learndash and Bbpress plugin issueAs far as I know the two work together
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: Setting User Forum Role By Codeno problem, glad you are fixed !
sorry missed that part
if the code above works then
bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) ); $reply_author_id = get_post_field( ‘post_author’, bbp_get_reply_id() ); $user = new WP_User( $reply_author_id ); if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) { if ($role=='student') $output = 'client' ; if ($role=='elephant') $output = 'tiger' ; echo “<div class=’role_custom_bhush’>”.ucfirst($output).”</div>”; break; } }just alter and add as many of these lines as you need
if ($role=='elephant') $output = 'tiger' ;In reply to: Setting User Forum Role By CodeI’ve just done some testing
this code :
function test_set_user () { $user_id = 1223 ; bbp_set_user_role( $user_id, 'bbp_participant' ); } add_action ('init' , 'test_set_user' ) ;changes user 1223 on site load, so the code is fine.
I think it is a timing issue – ie when you are doing this. It may well be that even if this fires, a ‘create user’ firing after will overwrite this – eg this may set for pending, but then be overwritten by the final user creation.
Of course if it is always going to be participant, then bbpress allocates the user to the default role (as set in settings>forums>default role) if no bbpress role is set on first login, so you could just set up the user, and bbpress will take care of giving them a role when they first log in!
In reply to: Admin Login redirects me to site front-endIn reply to: Migrate wp posts to bbPress forumsyou’d probably need to hire someone to do this
In reply to: Setting User Forum Role By CodeI’d suggest that the issue is that the bp_core_signup_user is not returning a valid $user_id
you could prove that by writing a console output to see what is being supplied, eg
// create the user from the bp_core method, to make sure it passes the activation mode first $user_id = bp_core_signup_user( $post->username, $post->password, $post->email, [] ); echo "<script>console.log('" . $user_id . "');</script>" ; bbp_set_user_role( $user_id, "bbp_participant" );and then looking in the console in your browser tools
maybe better to ask the question in ten buddypress support as to why the correct user_id is not being returned
In reply to: Custom fields and controls in editorit is doable but would require bespoke coding
if you want to hire someone, then Milan or I might be able to help
you can change names using my plugin
once activated go to
dashboard>settings>bbp style pack>Forum Roles