Forum Replies Created
-
In reply to: Remove /search from the site
and what do you want it to return ?
In reply to: How do I enqueue the custom css?you can only enqueue a style name once, so suggest you rename the second child one eg
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style')); wp_enqueue_style( 'child-theme-bbpress-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array());that might be the problem, if not, it certainly isn’t helping
In reply to: Anonymous Profile in Tool BarHaven’t tested but googled and found this
add_filter( 'admin_bar_menu', 'replace_wordpress_howdy', 25 ); function replace_wordpress_howdy( $wp_admin_bar ) { $my_account = $wp_admin_bar->get_node('my-account'); $newtext = str_replace( 'Howdy,', 'Welcome,', $my_account->title ); $wp_admin_bar->add_node( array( 'id' => 'my-account', 'title' => $newtext, ) ); }Put this in your child theme’s function file – or use
In reply to: Imported Topics are blankok, I think from previous threads that you need to import in an order
so I’d suggest that (as long as you don’t have any other topics in the forum) you reset the forums (ie get rid of all the current forums, topics and replies)
dashboard>tools>forums>reset forums
Then import in the following order
forums
topics
repliesThen go back to
dashboard>topics and see if the forums show in the main list
In reply to: BBPress looking strangehome button is in breadcrumbs tab
create new topic button is in buttons tab (and not there by default)
don’t know what you mean by ‘box they type in’
html tags is in topic/reply form tab
In reply to: How do I enqueue the custom css?if that second part is all you are after, then add it to the custom css bit of your theme, or use
In reply to: Anonymous Profile in Tool Barthe bbpress theme that this site uses is here
the following file holds the code
but you will also need to pull through some css from the theme, and JavaScript to do the drop downs
then tie all this back to the right place in your theme.
It’s quite doable, but well beyond free help
In reply to: Remove /search from the siteso is this the search at the top of this page, or a search on a forums page?
In reply to: Imported Topics are blankok, so if you
go into
dashboard>topics> and select one topic to edit, and just hit update.DON’T set the forum.
meta boxes are used in the backend, but you are most of the way there.
so to add the dropdown you can use
add_action(‘bbp_theme_before_reply_content’, ‘so_additional_content’);(there is a bbp_theme_after_reply_content action as well)
and then in the function put the drop down stuff – I’ve not checked your code, so you’ll need to tidy and correct the following if it doesn’t work
so
function so_additional_content () { ?> <label>Choose the size of the element : </label> <select name=”custom_element_grid_class” id=”custom_element_grid_class”> <option value=”normal” <?php selected( $meta_element_class, ‘normal’ ); ?>>normal</option> <option value=”square” <?php selected( $meta_element_class, ‘square’ ); ?>>square</option> <option value=”wide” <?php selected( $meta_element_class, ‘wide’ ); ?>>wide</option> <option value=”tall” <?php selected( $meta_element_class, ‘tall’ ); ?>>tall</option> </select> <?php }Then when the user presses submit a function in bbpress called ‘new reply handler’ takes over.
that has a hook
do_action( ‘bbp_new_reply_post_extras’, $reply_id );
which you can link to, to do the save.
so you would have
add_action ( 'bbp_new_reply_post_extras' , 'so_save' ) ; function so-save ($reply_id) { $meta_element_class = $_POST[‘custom_element_grid_class’]; update_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, $meta_element_class); }again your code is not checked.
you will need to add functionality if you want users to edit their replies and change the dropdown selection
I’ll let you play with the above, and do come back with a first version if you need extra help.
If you fix it, then PLEASE post your solution here to help others
In reply to: Imported Topics are blankok, sorry to keep asking, but it is important
in
dashboard>topics>all topics you get a list of topics, and there is a column that says forum. Does each topic have a forum listed in that main list, or is that column blank?
In reply to: Multiple notifications Errorok, can only suggest you deactivate that and see if the problem persists.
In reply to: “No Topics” issue on forum pageok, you’ll need to work out why/when this occurs (appreciate that is not easy), but without a ‘this happens and then that happens), we can’t really get any further.
In reply to: Imported Topics are blankso in
dashboard>topics doe then forum show in the main list ?
In reply to: bbpress and custom themesThis plugin will let you style it to match your theme, and do much else besides
In reply to: Imported Topics are blankok, can you go into
dashboard>topics> and select one topic to edit, and just hit update.
let me know if that topic now shows
In reply to: How can I fully remove this plugin?ok, thanks for update and hope all ok now 🙂
In reply to: Editing the ‘Oh bother!’ MessagePut this in your child theme’s function file – or use
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );and change the old text and new text to suit.
In reply to: How can I fully remove this plugin?given that you don’t have bbpress running (ie you’ve deleted the folder), then nothing will use those roles and capabilities, so I suspect there is no harm in just leaving them.
The alternate is to create another vanilla worpress site, and that will then have all the worpdress roles in the wp-options entry.
You can then use phpmyadmin to copy the existing entry from the problem site to a txt file (so you have it saved), and then copy the new site entry into it’s place.
Then that entry will have all it should.
In reply to: How can I fully remove this plugin?no, I think that is probably the core of the problem.
basically capabilities are stored against each role in the database in the wp_options table in the database under name wp_user_roles.
Each role is stated, and then it’s capabilities are stored against it.
bbpress is trying to remove roles/capabilities from each bbpress role, and is failing.
maybe if you look in the database and see what bbpress roles you have – if none, then there is nothing for bbpress to do, and that may be why it is erroring
ok, let’s try adding this
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 ); function my_bbp_verify_nonce_request_url( $requested_url ) { return 'http://localhost:8888' . $_SERVER['REQUEST_URI']; }Put this in your child theme’s function file – or use
In reply to: Multiple notifications Errorwhat other bbpress related plugins are you running?
In reply to: How can I fully remove this plugin?sorry, I’m just a bbpress user who helps out here, in 5 years, I’ve not seen this issue.
I’d suggest that you just delete the plugin using FTP.
In reply to: How can I fully remove this plugin?hmmm… suspect that members may have left something
do you have FTP?
In reply to: How can I fully remove this plugin?ok, it is a site specific issue, and might (or might not) be related to the members plugin -I have no idea how that plugin works or how you view roles using it.
so all I can say is it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back