Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 5,426 through 5,450 (of 64,302 total)
  • Author
    Search Results
  • #205274
    demonboy
    Participant

    Hi,

    I have a forum called ‘Introduce Yourself’. Currently the topic archive page on all forums just shows the topic title and a small ‘started by’ avatar underneath. This is fine for most forums but I’d like to show a large avatar to the left of the topic title in the Introduce Yourself forum only.

    I found this thread on a similar subject but I’m not sure how to make this work for this one forum only.

    Any pointers?

    #205271
    demonboy
    Participant

    I’ve set up some FAQs as topics in a closed forum and would like to re-order them. I came across this code:

    //* Change sort order of Topics within a specified bbpress forum
    function my_custom_display_topic_index_query ($args) {
      $thisforumid = bbp_get_forum_id();
    
      if($thisforumid == 43135) {
        $args['orderby'] = 'date';
        $args['order']   = 'ASC';
      }
    
      return $args;
    }
    add_filter('bbp_before_has_topics_parse_args', 'my_custom_display_topic_index_query '     );

    … but when I added it to my functions.php file it hid all the topics (even though at forum archive level it displayed the correct number of topics in the topic count column). Removing it returned my topics.

    Any pointers?

    josephtersoo1
    Participant

    we need a date of birth filed in bbpress just like its in buddypress.
    so as to display in on the forum. please add it to your upcoming updates or someone should crate a plugin for this.

    #205265
    josephtersoo1
    Participant

    This plugin doesn’t work for that, it doesent add to the bbpress profile metadata

    #205231
    Chuckie
    Participant

    I noticed during my testing of bbPress that if I move a topic from one forum to another that the freshness doesn’t get refreshed.

    Is this a bug or is there a design process I am not aware of?

    #205228
    Babblebey
    Participant

    I guess I will be patient for you to test this Robin

    
    $topic = bbp_get_topic_id();
    $users = get_users() ;
    $count = 0;
    foreach ($users as $user) {
        $topic_list = get_usermeta ($user->id, 'wp__bbp_favorites', false) ;
        if (in_array ($topic , $topic_list))  $count++ ;
    }
    echo $count;
    

    I am getting the error

    Warning: in_array() expects parameter 2 to be array, string given in C:\wamp\www\omna\wp-content\themes\omna2\bbpress\content-single-topic-lead.php on line 134

    #205223
    madflute
    Participant

    Thank you for your help. It took me a while to figure out what’s going on. It seems bbPressNotify is the culprit. I once installed this plugin and modified the message with it. But then when I found out it allows forum to notify only one of the three forums unless I pay for the add-on subscription, I deleted the plugin. Apparently it is still in effect. That is why it only sends a notification to the Editor forum with the message I originally defined a long time ago with bbPressNotify. I don’t know how to delete the leftover data of this plugin.

    Just for clarification, was bbPress could have done what I need without any plugin? Just recap, what I need is:
    We have 3 forums
    1) Editor forum (hidden from all) – editors subscribed
    2) Contributor forum (hidden from public) – contributors and editors subscribed
    3) Subscribers forum (public) – all registered users subscribed
    Notification from each forum new post/reply

    Did I really need bbP Private Groups plugin, and did I really need notification plugin for sending out notifications, or bbP could have done this without plugins?

    #205217
    trevorstokes
    Participant

    Hi,
    I have never edited any of our users’ roles. Some users have the bbp_participant role, but not all.
    When does this (default) role get assigned?
    How can I set all those that have no bbp role?
    The checkbox “Automatically give registered visitors the PARTICIPANT forum role ” is checked.

    Wordpress 5.2.4.
    BBPress 2.5.14

    #205209
    BCNdsg
    Participant

    Hi, I’m having this problem after installing bbpress on my website, One day web is working ok and next all pages are showing Error 404, and it all goes back to normal doing a SAVE in Permalinks (without any changes) Any ideas how to fix this?

    #205201
    junky81
    Participant

    sorry, i forgot wordpress version 5.2.4
    bbpress version 2.5.14

    #205200
    junky81
    Participant

    good morning. I have a TWO GREAT PROBLEMS:
    1) I noticed that within a category there are not all the forums I created but only the first 50! I would like to know how to increase this limit because I have not found any corresponding entry in any setting
    2) I can’t create topics with a “high” number of words because the system loads for a long time and then returns an error and doesn’t save the created topic (I can’t even understand what the limit is). the thing is repeated on different PCs and browsers and instead it does not happen if the topic has a number of words not large. also in this case I have not found options to change this limit. I don’t think this limit could have been set by BBpress because it wouldn’t make any sense.

    site http://www.forumunito.it, purchased and installed the Disputo theme (https://themeforest.net/item/disputo-wordpress-bbpress-forum-theme/21584099).

    PLEASE HELP ME!

    giancarlo from italy (sorry form my english and my lack of technical knowledge)

    ps I take this opportunity to ask if it is possible, under the categories I created, not to have the complete list of forums or even to delete the data with the number of posts and replies (0,0) for example.

    #205197
    Robin W
    Moderator

    as for editing messages

    bbPress Custom Notification Emails

    #205194
    Robin W
    Moderator

    ok, you may need to debug your email system

    start with

    WP Test Email

    then it may be your host provider is stripping emails with many bcc’s in it – some do because of spam, so then look at

    AsynCRONous bbPress Subscriptions

    let us know how you get on

    #205193

    In reply to: Search Not Working

    stracy2
    Participant

    Hi Robin. Thank you for responding.

    database size should be no problem

    I’m glad to hear that, thank you.

    This is a custom convert that is a work in progress.

    Forums, Topic, Replies all look good, along with a single word search, but we just noticed this issue with searching more than one word.

    Another clue, after enabling debug output, “sometimes” a two word search will give this error:
    “Fatal error: Allowed memory size of bytes exhausted in /opt/bitnami/apps/wordpress/htdocs/wp-includes/post.php on line 2272”

    #205189
    Robin W
    Moderator

    try

    #bbpress-forums p.bbp-topic-meta img.avatar{
    	display : none ;
    }
    #205187
    madflute
    Participant

    Thank you for your help! bbPress Notify wants $15 subscription fee for this feature, bbPress Private Group Bridge add-on, which isn’t possible with this non-profit organization site.

    I looked hard at bbPress Toolkit but I couldn’t find the way to do this. Any pointer would be appreciated.

    #205182
    Robin W
    Moderator

    could be many things

    It could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #205181

    In reply to: Search Not Working

    Robin W
    Moderator

    database size should be no problem.

    Since you already have a large bbpress forum, then has this issue just started, always been there, have you converted from another, updated from 2.5.12 ???? some history would be useful

    #205179
    Robin W
    Moderator
    #205168

    In reply to: Working Member List?

    Robin W
    Moderator

    bbpress version 2 just uses WordPress users, so look at WordPress list members plugins

    for instance

    Members List Plugin

    #205167

    In reply to: Working Member List?

    Robin W
    Moderator

    this is code from bbpress version 1 – 9 years ago, unlikely to work

    #205166
    stracy2
    Participant

    I’m using WordPress 5.2.4, bbPress 2.6 RC 7. I can privately give anyone in-the-know and willing to help a link to a test site.

    Symptoms – A search with one word typically works, but a search with more than one word typically gives HTTP error 500. Another symptom, the search first results page isn’t themed.

    The symptoms occur with any/all themes, with all plug ins disabled except bbpress.

    The symptoms appear like a server resource issue, but this is an AWS machine and more memory/CPU, increasing memory_limit in php.ini, doesn’t change symptoms.

    Is there a limit on database size bbPress can handle? The site has roughly 18K users, 100 Forums, 30K Topics, 160K replies.

    I’m grateful for any help, direction, diagnostics.

    #205150

    In reply to: bbpress Loop Argument

    Robin W
    Moderator

    I’d be tempted to just clone the bbp_has_topics function

    eg

    add this to your functions file

    function babblebey_has_topics( $args = '' ) {
    	global $wp_rewrite;
    
    	/** Defaults **************************************************************/
    
    	// Other defaults
    	$default_topic_search  = !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : false;
    	$default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ) && ( false === $default_topic_search );
    	$default_post_parent   = bbp_is_single_forum() ? bbp_get_forum_id() : 'any';
    
    	// Default argument array
    	$default = array(
    		'post_type'      => bbp_get_topic_post_type(), // Narrow query down to bbPress topics
    		'post_parent'    => $default_post_parent,      // Forum ID
    		'meta_key'       => '_bbp_last_active_time',   // Make sure topic has some last activity time
    		'orderby'        => 'meta_value',              // 'meta_value', 'author', 'date', 'title', 'modified', 'parent', rand',
    		'order'          => 'DESC',                    // 'ASC', 'DESC'
    		'posts_per_page' => -1, 						// Topics per page
    		'paged'          => bbp_get_paged(),           // Page Number
    		's'              => $default_topic_search,     // Topic Search
    		'show_stickies'  => $default_show_stickies,    // Ignore sticky topics?
    		'max_num_pages'  => false,                     // Maximum number of pages to show
    	);
    
    	// 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';
    	}
    
    	// Maybe query for topic tags
    	if ( bbp_is_topic_tag() ) {
    		$default['term']     = bbp_get_topic_tag_slug();
    		$default['taxonomy'] = bbp_get_topic_tag_tax_id();
    	}
    
    	/** Setup *****************************************************************/
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, $default, 'babblebey_topics' );
    
    	// Get bbPress
    	$bbp = bbpress();
    
    	// Call the query
    	$bbp->topic_query = new WP_Query( $r );
    
    	// Set post_parent back to 0 if originally set to 'any'
    	if ( 'any' === $r['post_parent'] )
    		$r['post_parent'] = 0;
    
    	// Limited the number of pages shown
    	if ( !empty( $r['max_num_pages'] ) )
    		$bbp->topic_query->max_num_pages = $r['max_num_pages'];
    
    	/** Stickies **************************************************************/
    
    	// Put sticky posts at the top of the posts array
    	if ( !empty( $r['show_stickies'] ) && $r['paged'] <= 1 ) {
    
    		// Get super stickies and stickies in this forum
    		$stickies = bbp_get_super_stickies();
    
    		// Get stickies for current forum
    		if ( !empty( $r['post_parent'] ) ) {
    			$stickies = array_merge( $stickies, bbp_get_stickies( $r['post_parent'] ) );
    		}
    
    		// Remove any duplicate stickies
    		$stickies = array_unique( $stickies );
    
    		// We have stickies
    		if ( is_array( $stickies ) && !empty( $stickies ) ) {
    
    			// Start the offset at -1 so first sticky is at correct 0 offset
    			$sticky_offset = -1;
    
    			// Loop over topics and relocate stickies to the front.
    			foreach ( $stickies as $sticky_index => $sticky_ID ) {
    
    				// Get the post offset from the posts array
    				$post_offsets = wp_filter_object_list( $bbp->topic_query->posts, array( 'ID' => $sticky_ID ), 'OR', 'ID' );
    
    				// Continue if no post offsets
    				if ( empty( $post_offsets ) ) {
    					continue;
    				}
    
    				// Loop over posts in current query and splice them into position
    				foreach ( array_keys( $post_offsets ) as $post_offset ) {
    					$sticky_offset++;
    
    					$sticky = $bbp->topic_query->posts[$post_offset];
    
    					// Remove sticky from current position
    					array_splice( $bbp->topic_query->posts, $post_offset, 1 );
    
    					// Move to front, after other stickies
    					array_splice( $bbp->topic_query->posts, $sticky_offset, 0, array( $sticky ) );
    
    					// Cleanup
    					unset( $stickies[$sticky_index] );
    					unset( $sticky );
    				}
    
    				// Cleanup
    				unset( $post_offsets );
    			}
    
    			// Cleanup
    			unset( $sticky_offset );
    
    			// If any posts have been excluded specifically, Ignore those that are sticky.
    			if ( !empty( $stickies ) && !empty( $r['post__not_in'] ) ) {
    				$stickies = array_diff( $stickies, $r['post__not_in'] );
    			}
    
    			// Fetch sticky posts that weren't in the query results
    			if ( !empty( $stickies ) ) {
    
    				// Query to use in get_posts to get sticky posts
    				$sticky_query = array(
    					'post_type'   => bbp_get_topic_post_type(),
    					'post_parent' => 'any',
    					'meta_key'    => '_bbp_last_active_time',
    					'orderby'     => 'meta_value',
    					'order'       => 'DESC',
    					'include'     => $stickies
    				);
    
    				// Cleanup
    				unset( $stickies );
    
    				// Conditionally exclude private/hidden forum ID's
    				$exclude_forum_ids = bbp_exclude_forum_ids( 'array' );
    				if ( ! empty( $exclude_forum_ids ) ) {
    					$sticky_query['post_parent__not_in'] = $exclude_forum_ids;
    				}
    
    				// What are the default allowed statuses (based on user caps)
    				if ( bbp_get_view_all() ) {
    					$sticky_query['post_status'] = $r['post_status'];
    
    				// Lean on the 'perm' query var value of 'readable' to provide statuses
    				} else {
    					$sticky_query['post_status'] = $r['perm'];
    				}
    
    				// Get all stickies
    				$sticky_posts = get_posts( $sticky_query );
    				if ( !empty( $sticky_posts ) ) {
    
    					// Get a count of the visible stickies
    					$sticky_count = count( $sticky_posts );
    
    					// Merge the stickies topics with the query topics .
    					$bbp->topic_query->posts       = array_merge( $sticky_posts, $bbp->topic_query->posts );
    
    					// Adjust loop and counts for new sticky positions
    					$bbp->topic_query->found_posts = (int) $bbp->topic_query->found_posts + (int) $sticky_count;
    					$bbp->topic_query->post_count  = (int) $bbp->topic_query->post_count  + (int) $sticky_count;
    
    					// Cleanup
    					unset( $sticky_posts );
    				}
    			}
    		}
    	}
    
    	// If no limit to posts per page, set it to the current post_count
    	if ( -1 === $r['posts_per_page'] )
    		$r['posts_per_page'] = $bbp->topic_query->post_count;
    
    	// Add pagination values to query object
    	$bbp->topic_query->posts_per_page = $r['posts_per_page'];
    	$bbp->topic_query->paged          = $r['paged'];
    
    	// Only add pagination if query returned results
    	if ( ( (int) $bbp->topic_query->post_count || (int) $bbp->topic_query->found_posts ) && (int) $bbp->topic_query->posts_per_page ) {
    
    		// Limit the number of topics shown based on maximum allowed pages
    		if ( ( !empty( $r['max_num_pages'] ) ) && $bbp->topic_query->found_posts > $bbp->topic_query->max_num_pages * $bbp->topic_query->post_count )
    			$bbp->topic_query->found_posts = $bbp->topic_query->max_num_pages * $bbp->topic_query->post_count;
    
    		// If pretty permalinks are enabled, make our pagination pretty
    		if ( $wp_rewrite->using_permalinks() ) {
    
    			// User's topics
    			if ( bbp_is_single_user_topics() ) {
    				$base = bbp_get_user_topics_created_url( bbp_get_displayed_user_id() );
    
    			// User's favorites
    			} elseif ( bbp_is_favorites() ) {
    				$base = bbp_get_favorites_permalink( bbp_get_displayed_user_id() );
    
    			// User's subscriptions
    			} elseif ( bbp_is_subscriptions() ) {
    				$base = bbp_get_subscriptions_permalink( bbp_get_displayed_user_id() );
    
    			// Root profile page
    			} elseif ( bbp_is_single_user() ) {
    				$base = bbp_get_user_profile_url( bbp_get_displayed_user_id() );
    
    			// View
    			} elseif ( bbp_is_single_view() ) {
    				$base = bbp_get_view_url();
    
    			// Topic tag
    			} elseif ( bbp_is_topic_tag() ) {
    				$base = bbp_get_topic_tag_link();
    
    			// Page or single post
    			} elseif ( is_page() || is_single() ) {
    				$base = get_permalink();
    
    			// Forum archive
    			} elseif ( bbp_is_forum_archive() ) {
    				$base = bbp_get_forums_url();
    
    			// Topic archive
    			} elseif ( bbp_is_topic_archive() ) {
    				$base = bbp_get_topics_url();
    
    			// Default
    			} else {
    				$base = get_permalink( (int) $r['post_parent'] );
    			}
    
    			// Use pagination base
    			$base = trailingslashit( $base ) . user_trailingslashit( $wp_rewrite->pagination_base . '/%#%/' );
    
    		// Unpretty pagination
    		} else {
    			$base = add_query_arg( 'paged', '%#%' );
    		}
    
    		// Pagination settings with filter
    		$bbp_topic_pagination = apply_filters( 'bbp_topic_pagination', array (
    			'base'      => $base,
    			'format'    => '',
    			'total'     => $r['posts_per_page'] === $bbp->topic_query->found_posts ? 1 : ceil( (int) $bbp->topic_query->found_posts / (int) $r['posts_per_page'] ),
    			'current'   => (int) $bbp->topic_query->paged,
    			'prev_text' => is_rtl() ? '&rarr;' : '&larr;',
    			'next_text' => is_rtl() ? '&larr;' : '&rarr;',
    			'mid_size'  => 1
    		) );
    
    		// Add pagination to query object
    		$bbp->topic_query->pagination_links = paginate_links( $bbp_topic_pagination );
    
    		// Remove first page from pagination
    		$bbp->topic_query->pagination_links = str_replace( $wp_rewrite->pagination_base . "/1/'", "'", $bbp->topic_query->pagination_links );
    	}
    
    	// Return object
    	return apply_filters( 'babblebey_has_topics', $bbp->topic_query->have_posts(), $bbp->topic_query );
    }

    which is just bbp_has_topics’ renamed with pagination changed to -1

    and then call that

    berry metal
    Participant

    I want to output bbPress single topic shortcodes with different IDs, through my single post template.

    On post with the title “A” shortcode [bbp-single-topic id=6041], on post with the title “B” shortcode [bbp-single-topic id=6042], etc…

    And the matching I need it via title strings, meaning that the topic with id 6041 would have the title “A”, and the topic with id 6042 would have the title “B”.

    How to achieve this, and what would be the dynamic query?

    I am using bbPress instead of comments, as they are post type, and I want to use this advantage.

    #205138

    In reply to: bbpress Loop Argument

    Robin W
    Moderator

    given that

    get_template_part( ‘template-parts/topic’, ‘card’ );

    is from your theme (or other plugin) not bbpress, not sure what is taking the pagination.

    the usual solution would be to parse args eg

    add_filter ('bbp_before_has_topics_parse_args', rew_has_topics') ;
    
    function rew_has_topics( $args = '' ) {
    	$args['posts_per_page'] = '-1' ;
    return $args;
    }
Viewing 25 results - 5,426 through 5,450 (of 64,302 total)
Skip to toolbar