Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 4,501 through 4,525 (of 64,398 total)
  • Author
    Search Results
  • kerchmcc
    Participant

    We have PMPRO (2.3.1) + Buddypress (5.2.0) + bbpress (2.6.4) + bbp style pack (4.5.3) installed.
    Buddypress 6.0 really screwed with the displays, so that got rolled back.
    WP: 5.4.1

    Buddypress shows the profiles of members
    In a member profile, there is a link to show forum (bbpress) activity.
    Cool
    If a user has a favorite or a subscription showing there, there is also an icon [x] implying that I can unsubscribe/unfavorite that item.
    However, nothing happens when that [x] is clicked.
    I don’t know who to ping about the problem.
    If it’s you, please fess up! and thanks

    Home

    #211312
    Robin W
    Moderator

    unless you are running a very highly spec’d server and your users can’t wait another nano second, I would not worry about only loading on bbpress pages.

    #211310
    Pete
    Participant

    OK, thanks. I’m new to this game, so I hadn’t appreciated where the line between WordPress and bbPress might have been drawn. I was trying here largely becasue this website was set up the way I wanted.

    Thanks again for your help though.

    #211308
    failxontour
    Participant

    It worked thanks! Sure wouldn’t have suspected that for the future i guess I should use the ispage() option to load it appropiately only for bbpress.
    forum-css

    #211307
    Robin W
    Moderator

    that only matters if you are doing it for say a theme. there probably is another way, but that is WordPress not bbpress, so if you want to pursue, try the main WordPress forums.

    #211300
    galwpsite
    Participant

    Is there no way to turn off the search in bbpress settings?

    #211298
    Pete
    Participant

    Thanks again @robin-w. Yes, I saw that one. That does work as long as the text that’s being replaced is ‘Howdy’. but that’s language dependent. Down here, if your site is configured for Australia, it’s ‘G’day’ and in other countries I imagine it’s something different again (and that code works as long as you specify the exact string that you need to replace).

    I was actually wanting to get rid of that text altogether, in a language-independent way, so I was hoping that it had a ‘name’, like ‘wp-user-greeting’ or something that you could just do a $wp_adminbar->remove_node on, but it sounds like this is not the case. Is the format of the username/avitar on the admin-bar on this site, where there’s no ‘prefix’ at all, really hard coded (rather than managed through something like a function)?

    I am making progress with the code (to identify a user as anonymous before they log in) from your previous response, so thanks again for that, but I’m modifying files that are bound to be replaced with the next WordPress/bbPress update. There must surely be some ‘version independent’ way of doing this…

    #211290
    galwpsite
    Participant

    there is no search form, but this is the search page of bbpress. if i turn bbpress of it will return 404.

    #211289
    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

    #211278
    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

    #211274
    #211269
    failxontour
    Participant

    Hey so I’m trying to enqueue custom CSS for bbPress v2.6.4 on the WP 5.4.1 clan website running a WP Twenty Twenty-child theme.

    This is what my functions.php currently looks like

    <?php
    /**
    * Child theme stylesheet einbinden in Abhängigkeit vom Original-Stylesheet
    */
    add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
    function child_theme_styles() {
      wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
      wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
      wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/css/bbpress.css', array());
    }
    ?>
    

    And this is how my bbpress.css looks like.

    
    #bbp-forum-info,
    #bbp-forum-topic-count,
    #bbp-forum-reply-count,
    #bbp-forum-freshness {
      color: #232323;
    }
    #bbpress-forums {
      background: transparent;
      clear: both;
      margin-bottom: 20px;
      overflow: hidden;
      font-size: 1.75rem;
      color: #232323;
    }
    

    The changes I applied in the bbpress.css won’t update the bbpress CSS on the above mentioned site. So their must be something wrong with my functions.php but I can’t yet put my finger on it how to load it properly as I’m pretty new when it comes to WordPress. I wanna append these changes globally to all parts of bbPress forum.

    Can someone tell me to if and what i need to specify inside the arrray() call for the bbpress.css to load properly? Or hint me towards what’s wrong here.

    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

    g28f99
    Participant

    I hope to customize bbpress reply form area with dropdown selection list. I could not find any previous post reporting similar case in bbpress. Referring to post “Save meta box data from selected dropdown list” with link I prepared similar code for the bbpress reply post condition, but failed to achieve the goal.
    Please kindly provide suggestions!

    ` add_action( ‘bbp_theme_before_reply_form_content’, ‘so_custom_meta_box’ );
    //add_action( ‘add_meta_boxes’, ‘so_custom_meta_box’ );

    function so_custom_meta_box($post){
    add_meta_box(‘so_meta_box’, ‘Custom Box’, ‘custom_element_grid_class_meta_box’, $post->post_type, ‘normal’ , ‘high’);
    }

    add_action(‘bbp_theme_before_reply_content’, ‘so_save_metabox’);

    function so_save_metabox(){
    global $post;
    if(isset($_POST[“custom_element_grid_class”])){
    //UPDATE:
    $meta_element_class = $_POST[‘custom_element_grid_class’];
    //END OF UPDATE

    update_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, $meta_element_class);
    //print_r($_POST);
    }
    }
    function custom_element_grid_class_meta_box($post){
    $reply_id = bbp_get_reply_id();
    $meta_element_class = get_post_meta($reply_id, ‘custom_element_grid_class_meta_box’, true); //true ensures you get just one value instead of an array
    ?>
    <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
    }

    #211259
    supportowpok
    Participant

    I have “AsynCRONous bbPress Subscriptions”

    #211253
    thomasprice61
    Participant

    Hi Robin,
    Definitely something weird going on with roles & capabilities.
    Ended up:
    1. removing all forum entries
    2. delete bbPress plugin folder

    Not the best way to remove a plugin, but all seems OK

    thank you

    #211251
    zackxoxo
    Participant

    I’ve recently tried the bbpress plugin and have had 0 luck figuring out how to install any themes. Does anyone out there know of a good tutorial explaining how to do this?

    I really want to use bbpress but it just looks horrible with my theme from Elegant Themes. (And the theme looks great).

    Thanks!

    #211249
    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.

    #211248
    cmsplay
    Participant

    Loving bbPress.

    We’ve set our fora (forums) to show only for logged-in users.

    When a visitor is not logged in and they click on the Fora link, bbPress shows the following message:

    Oh, bother! No forums were found here.

    We’d rather that the message said ‘Fora are viewable by logged in members’.

    How and where do we edit the ‘Oh bother!’ message? (Which might be the right CSS file?)

    Thank you.

    cmsplay
    Participant

    Have you set your bbPress fora to be viewable only by logged-in users? If so, non-logged-in users would be directed to the ‘Oh bother!’ message.

    #211243
    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

    #211242
    thomasprice61
    Participant

    Hi Robin,
    Deleted the bbPress folder.
    Plugin screen came up fine and stated bbPress was gone.
    Reinstalled bbPress
    Same issue.

    It looks like it fails when attempting to remove ‘spectate’

    See log above: WP_Role->remove_cap(‘spectate’)

    I was surprised as an Administrator, all the bbPress roles were read-only.
    Is that normal?
    As an Admin are your bbPress roles read-only?

    #211238
    Robin W
    Moderator

    what other bbpress related plugins are you running?

    #211236
    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.

    #211232
    thomasprice61
    Participant

    Changed theme to twentytwenty
    Deactivated all plugins apart from bbpress
    Then tried to deactivate bbPress last … same error.

    Note, the Membership plugin was uninstalled earlier.

Viewing 25 results - 4,501 through 4,525 (of 64,398 total)
Skip to toolbar