Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 8,776 through 8,800 (of 64,428 total)
  • Author
    Search Results
  • #184722

    In reply to: Nothing is displayed

    Robin W
    Moderator
    Robin W
    Moderator
    #184717
    scrawny
    Participant

    If you’ve found the solution please post it here as I’ve got the same problem and been trying for weeks to get bbpress to look nice.

    #184715
    UserCentrix
    Participant

    I am trying to integrate BBPress into a site created with Toolset – Layouts, Types and Views.

    The following BBPress shortcodes require an ID parameter:

    [bbp-single-forum id=$forum_id]
    [bbp-topic-form forum_id=$forum_id]
    [bbp-single-topic id=$topic_id]
    [bbp-single-reply id=$reply_id]

    Each of the IDs required above are aliases for the post_id, which Toolset privides a shortcode for. In order to get the templates to work for layouts applied to single Forums, Topics and Replies I need to include the current post ID. The simplest way I can imagine to do this would be as follows?

    [bbp-single-forum id='[wpv-post-id]’]
    [bbp-topic-form forum_id='[wpv-post-id]’]
    [bbp-single-topic id='[wpv-post-id]’]
    [bbp-single-reply id='[wpv-post-id]’]

    Unfortunately I get the following output at the front end?

    ‘]

    This makes clear to me that nested shortcodes are not supported in the BBPress. Is there a straightforward way of extending this functionality, perhaps through the functions.php file? This would create full compatibility with BBPress and Toolset. I couldn’t find any solutions to this shared on this support forum but it seems to me as something that may be a common problem and could have been tackled before.

    I hope you can assist.

    #184699
    ZuGon
    Participant

    I was installed bbPress 2.5.12 on WordPress 4.7.5.
    Then I made various settings of bbPress and created a new forum.

    But the forum is not displayed.
    When entering the forum from “View forum” in the forum creation editor, the whole screen is pure white.
    https://WORDPRESS-DOMAIN/wp-admin/edit.php?post_type=forum

    When I go directly to the URL of a separate forum, a normal WordPress site will be displayed.
    In the main place, “Can’t find it, there is nothing here, please try the search.” is displayed.

    Slug of forum root>Forum prefix part;
    Even if I turn ‘Add slug’ on/off, nothing changes.

    Management panel (left pane/dashboard) > Forum > Forum list or Add new forum
    Here again the screen is nothing display.
    Even when uninstalling plugin or reinstalling it, it does not change.

    How do I use bbPress?

    imanicogic
    Participant

    Hello Support,

    http://www.imanicogic.com
    Wordpress Version:4.7.5
    BBPress Version: 2.5.12

    This was tried on other themes and our WordPress Developer encouraged us to submit this to you.
    ==========================
    We are trying to redirect Members, Groups, and Activity pages to a custom URL. We are using the following code:

    function church_bp_page_template_redirect()
    {

    if( ! is_user_logged_in() && ! bp_is_activation_page() && ! bp_is_register_page() && (bp_is_current_component(‘members’) bp_is_current_component(‘activity’) bp_is_current_component(‘groups’))) {
    wp_redirect( ‘/imani-secured-login/’ );
    exit();
    }
    }

    add_action( ‘template_redirect’, ‘church_bp_page_template_redirect’,10 );

    However, when BBPress is active, this will not work and will always redirecting to Homepage but if BBPress is activated, the custom code will work perfectly.

    Can you please check if there are any conflicts with Buddypress and BBPress in regards to template_redirect?

    Thanks!

    #184690
    TKServer
    Participant

    I’ve started coding an angular/mobile bbPress app. I’ve already got a “latest topics” feed working in the app via the API by @mapofemergence and it works great. I just ran into the first hurdle, which is that WP’s API does not allow access to user info. A custom API to get the user’s name and avatar etc would be needed.


    @casiepa
    I will check yours out as well.

    #184688
    Pascal Casier
    Moderator

    Hi all,
    Just to keep you informed (I forgot to post the link here before) that some people already provided input on the bbpress API version that is on https://github.com/ePascalC/bbp-API/
    It’s setup in a different way, but if anyone wants to help building/proposing things on that one, feel free. I hope in the end both will serve to come to a final bbPress integrated API.
    Pascal.

    #184687
    vicky
    Participant

    HI

    I have Install bbPress and like to setup custom page for forums

    Im getting two URL .. which I dont need and it will be creating duplicate post

    Im getting this link as default https://bestcomputersforgaming.com/forums

    Im trying to design custom page for forums at https://bestcomputersforgaming.com/forum/

    any solution to just to get one forum link

    #184683
    scrawny
    Participant

    Switched back to bbPress 2.6 Beta 2. Works fine with php 7.0.19 now.

    #184682
    scrawny
    Participant

    Installed bbPress Beta 2.6 Beta 2 and works fine on php 7.0.19. Whooohoooo!!!

    #184681
    TKServer
    Participant

    I’m starting development of my bbPress mobile app. I have noticed that buddyPress has an RSS feed for latest member activity, which also has bbPress posts. One could utilize that, but it is very limited and shows multiple duplicates of the same post if a user edits.

    #184680
    Robin W
    Moderator

    ok, so this is a search function – yes?

    If so, look at this code that I use with my private groups plugin to filter search results and see if you can make this work for you

    //this function filters to the bbp search function to allow only returns from allowed forums
    
    function pg_has_search_results( $args = '' ) {
    	
    	global $wp_rewrite;
    //start with code as per bbp search !
    	/** Defaults **************************************************************/
    
    	$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
    
    	// Default query args
    	$default = array(
    		'post_type'           => $default_post_type,         // Forums, topics, and replies
    		'posts_per_page'      => bbp_get_replies_per_page(), // This many
    		'paged'               => bbp_get_paged(),            // On this page
    		'orderby'             => 'date',                     // Sorted by date
    		'order'               => 'DESC',                     // Most recent first
    		'ignore_sticky_posts' => true,                       // Stickies not supported
    		's'                   => bbp_get_search_terms(),     // This is a search
    	);
    
    	// What are the default allowed statuses (based on user caps)
    	if ( bbp_get_view_all() ) {
    
    		// Default view=all statuses
    		$post_statuses = array(
    			bbp_get_public_status_id(),
    			bbp_get_closed_status_id(),
    			bbp_get_spam_status_id(),
    			bbp_get_trash_status_id()
    		);
    
    		// Add support for private status
    		if ( current_user_can( 'read_private_topics' ) ) {
    			$post_statuses[] = bbp_get_private_status_id();
    		}
    
    		// Join post statuses together
    		$default['post_status'] = implode( ',', $post_statuses );
    
    	// Lean on the 'perm' query var value of 'readable' to provide statuses
    	} else {
    		$default['perm'] = 'readable';
    	}
    	
    	//PRIVATE GROUPS then loop to find allowable results
    	//bail from this part if there are no search terms, as otherwise it sorts the whole database and overflows memory
    	if (! bbp_get_search_terms() == '' ) {
    	//change page default to allow filter against all search results - otherwise allowed posts is only the first page of results ie whatever is in  bbp_get_replies_per_page()
    	$default['posts_per_page'] = -1;
    	$allowed_posts = private_groups_get_permitted_post_ids(new WP_Query( $default ));
    	// Then add allowed forum ids to the default query 
        $default['post__in'] = $allowed_posts;
    	if (empty ($allowed_posts )) $default['post__in'] = array(0) ;
    	//then set per page back (so that we get the correct pagination )
    	$default['posts_per_page'] = bbp_get_replies_per_page();
    	
    	}
    	
    	
    	
    	//then return to bbp search code
    	
    	/** Setup *****************************************************************/
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, $default, 'has_search_results' );
    
    	// Get bbPress
    	$bbp = bbpress();
    
    	// Call the query
    	if ( ! empty( $r['s'] ) ) {
    		$bbp->search_query = new WP_Query( $r );
    	}
    
    	// Add pagination values to query object
    	$bbp->search_query->posts_per_page = $r['posts_per_page'];
    	$bbp->search_query->paged          = $r['paged'];
    
    	// Never home, regardless of what parse_query says
    	$bbp->search_query->is_home        = false;
    
    	// Only add pagination is query returned results
    	if ( ! empty( $bbp->search_query->found_posts ) && ! empty( $bbp->search_query->posts_per_page ) ) {
    
    		// Array of arguments to add after pagination links
    		$add_args = array();
    
    		// If pretty permalinks are enabled, make our pagination pretty
    		if ( $wp_rewrite->using_permalinks() ) {
    
    			// Shortcode territory
    			if ( is_page() || is_single() ) {
    				$base = trailingslashit( get_permalink() );
    
    			// Default search location
    			} else {
    				$base = trailingslashit( bbp_get_search_results_url() );
    			}
    
    			// Add pagination base
    			$base = $base . user_trailingslashit( $wp_rewrite->pagination_base . '/%#%/' );
    
    		// Unpretty permalinks
    		} else {
    			$base = add_query_arg( 'paged', '%#%' );
    		}
    
    		// Add args
    		if ( bbp_get_view_all() ) {
    			$add_args['view'] = 'all';
    		}
    
    		// Add pagination to query object
    		$bbp->search_query->pagination_links = paginate_links(
    			apply_filters( 'bbp_search_results_pagination', array(
    				'base'      => $base,
    				'format'    => '',
    				'total'     => ceil( (int) $bbp->search_query->found_posts / (int) $r['posts_per_page'] ),
    				'current'   => (int) $bbp->search_query->paged,
    				'prev_text' => is_rtl() ? '→' : '←',
    				'next_text' => is_rtl() ? '←' : '→',
    				'mid_size'  => 1,
    				'add_args'  => $add_args, 
    			) )
    		);
    
    		// Remove first page from pagination
    		if ( $wp_rewrite->using_permalinks() ) {
    			$bbp->search_query->pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $bbp->search_query->pagination_links );
    		} else {
    			$bbp->search_query->pagination_links = str_replace( '&paged=1', '', $bbp->search_query->pagination_links );
    		}
    	}
    	//finally filter to return
    	// Return object
    	return apply_filters( 'pg_has_search_results', $bbp->search_query->have_posts(), $bbp->search_query );
    }
    
    add_filter ('bbp_has_search_results', 'pg_has_search_results') ; 
    #184679
    Alex Stine
    Participant

    Hello @robin-w,

    If I’m not mistaken, doesn’t this come with bbPress by default? Not sure what template it is actually in right now, but if you open up a single forum, you should see it. For example this URL.

    Plugins

    Thanks.

    #184677
    scrawny
    Participant

    Thanks Robin. I’ll do that when bbPress has been updated for php 7.1

    #184674
    Alex Stine
    Participant

    Hello @robin-w,

    I’m not using a default bbPress function to hide the topics. I’m using a custom plugin to handle the hiding of topics so members who are participants have a choice if they want the topic to be public to all members or private to moderators and keymasters. As you can see with the code above, that excludes the custom private topics from search results. Now what I need to do is update the pagination counts.

    For example, there’s a topic named “Testing” and another topic named “test123”. Pagination will show 2 topics. If “testing” is now marked private, pagination will show 2 topics. I need to figure out a way to update the pagination so it only shows 1 topic since that’s all is showing to participants. However if a moderator comes along with the required permission to view a private topic, the pagination should still show 2 topics since the moderator has permission to see the private topic.

    I hope this helps explain my goal.

    Thanks.

    #184672

    In reply to: bbPress Fatal Erreur

    Robin W
    Moderator

    Suspect you are using php 7.1
    3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6 RC
    3. in bbpress 2.5.12 go to /includes/forums/functions.php and change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );
    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );
    Since the next upgrade will fix that anyway, no issue in changing the bbpress file
    best I can offer I’m afraid

    #184670
    Robin W
    Moderator

    wp_bp is buddypress

    bbpress uses custom post types for forums, topics and replies, and various ‘options’ settings, then of course users have meta data.

    Quickest way would be to re-install and reactivate bbpress then use that to delete as above and then remove bbpress again. Much better than messing with sql tables

    #184667
    scrawny
    Participant

    That would work if I had bbPress installed. I had deleted it because it wouldn’t run on php7.1 or php7.0.19

    I’ll have to use phpmyadmin. Are wp_bp files all related to bbPress?

    Or does wp_bp refer to BuddyPress?

    If wp_bp refers to BuddyPress what bbPress files should I remove from mySQL?

    #184664
    flooky94
    Participant

    Hi when i want to check my forums i get this erreur

    View post on imgur.com

    Fatal error: Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs\forum\wp-content\plugins\bbpress\includes\forums\functions.php:1800 Stack trace: #0 C:\xampp\htdocs\forum\wp-includes\class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 C:\xampp\htdocs\forum\wp-includes\class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #2 C:\xampp\htdocs\forum\wp-includes\plugin.php(515): WP_Hook->do_action(Array) #3 C:\xampp\htdocs\forum\wp-includes\class-wp-query.php(1681): do_action_ref_array(‘pre_get_posts’, Array) #4 C:\xampp\htdocs\forum\wp-includes\class-wp-query.php(3238): WP_Query->get_posts() #5 C:\xampp\htdocs\forum\wp-includes\class-wp.php(617): WP_Query->query(Array) #6 C:\xampp\htdocs\forum\wp-includes\class-wp.php(735): WP->query_posts() #7 C:\xampp\htdocs\forum\wp-includes\functions.php(955): WP->main(”) #8 C:\xampp\htdocs\forum\wp-blog-header.php(16): wp() #9 C:\xampp\htdocs\forum\index.php(17): require(‘C:\\xampp\\htdocs…’) #10 {main} thrown in C:\xampp\htdocs\forum\wp-content\plugins\bbpress\includes\forums\functions.php on line 1800

    #184661
    scrawny
    Participant

    I’ve got 7 forums all named the same due to an issue mentioned in another post.

    How do I remove all bbPress files from the mySQL database before installing bbPress again once it’s ready for PHP7.1?

    Is there a plugin which will do this?

    I’m running latest WordPress with php 7.0.19 and mySQL 5.6.35.

    #184660
    scrawny
    Participant

    I installed phpBB and it worked fine, but I wanted something like the Ad Inserter plugin I’m using on WP and couldn’t find anything suitable.

    phpBB is a good forum program with lots of good extensions. I’m hoping bbPress will ‘soon’ be updated to function properly with php 7.0.19 and 7.1.

    In the meantime I’ve got to post another question elsewhere on how to cleanup the mysql database and get rid of the 7 forums I created using bbPress earlier – all forums named the same because none of them ever appeared as a forum in the listings or appeared anywhere except as a listing on my sidebar- so when I do try bbPress again I won’t endup with a mess of forums all named the same.

    #184658
    scrawny
    Participant

    My php is 7.0.19 and bbPress produces blank page errors mentioned above.

    #184652
    ilovemetrics
    Participant

    Hi,

    Hate to be a bother, and I can imagine you get a million questions, but this is the only thing holding me back from launching a site I’ve been working on for 9 months, so I’m pulling my hair out over here. Any help would be appreciated. It seems like no one has been able to solve for this, given my extensive Googling on the subject.

    Yoast and any other SEO plugins aren’t compatible and just output blank, so that is not an option. Is there any way at all to access the topic title to add to the page title on bbPress topic pages?

    Thanks

    #184651
    Stephen Edgar
    Keymaster

    You shouldn’t need to do any of the above, setting your WordPress install to use German as the default language should automatically download bbPress’ translations.

    p.s. If you’re using the method above for a different reason, uploading them to wp-content/languages/bbpress instead of wp-content/languages/buddypress would be the answer 😉

Viewing 25 results - 8,776 through 8,800 (of 64,428 total)
Skip to toolbar