Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,701 through 9,725 (of 64,535 total)
  • Author
    Search Results
  • #180710
    Robin W
    Moderator

    4.7/4.7.1 and bbpress 2.5.12 work

    If you have these then :

    1. what php version are you running?

    your host provider can answer this

    or you can install

    https://wordpress.org/plugins/display-php-version/

    If it’s php7 then come back

    otherwise

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #180707
    Pascal Casier
    Moderator

    Hi @barryhughes-1,

    I have just checked your snippet and it just works great 🙂
    So for fully public forums, this could be a quick win.

    My only worry is that it does not take into account any bbPress ‘protection’ or ‘permission’. As it’s showing all forums, all topics, it’s not taking into account any specific bbPress settings or filters set. Some great plugins like bbP Private Groups is shielding data from being seen by unauthorised people and this should be extended to the API.

    So I will try from a different angle. Authentication there will be my biggest nightmare probably 🙂
    I have created my GitHub environment and plan to start putting the ideas on the wiki there: https://github.com/ePascalC/bbp-API/wiki

    Please add your ideas !
    Pascal.

    #180703
    Stephen Edgar
    Keymaster

    p.s. @reedy, to get Slack up and running to join the #bbPress channel sign up here:

    https://chat.wordpress.org

    #180700

    @senatorman The improvements here on bbPress.org were not-insignificant.

    We have 25k topics, 100k replies, and many more in spam/trash/drafts/revisions, amounting to around 180k total posts.

    It’s not a huge-huge install, but not exactly small either.

    #180698

    @reedy I’m here if you need help. Can also use the #bbpress channel in WordPress’s Slack instance.

    #180694

    > create the ability to have a topic relate to multiple Forums

    bbPress currently requires that all topics have some parent forum, but you are not forced to expose this hierarchy in your theme/design if you’d rather not.

    Custom taxonomies are the way to go, and there is a goal to eventually migrate the “Forum” post type to be a taxonomy instead, now that individual forums can have their own meta-data.

    #180689
    Robin W
    Moderator

    bbpress uses wordpress structure which works on a hierarchy, so a topic/post has a forum/post parent.

    Would take a lot of customisation to make bbpress work differently to that – loads of functions would need total re-write.

    Off-hand I can’t see how this would be achieved.

    #180688
    Stephen Edgar
    Keymaster

    It sounds like you might be using PHP 7?

    If indeed that is the case the issue you are having I think is fixed in bbPress 2.6-beta

    You can update (and test) the new bbPress https://bbpress.org/forums/topic/bbpress-2-6-beta-1/

    #180686
    markognezeniq
    Participant

    Running –
    – WP 4.6.1 with Divi
    – BBPress version 2.5.11

    My use case –
    – Using BBPress to create Topic discussions around content pages. The nature of these pages is that users may want to find a content page from different directions.
    – Example: consider two content pages, Apples and Oranges. Some people may be researching vegetarian diets (both may come up), Citrus fruits (only oranges will come up), or fruits from Washington State (only apples will come up).

    My hope –
    – create the ability to have a topic relate to multiple Forums.
    – Using the above example, I would have a forum for vegetarians (both apples and oranges relate to this Forum), another for Citrus Fruits (only oranges relate to this Forum), and a third for Washington State produce (only Apples relate to this Forum).

    What is the best way to accomplish this change in BBPress categorization of Topics to ForumS?

    Thank you in advance!

    Mark

    #180680

    In reply to: New topics

    Barry
    Participant

    Something like this ought to do the trick:

    function bbp_add_recent_activity_view() {
    	bbp_register_view(
    		'active',
    		'Active topics',
    		array(
    			'meta_key'      => '_bbp_last_active_time',
    			'meta_type'     => 'DATETIME',
    			'meta_compare'  => '>=',
    			'meta_value'    => date_i18n( 'Y-m-d H:i:s', strtotime( '-1 day' ) ),
    			'max_num_pages' => 1,
    			'orderby'       => 'meta_value_num',
    			'show_stickies' => false
    		) 
    	);
    }
    
    add_action( 'bbp_register_views', 'bbp_add_recent_activity_view' );

    With this in place you should then be able to access a list of ‘active’ topics at:

    example.com/forums/view/active

    In terms of where to add this sort of code, there are a few options. One would be to create a new PHP file (starting with a <?php opening tag) at:

    wp-content/mu-plugins/bbpress-tweaks.php

    #180674
    Robin W
    Moderator

    This does the background color, I’ll leave you to pick the bones out of it.

    `#bbpress-forums input[type=”text”], textarea,
    #bbpress-forums input[type=”text”]:focus, textarea:focus,
    #bbpress-forums .quicktags-toolbar
    {
    background-color: red; ?> ;
    }`

    #180672
    TheDream18
    Participant

    Hi. I tried to apply css box shadow for input textara. But it was not work. Anyone know what exactly class CSS should to use to add box shadow? Thanks
    .wp-editor-container textarea.wp-editor-area ==> Not work

    #180668
    senatorman
    Participant

    @Thomas_Camaran first do this fix then do the upgrade

    #180667
    Preexist Kudos
    Participant

    Fatal error: Uncaught Error: Call to undefined function bbp_admin_upgrade_user_subscriptions() in /var/www/vhosts/…/wp-content/plugins/bbpress/includes/core/update.php:326 Stack trace: #0 /var/www/vhosts/…/wp-content/plugins/bbpress/includes/core/update.php(174): bbp_version_updater() #1 /var/www/vhosts/…/wp-includes/class-wp-hook.php(298): bbp_setup_updater(”) #2 /var/www/vhosts/…/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #3 /var/www/vhosts/…/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /var/www/vhosts/…/wp-content/plugins/bbpress/includes/admin/actions.php(198): do_action(‘bbp_admin_init’) #5 /var/www/vhosts/…/wp-includes/class-wp-hook.php(298): bbp_admin_init(”) #6 /var/www/vhosts/intranet.cha in /var/www/vhosts/…/wp-content/plugins/bbpress/includes/core/update.php on line 326

    #180666
    mth75
    Participant

    @johnjamesjacoby Hi John, is it possible to run the update script manually?

    I’m adjusting all my templates to the BBPress 2.6 versions but it seems that the update script didn’t run.

    For example, i’m missing pagination in topics view, and in a single topic view, i’m also missing pagination and the favorite / subscribe options (the latter is related I guess).

    Regards,

    Marc

    #180661

    Topic: Forum Search

    in forum Troubleshooting
    courtneyleonis
    Participant

    When I search my Forum I get a 502 error: the page request was canceled because it took too long to complete.

    At first I thought it was only when you tried to search multiple words. But then it did work when I tried “crash cart” and “cell phone” and it did not work when I tried “annual” or “history”. So it seems very inconsistent.

    WordPress version:4.6.2
    bbPress version:2.5.11
    http://www.progressivesurgicalsolutions.com

    #180660
    Pascal Casier
    Moderator

    Hi @barryhughes-1,
    Should I start an environment on GitHub for this ? I really really love the idea of the bbPress API. It has been on my radar for a while but lost priority.

    I had this link already saved to get some ideas https://github.com/thenbrent/BB-API

    Pascal.

    #180658
    Pascal Casier
    Moderator

    Also please note that that ticket bbpress.trac.wordpress.org/ticket/2685 that is referenced is fixed in version 2.6 of bbPress. So for the next version you will no longer need this.

    Pascal.

    #180655
    btranslation
    Participant

    WordPress Version 4.7.1
    bbPress Version 2.5.12
    Theme: Hayden
    https://bible-translations.com/forums/

    Hello, I am having great difficulty getting any widgets to appear in my Forums sidebar. I believe now that it relates to the page I have bbPress running on. After initially installing bbPress I later added a new page and added [bbp-forum-index] as directed to do in the documentation. However, when I’ve tried to use the Forums page id to exclude the Forums link from automatically appearing in the footer it did not work. Also I had to use (.bbpress) in my css to style the header of the page as .page-id- was not working.
    My issue still occurs when tested using Twenty Seventeen.

    #180651
    senatorman
    Participant

    i’ve remove my 2.6 aplha and instal 2.6 beta 1 after the fix on an testforum with 120 forums and 500 posts

    the install runs fast (few seconds) it looks like there is no converting in the database to convert usermeta to postmeta. There is no big performancechange

    i had understand that beta 1 is an good performance update. And makes Bbpress faster for big forums. Am i right?

    #180647
    wautersandreas
    Participant

    Hi, i had a big problem with bbpress in the sense that it crashed (fatal error) every time i tried to administrate it by clicking the “forums” tab.

    I found out that the below function was the problem, and in particular that i needed to change to:
    $post_stati = bbp_get_public_status_id();
    from
    $post_stati[] = bbp_get_public_status_id();

    for some reason the straight brackets broke everything, i don’t understand why, so i wanted to flag this for future updates. i’m a complete newb so yeah 😀

    error code:

    Fatal error: Uncaught Error: [] operator not supported for strings in /customers/f/9/9/simzone.net/httpd.www/HQ/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #2 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array) #4 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp-query.php(3238): WP_Query->get_posts() #5 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp.php(617): WP_Query->query(Array) #6 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/class-wp.php(735): WP->query_posts() #7 /customers/f/9/9/simzone.net/httpd.www/HQ/wp-includes/functions in /customers/f/9/9/simzone.net/httpd.www/HQ/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800'
    
    adjusted function: 
    
    

    function bbp_pre_get_posts_normalize_forum_visibility( $posts_query = null ) {

    // Bail if all forums are explicitly allowed
    if ( true === apply_filters( ‘bbp_include_all_forums’, false, $posts_query ) ) {
    return;
    }

    // Bail if $posts_query is not an object or of incorrect class
    if ( !is_object( $posts_query ) || !is_a( $posts_query, ‘WP_Query’ ) ) {
    return;
    }

    // Get query post types array .
    $post_types = (array) $posts_query->get( ‘post_type’ );

    // Forums
    if ( bbp_get_forum_post_type() === implode( ”, $post_types ) ) {

    // Prevent accidental wp-admin post_row override
    if ( is_admin() && isset( $_REQUEST[‘post_status’] ) ) {
    return;
    }

    /** Default ***********************************************************/

    // Get any existing post status
    $post_stati = $posts_query->get( ‘post_status’ );

    // Default to public status
    if ( empty( $post_stati ) ) {
    $post_stati = bbp_get_public_status_id();
    # $post_stati[] = bbp_get_public_status_id();

    // Split the status string
    } elseif ( is_string( $post_stati ) ) {
    $post_stati = explode( ‘,’, $post_stati );
    }

    /** Private ***********************************************************/

    // Remove bbp_get_private_status_id() if user is not capable
    if ( ! current_user_can( ‘read_private_forums’ ) ) {
    $key = array_search( bbp_get_private_status_id(), $post_stati );
    if ( !empty( $key ) ) {
    unset( $post_stati[$key] );
    }

    // …or add it if they are
    } else {
    $post_stati = bbp_get_private_status_id();
    #$post_stati[] = bbp_get_private_status_id();
    }

    /** Hidden ************************************************************/

    // Remove bbp_get_hidden_status_id() if user is not capable
    if ( ! current_user_can( ‘read_hidden_forums’ ) ) {
    $key = array_search( bbp_get_hidden_status_id(), $post_stati );
    if ( !empty( $key ) ) {
    unset( $post_stati[$key] );
    }

    // …or add it if they are
    } else {
    $post_stati = bbp_get_hidden_status_id();
    #$post_stati[] = bbp_get_hidden_status_id();
    }

    // Add the statuses
    $posts_query->set( ‘post_status’, array_unique( array_filter( $post_stati ) ) );
    }

    // Topics Or Replies
    if ( array_intersect( array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ), $post_types ) ) {

    // Get forums to exclude
    $forum_ids = bbp_exclude_forum_ids( ‘meta_query’ );

    // Bail if no forums to exclude
    if ( ! array_filter( $forum_ids ) ) {
    return;
    }

    // Get any existing meta queries
    $meta_query = $posts_query->get( ‘meta_query’ );

    // Add our meta query to existing
    $meta_query[] = $forum_ids;

    // Set the meta_query var
    $posts_query->set( ‘meta_query’, $meta_query );
    }
    }

    /**
    * Returns the forum’s topic ids
    *
    * Only topics with published and closed statuses are returned
    *
    * @since bbPress (r2908)
    *
    * @param int $forum_id Forum id
    * @uses bbp_get_topic_post_type() To get the topic post type
    * @uses bbp_get_public_child_ids() To get the topic ids
    * @uses apply_filters() Calls ‘bbp_forum_query_topic_ids’ with the topic ids
    * and forum id
    */’

    climbingturtle
    Participant

    1. I’ve confirmed this is a wider issue with ALL wordpress registrations. It is not a BBpress issue.

    IF SOMEONE ELSE is having trouble with registration emails, you should test general WordPress user registrations:

    – make sure “Anyone can register” is checked in Settings/General
    – go to yourwebsite.com/wp-admin
    – click register
    – see if you get the registration email.

    2. There’s a discussion from three months ago (~October 2016) about Godaddy blocking WordPress registration emails b/c they think they are spam. https://wordpress.org/support/topic/godaddy-internet-community-ib212-filtering-wordpress-registration-emails-as-spam/

    3. There’s a nifty plug-in to check email from your site called “Check Email”. I’m able to get emails sent from this plug in. So it seems likely that I may also be a victim of registration emails being blocked as spam.

    I will post more results as I get them.

    #180643
    Robin W
    Moderator

    can you post your bbpress.php template page here?

    #180642
    Robin W
    Moderator

    I presume it is not as simple as changing

    /*Customize the BBPress roles to allow Participants to trash topics
    

    to

    /*Customize the BBPress roles to allow Participants to trash topics */

    on line 1, as currently the lack of a */ at the end of the line means that it just comments out all of your first function, so that function doesn’t run !

    #180640
    endomorph
    Participant

    Hi all,

    Got something I am stumpeped on. I have a site, with a child theme and I have installed BBPress.

    Created the bbpress.php template page. All pages on the forum work fine apart from the view topic page. It just outputs the content of BBpress with no theme code.

    If I switch to a parent theme, it ll works OK, it’s only happening on a child theme

    Any ideas ?

Viewing 25 results - 9,701 through 9,725 (of 64,535 total)
Skip to toolbar