Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 8,826 through 8,850 (of 64,471 total)
  • Author
    Search Results
  • #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 😉

    #184642
    jeazyee
    Participant

    Same problem on my page also using PHP 7.1 latest version of bbPress and SSL with valid certificate and also use forced SSL over cloudflare hope there will be a fix soon.

    EDIT: Downgrading to PHP 7.0 will solve the problem for now, but anyway I hope PHP 7.1 support will be there soon.

    #184640
    Robin W
    Moderator

    url, screenshot, more detail?

    how much if nay of this have you been through

    Before Posting

    #184637

    Topic: glossary

    in forum Plugins

    I would like to make a glossary with bbpress, any idea?
    Thanks

    // my website https://www.lottery.co.th/forums

    sourfew
    Participant

    I have ElasticPress and working for WordPress but not for bbpress. What do I need to do to get it working?

    #184634
    blueshiningstar
    Participant

    Thank you Robin !

    I tried to reload the css, but no change.

    I tried to change other settings:
    Forums index styling is working. I changed the size of “3. Forum Headings Font”.

    “Topic/Reply Styling – 5. Topic/Reply Date Font” doesn’t work.

    So,“Topic/Reply Styling” doesn’t work.

    I doubt below plugin.
    “bbPress – Sort topic replies1.0.3”

    wci
    Participant

    Dear support team,

    please help to solve the issue, while buddypress is active then bbpress search results are not displayed as it should, because the URL is then forward to main page instead of display the search results.

    Screen video > https://www.screencast.com/t/DjsAlpyn2s

    Looking forward to your help.

    BR, Alex

    #184612
    andreas7777777
    Participant

    Hello,

    I run a very large community (ca. 3 Mio posts, 60k users) and using over 17 years Woltlab as community software. Basically, my community is a forum / discussion board, but also has a magazine, gallery and a marketplace.

    As I work for many years with WordPress on other projects, I really like the pros in using an open system. Thats the total opposite of a software like WBB from Woltlab, and its getting worser and worser.

    So, I really think its time for changing the system and that finally 😉 brings me to my questions:

    1. There is no direct importer for Woltlab, right? As far as I read you must transfer the data to phpbb and then there is an importer phpbb >> bbpress, right?

    2. How is the performance if you are running a very large community?

    3. I watched a few sites that uses bbpress, but they only give me little impressions how the functionality of the software is. Is there a documentation on how the moderation works / what functions exists?

    Thanks in advance!

    Regards, Andreas

Viewing 25 results - 8,826 through 8,850 (of 64,471 total)
Skip to toolbar