Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 701 through 725 (of 64,471 total)
  • Author
    Search Results
  • #239640
    lmstearn
    Participant

    Hi again Robin,
    Would the following changes regarding wrapper elements be of any help?
    https://github.com/bbpress/bbPress/commit/bbde786798c47b61f1ef87bd049224f351458b7b

    #239619
    uksentinel
    Participant

    Hi

    I am running BBPRESS and am looking to add a login link to Add login link to “You must be logged in to create new topics.” which appears at the bottom of Topics list when you are not logged in.

    I have copied out the Forum-Topic.php file and it is located in my Themes BBPRESS folder.

    Code in my Forum-Topic.php that I am looking to add to is ….

    <div id=”no-topic-<?php bbp_forum_id(); ?>” class=”bbp-no-topic”>
    <div class=”bbp-template-notice”>

    • <?php is_user_logged_in()
      ? esc_html_e( ‘You cannot create new topics.’, ‘bbpress’ )
      : esc_html_e( ‘You must be logged in to create new topics.’, ‘bbpress’ );
      ?>
    #239582

    In reply to: Forum widget error ?

    Robin W
    Moderator

    the errors you are seeing are not bbpress widgets as far as I know, so I cannot help you in resolving those errors

    for bbpress activity there are 2 legacy widgets, recent topics and recent replies

    #239575

    In reply to: Forum widget error ?

    Robin W
    Moderator

    ok, these don’t look like bbpress widgets – what are you trying to add?

    #239572
    Robin W
    Moderator
    .bbpress .forum h4.author {
    	display: none;
    }
    #239567
    Robin W
    Moderator

    add this to the additional css of your theme

    body.forum-archive.bbpress h5.description p {
    	display: none;
    }
    #239566
    sayhi2lonnie
    Participant

    I want to get rid of “bbPress Forums”.

    Please and thank you in advance!

    sayhi2lonnie
    Participant

    How do I get rid of the line that I highlighted in yellow?

    webcreations907
    Participant

    Wanted to share that I just finished my first bbPress theme with topics grid, it only uses bbPress and no buddypress. Profile pages have been completely customized to also include the topics grid.

    Video when users are logged in

    Theme Demo

    Hopefully allowed to share this here. 🙂

    #239552

    In reply to: Remove white bar

    Robin W
    Moderator

    This is not related to bbpress, but to your youzify plugin

    add this to your custom css

    .youzify-bbp-topic-head {
    	display: none;
    }
    #239510

    In reply to: forums not working

    Robin W
    Moderator

    You may be using one of the new FSE themes, so you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

    If not, come back

    #239507

    In reply to: Subscribe to Forum

    webcreations907
    Participant

    I have some updated code for you to try, after installing that ACF plugin I realized it wasn’t saving the post meta(your custom fields) before the mail was being called.

    So you’ll need to remove all the code previously listed including the first function, and try the below instead.

    So all you should have added is the below in your code snippets plugin, or functions.php file.

    
    
    if( function_exists( 'bbp_get_topic_post_type' ) ){
    	function newtech2_bbpress_new_topic( $post_id, $post , $update, $post_before ){
    	
    		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return;
    
    		if( !function_exists('bbp_get_topic_post_type') ){
    			return;
    		}
    
    		if ( bbp_get_topic_post_type() !== $post->post_type || ! is_admin() ) {
    			return;
    		}
    
    		if ( ! in_array( $post->post_status, [ 'private', 'publish' ] ) ) {
    			return;
    		}
    
    		if( isset( $post_before->post_status ) && $post_before->post_status == 'draft' ){
    			do_action( 'bbp_new_'.bbp_get_topic_post_type(), $post->ID , $post->post_parent, [] , $post->post_author );
    		}
    	}
    
    	add_action( 'wp_after_insert_post', 'newtech2_bbpress_new_topic', 10, 4);
    }
    
    if( !function_exists('acf_email_bbp_subscription_mail') ){
    	function acf_email_bbp_subscription_mail( $message, $topic_id, $forum_id, $user_id ) {
    		if ( function_exists( 'get_field' ) && $topic_id != 0 ) {
    			$afc_replace = array(
    				'{catch_date_time}' => get_field( 'catch_date_time', $topic_id),
    				'{anglers}'         => get_field( 'anglers', $topic_id )
    				);
    
    			$message = strtr( $message , $afc_replace);
    		}
    
    		return $message;
    	}
    	add_filter( 'bbp_forum_subscription_mail_message' , 'acf_email_bbp_subscription_mail', 100 , 4 );
    }
    
    

    You’ll just leave the below in your email template as before.

    
    
    Catch Time: {catch_date_time}
    Anglers: {anglers}
    
    

    Hopefully that works out for you

    #239504

    In reply to: Subscribe to Forum

    webcreations907
    Participant

    They are not in a template but in a functions run through filters, so if you were using bbpress without any plugins for email templates then the function it’s being called from is bbp_notify_topic_subscribers and the filter to change the message is bbp_subscription_mail_message.

    You can’t just added function with the same name, because it will cause your site to throw errors. But you can use the filter to change the message.

    Are you using bbp style pack template? If so give me the field name of one of you custom ACF fields for when you create topics, and I’ll see if I can come up with something for you.

    #239501

    In reply to: Subscribe to Forum

    newtech1
    Participant

    Whoops. I am wrong. IT IS NOW WORKING! I need to test auto login and some other features since this is a private forum.

    One issue that I do not think can be solved is I am using ACF plugin for Custom fields within topics. The email notification only has the topic text, it does not include any of the custom field results. Assume no one know how to resolve this. ACF plugin support will not help because they know nothing about bbpress.

    The reason I have forum users posting in the backend is because I could never get the ACF plugin to work properly on the frontend.

    Thanks!

    #239500

    In reply to: Subscribe to Forum

    newtech1
    Participant

    I put the following code within my theme’s functions.php file. I created a topic under the only forum I have on the site. I published it. Subscribers never received the notification. I checked emails log. It does not show any email being sent out. I am still wondering if the issue can be that if a topic is created within the backend instead of frontend could be causing the problem.

    /**
    *begin edit for subscribe notification to work
    */
    if( function_exists( 'bbp_get_topic_post_type' ) ){
    	function newtech1_bbpress_new_topic( $post ) {
    		if( isset( $post->post_type ) && $post->post_type == bbp_get_topic_post_type() ){
    			do_action( 'bbp_new_'.bbp_get_topic_post_type(), $post->ID , $post->post_parent, [] , $post->post_author );
    		}
    	}
    	add_action(  'draft_to_publish' ,  'newtech1_bbpress_new_topic', 10 );
    }
    /**
    *end edit for subscribe notification to work
    */
    webcreations907
    Participant

    I don’t have a multi site set up with bbpress, but try the below and see if that works for you. Would have to add to the code snippets plugin or your theme’s functions.php file

    
    
    if( !function_exists('mh_bbp_get_multi_site_total_users') ){
    	function mh_bbp_get_multi_site_total_users( $count ) {
    		if ( is_multisite() ) {
    			$args = array(
    				'blog_id'     => get_current_blog_id(),
    				'fields'      => 'ID'
    			);
    			$count = count( (array) get_users( $args ) );
    		}
    
    		return (int) $count;
    	}
    
    	add_filter( 'bbp_get_total_users' , 'mh_bbp_get_multi_site_total_users', 100 );
    }
    
    
    #239494

    In reply to: Subscribe to Forum

    webcreations907
    Participant

    Will try posting again..

    You can try the below code, either add it to your theme’s functions.php file, or use the code snippets plugin.

    Make sure to select your “Forum” when creating a topic and make sure the forum has subscribers to test it out on.

    
    if( function_exists( 'bbp_get_topic_post_type' ) ){
    	function newtech1_bbpress_new_topic( $post ) {
    		if( isset( $post->post_type ) && $post->post_type == bbp_get_topic_post_type() ){
    			do_action( 'bbp_new_'.bbp_get_topic_post_type(), $post->ID , $post->post_parent, [] , $post->post_author );
    		}
    	}
    	add_action(  'draft_to_publish' ,  'newtech1_bbpress_new_topic', 10 );
    }
    
    matthewdhuntley
    Participant

    Thanks for the feedback, @robin-w.

    I noticed the anchor element with the class “bbp-glance-users” (from bbpress/includes/admin/metaboxes.php), which appears in the dashboard_right_now/”At a Glance” widget, is exclusively created by the bbPress plugin through the ‘dashboard_glance_items’ WordPress hook. For a multisite, the Users count is coming from the entire network.

    I’ve traced the Users count number back to this function (from bbpress/includes/core/abstraction.php):
    function bbp_get_total_users() {
    $bbp_db = bbp_db();
    $count = $bbp_db->get_var( “SELECT COUNT(ID) as c FROM {$bbp_db->users} WHERE user_status = ‘0’” );

    // Filter & return
    return (int) apply_filters( ‘bbp_get_total_users’, (int) $count );
    }

    And I was wondering if this could be updated to check if the site is a multisite and then select the Users based on the individual site ID.

    Thanks,
    Matthew Huntley

    Robin W
    Moderator

    this is WordPress related not bbpress, suggest you post to WordPress support

    matthewdhuntley
    Participant

    Hi bbPress Folks,

    I currently have a WordPress multisite installation with several individual sites. My WordPress version is 5.9.1 and the bbPress version is 2.6.9.

    On any given individual site’s WP Dashboard, in the “dashboard_right_now”/”At a Glance” section, the number of users shown is reflective of the total number of users on the entire multisite network, as opposed to the total number of User on the individual site.

    When it comes to multisite installations, can the output logic for this Users number be updated to reflect the number of Users for an individual site instead of the entire multisite network?

    Thanks very much,
    Matthew Huntley

    #239484
    webcreations907
    Participant

    You could try the below

    
    .bbpress.topic-template-default .cs-entry__header{
      display: none;
    }
    
    #239481

    In reply to: Subscribe to Forum

    newtech1
    Participant

    Finally getting back to this topic.
    I have installed the ‘check and log email’ plugin. It shows all other plugins are sending out emails, but bbpress is not sending out emails to subscribers. What could be the issue.

    The way we use bbpress is that the topics are posted via the backend. All users are posting as moderators. Would there be any reason that would be preventing email notifications from being sent. I do not see any reason that would be the case.

    #239450
    kris927
    Participant

    Bonjour,
    Je dois transférer un forum bbpress de l’ancien site au nouveau site.
    Dans l’ancien site, je n’ai pas les champs forum/sujets/réponses dans le dashboard WordPress, rien qui puisse m’amener dans les paramètres de bbpress (même en passant par la section extension, pas de lien réglage ou paramètre sur bbpress).
    J’ai essayé un export/import par csv ça ne fonctionne pas mon forum reste vide sur le nouveau site.
    J’ai essayé via le ftp idem.
    Comment je peux faire pour récupérer les données du forum et les transférer dans le nouveau ?

    En vous remerciant pour votre aide.

    #239448
    Story Saver
    Participant

    Custom code is required for displaying it in your forums. You should insert the provided code into either your functions.php file, bbpress-functions.php file, or a functionality plugin.
    https://storysaver.page/

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