Forum Replies Created
-
In reply to: How to stop Topic Creations allouw Replys
ok I think you need my private groups plugin which allows you to set up groups, and then give users access to different forums, and using topic permissions have different access to different forums
In reply to: Create User Levelsnot sure if this is what you are after
In reply to: How to stop Topic Creations allouw ReplysIn reply to: Search not workingno problem – glad you’re fixed !
In reply to: freshness answerssorry but you do need to say what is wrong – helpers here don’t have time to work it out !
so please state what is showing wrongly and where
In reply to: Display 5 recent topics or forums on the home pageThis plugin has a shortcode that lets you display recent topics by forum or forums
https://wordpress.org/plugins/bbp-style-pack/
see dashboard>settings>bbp style pack>shortcodes for options
In reply to: Free WordPress theme that are bbPress ready?Most wordpress themes work fine with bbpress. There are plugins such as https://en-gb.wordpress.org/plugins/bbp-toolkit/ and https://wordpress.org/plugins/bbp-style-pack/ that will help integration and add features
In reply to: freshness answersYou just include a link to your site, but with no clue as to an example.
But I suggest you run
dasbboard>tools>forums>repair forums and run one at a time
In reply to: Moderation by ForumI suspect you’ll need to pay someone to amend Ian Stanley’s plugin
From a very quick look Line 133 of the plugin would be the place to do it, as a specific fix, you could just put a check for open forum here (probably post parent) and return $data if it is one of the open ones ala line 132.
Really depends on how many open vs. moderated forums as to whether you make this inclusive or exclusive at that point.
In reply to: Search not workingThis is probably because in the bbPress default theme package, there is a template called content-search.php. In some newer themes there is also a template of the same name. And since the bbPress templates don’t necessarily need to be in a bbPress folder, the bbPress plugin is choosing the template from your theme before the template that is actually in bbPress.
Copy content-search.php from the bbPress plugin templates and place it in a child theme in a folder called bbpress.
https://bbpress.org/forums/topic/bbpress-search-only-showing-last-item/#post-175880
So create a directory on your child 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/content-search.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/content-search.php
bbPress will now use this template instead of the originalIn reply to: Adding User Profile Buttongreat – glad you’re fixed !
In reply to: Site blank when bbPress deactivatedok, I’d either
change the theme to parent briefly and try it again – see if this fixes
or try replicating to a test site, where you can play with it
https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/
In reply to: Is there any way to get forum root slug field value?the last set of code in this thread should give you what you want
https://bbpress.org/forums/topic/adding-user-profile-button/
In reply to: Site blank when bbPress deactivatedI’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 !