Forum Replies Created
-
In reply to: Site blank when bbPress deactivated
I’d look in wp-config for
define( 'WP_DEBUG', false );and change it to
define( 'WP_DEBUG', true );This will switch debugging on, and you should get an error shown when you try and access the site.
Post this error back here, and we’ll try to help further.
In reply to: Adding User Profile Buttonyes it goes in the functions file of your child theme
In reply to: Site blank when bbPress deactivatedThe functions file of your theme might hold code that relies on bbpress – look for lines that include
add_action (‘bbp_something…
or
add_filter (‘bbp_something…In reply to: search function still available after searchingno just a little patience !
In reply to: Adding User Profile ButtonThis code will do that
//add profile link to forums add_action ( 'bbp_template_before_single_forum', 'rew_profile_link' ) ; add_action ( 'bbp_template_before_forums_index', 'rew_profile_link' ) ; function rew_profile_link () { if (!is_user_logged_in()) return ; $current_user = wp_get_current_user(); $user=$current_user->ID ; $profile = 'Profile' ; $user_link = '<a href="' . esc_url( bbp_get_user_profile_url( $user) ) . '">' . $profile . '</a>'; echo '<div style="text-align: center;">'.$user_link.'</div>'; }In reply to: assign moderators to specific board & adding rolesok
On issue 1
The code goes on then functions file of your child theme
https://codex.bbpress.org/functions-files-and-child-themes-explained/
on issue 2, pending 2.6 coming out containing a fix (neither currently has any timescales)
the you can achieve this with my private groups plugin
https://wordpress.org/plugins/bbp-private-groups/
see the help page for how to set up
In reply to: Adding User Profile Button@robkk – I’m just trying to help someone, not trying to get the most efficient code 🙂
In reply to: Adding User Profile ButtonThis should do what you want
//add profile link to forums add_action ( 'bbp_template_before_single_forum', 'rew_profile_link' ) ; add_action ( 'bbp_template_before_forums_index', 'rew_profile_link' ) ; function rew_profile_link () { if (!is_user_logged_in()) return ; $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $user_slug = get_option( '_bbp_user_slug' ) ; if (get_option( '_bbp_include_root' ) == true ) { $forum_slug = get_option( '_bbp_root_slug' ) ; $slug = $forum_slug.'/'.$user_slug.'/' ; } else { $slug=$user_slug . '/' ; } $edit_profile = __('Edit Profile', 'bbp-style-pack') ; //get url $url = get_site_url(); $profilelink = '<a href="'. $url .'/' .$slug. $user . '/edit">'.$edit_profile.'</a>'; echo '<div style="text-align: center;">'.$profilelink ; }add it to your functions file
https://codex.bbpress.org/functions-files-and-child-themes-explained/
In reply to: Old post “edit” link makes too many redirectsnot tested but this code should allow editing at all times. Add it to your functions file
add filter ('bbp_past_edit_lock' , 'rew_allow_editing' ) function rew_allow_editing () { $retval = false ; Return $retval ; }on other posts, I’d wonder if the bbp_reply_id(); might be returning a null or the wrong id.
As a test the easiest way would be to replace your
Edit </a>with<?php echo esc_url( home_url( '/' ) ).'conversations/reply/'.bbp_reply_id().'/edit/' ?></a>That way you’ll see where it is going to send you and can find out what the problem is
In reply to: Removing the tab “Topic started by” forumgreat – glad you are fixed !
In reply to: Removing the tab “Topic started by” forumYou will need to change a template, so if you can edit a file and know FTP then you can amend this
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-topic.phpbbPress will now use this template instead of the original and you can amend this.Now go to line 68, which says
<span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>and delete this and save the file
In reply to: Three forumsno problem !
In reply to: BBpress search only showing last itemI can’t immediately see the issue.
If you have tried with just twentyfifteen and bbpress, then not sure how to progress next.
@robkk – any ideas?
In reply to: BBpress search only showing last itemah, forum is not public, so I can’t do a search !
In reply to: Weird Display Name on Mobilecan we have a link to your site please and to an example
In reply to: Members are not showing up. HELP PLEASE!!have you posted this in the buddypress support forum – looks more like an issue for them
In reply to: Can’t move topic to another forumbbPress 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: My new social forum | please reviewwhy don’t you have a test site?
https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/
In reply to: No HeaderI can see the header and lots of replies – do you still have a problem??
In reply to: BBpress search only showing last itemis this site accessible?
In reply to: BBpress search only showing last itembbPress 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: Keymaster has no permissionsbbPress 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: Forum where only admin can post, but users can replyyou can achieve this with forum roles eg
https://codex.bbpress.org/custom-capabilities/
if you want it across all forums
or if you just want one of several to be restricted, then I’ve recently added this to my private groups plugin
https://wordpress.org/plugins/bbp-private-groups/
see topic permissions tab
In reply to: Three forumsmy private groups plugin achieves this
In reply to: How to upload avatarbbpress uses the wordpress system of gravatar, so you’ll need to do that