Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,401 through 5,425 (of 14,141 total)
  • @robin-w

    Moderator

    1. Download the plugin from this url :

    Fix forum


    Then upload to your site and activate

    3. Create a page called anything and put this shortcode in it
    [fix-topics]
    and publish

    4. Go to this page and you will see a drop down, use the drop down to select ‘run’ and click submit

    That should do it

    @robin-w

    Moderator

    Great – I do have a plugin that will do that, but if you are happy to do that manually then fine.

    Are replies all ok ?

    @robin-w

    Moderator

    not that I can see easily

    @robin-w

    Moderator

    ok, so final test, and then I’ll be happy I know what needs doing (one we did earlier)

    go into
    dashboard>topics> and select one topic to edit, and just hit update.
    DON’T set the forum.

    @robin-w

    Moderator

    I’d suggest you just add redirect to htaccess

    @robin-w

    Moderator

    can you answer this question

    Then go back to
    dashboard>topics and see if the forums show in the main list

    @robin-w

    Moderator

    so did you reset forums as in

    dashboard>tools>forums>reset forums

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

Viewing 25 replies - 5,401 through 5,425 (of 14,141 total)