Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,551 through 5,575 (of 14,283 total)
  • @robin-w

    Moderator

    and what do you want it to return ?

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    Haven’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

    Code Snippets

    @robin-w

    Moderator

    ok, 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
    replies

    Then go back to

    dashboard>topics and see if the forums show in the main list

    @robin-w

    Moderator

    home 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

    @robin-w

    Moderator

    if that second part is all you are after, then add it to the custom css bit of your theme, or use

    Simple Custom CSS

    @robin-w

    Moderator

    the bbpress theme that this site uses is here

    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base

    the following file holds the code

    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php

    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

    @robin-w

    Moderator

    so is this the search at the top of this page, or a search on a forums page?

    @robin-w

    Moderator

    ok, so if you

    go into
    dashboard>topics> and select one topic to edit, and just hit update.

    DON’T set the forum.

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    ok, 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?

    @robin-w

    Moderator

    ok, can only suggest you deactivate that and see if the problem persists.

    @robin-w

    Moderator

    ok, 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.

    @robin-w

    Moderator

    so in

    dashboard>topics doe then forum show in the main list ?

    @robin-w

    Moderator

    This plugin will let you style it to match your theme, and do much else besides

    bbp style pack

    @robin-w

    Moderator

    ok, can you go into

    dashboard>topics> and select one topic to edit, and just hit update.

    let me know if that topic now shows

    @robin-w

    Moderator

    ok, thanks for update and hope all ok now 🙂

    @robin-w

    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    //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.

    @robin-w

    Moderator

    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.

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    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

    Code Snippets

    @robin-w

    Moderator

    what other bbpress related plugins are you running?

    @robin-w

    Moderator

    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.

    @robin-w

    Moderator

    hmmm… suspect that members may have left something

    do you have FTP?

    @robin-w

    Moderator

    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

Viewing 25 replies - 5,551 through 5,575 (of 14,283 total)