BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47652

    Ohh, I see, thank you for your help so far, thank you very much for your attention Brajesh!

    • This reply was modified 1 year, 4 months ago by VITOR MATOS.
  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47648

    Hey Brajesh,
    taking advantage of the question about the follow output, how i also insert A BUTTON TO FOLLOW in this same single-post-template for the current author

    just like this
    https://prnt.sc/crKvdE2R9_W1

    • This reply was modified 1 year, 4 months ago by VITOR MATOS.
  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47637

    Hello Ravi,
    Yes, i want to place this %followers_number% from the buddyboss/bp function/hook (not the r-a-y plugin) to a post single template (showing current author followers), because the alternative plugin are crashing here, and i just need this output function

    example:
    https://prnt.sc/Uc8CX8vKTADW

    • This reply was modified 1 year, 4 months ago by VITOR MATOS.
    • This reply was modified 1 year, 4 months ago by VITOR MATOS.
  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47620

    i place this code to bp-custom.php but it only show on the user profile and if logged-in, i need to guest user too! and i need a method to display the count to input in blog post

    
    <?php
     /**
     * Add a "Followers (X)" tab to the members directory.
     *
     * This is so the logged-in user can filter the members directory to only
     * users that the current user is following.
     *
     * @uses bp_follow_total_follow_counts() Get the following/followers counts for a user.
     */
    function bpfollow_add_followers_tab() {
    
    	if ( ! is_user_logged_in() ) {
    		return;
    	}
    
    	$count = bp_follow_get_the_followers_count();
    
    	if ( empty( $count ) ) {
    		return;
    	}
    ?>
    
    	<li id="members-followers"><a>"><?php printf( __( 'My Followers <span>%d</span>', 'buddypress-followers' ), esc_html( $count ) ) ?></a></li>
    
    <?php
    }
    add_action( 'bp_members_directory_member_types', 'bpfollow_add_followers_tab' ); 
    ?>
    
    • This reply was modified 1 year, 4 months ago by VITOR MATOS.
  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47619

    Obs: i need this to show this count on a post for logged and guest users

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47617

    Hey Brajesh, how can use this shortcode to only show total follower count from the current user?

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47616

    Just to clarify, i dont know if this custom php are correct but its working for now, maybe Brajesh can fix my code….

    Just to add info about new elementor devs with buddyblog,

    I Fixed the issue with 1 step:

    1. giving the entry-content-wrap class 0padding in the css:

    ‘#item-body .bbl-posts-list .entry-content-wrap {
    padding: 0px 0px 0px;
    }’

    (that can be customized in your custom.css from theme our with the template overwriten like:
    theme-child\buddyblog\buddyboss\assets\css\default.css)

    https://prnt.sc/aYo3hcOJdAg3
    finally now the grid look pretty good and customizable ^^

    If Some dev can check the php code and correct me if the code can break something

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47611

    Hello Brajesh,
    Thank you for you attention.
    I dont have too much experience with php,

    The Entry loop that you mention worked with elementor! but i need a advice on hiding this “entry-content-wrap” section without remove the edit and delete button for the author of post…

    My current entry-content.php:

    
    <?php
    /**
     * Template part for displaying posts
     *
     * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
     *
     * @package BuddyBoss_Theme
     */
    ?>
    
    <?php 
    global $post;
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<?php if ( !is_single() || is_related_posts() ) { ?>
    		<div class="post-inner-wrap">
    	<?php } ?>
    <?php echo do_shortcode( '[elementor-template id="931"]' ); ?>
    
    	
    
    	<div class="entry-content-wrap">
    		
    	
    		
    		<?php if ( is_singular() && ! is_related_posts() ) { ?>
    			<div class="entry-content">
    			
    			</div><!-- .entry-content -->
    		<?php } ?>
            <div class="post-actions">
    			<?php echo bblpro_get_post_edit_link( get_the_ID() ); ?>
    			<?php echo bblpro_get_post_delete_link( get_the_ID() ); ?>
            </div>
    	</div>
    
    	<?php if ( !is_single() || is_related_posts() ) { ?>
    		</div><!--Close '.post-inner-wrap'-->
    	<?php } ?>
    
    </article><!-- #post-<?php the_ID(); ?> -->
    
    <?php if( is_single() && ( has_category() || has_tag() ) ) { ?>
    	<div class="post-meta-wrapper">
    		
    
    		
    	
            <div class="post-actions">
    			<?php echo bblpro_get_post_edit_link( get_the_ID() ); ?>
    			<?php echo bblpro_get_post_delete_link( get_the_ID() ); ?>
            </div>
    	</div>
    <?php } ?>
    
    

    Screenshot of the section in Private Browser (guest) that i want to remove for guest (not the author post for continue with the edit and delete button):
    https://prnt.sc/B669zLTJIbp-

    -Best Regards

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47579

    Hey Brajesh, thanks you for all attention, the issue as resolved using the display in the elementor “video” element with the dinamic acf field url and not the oembed shortcode.

    Thank You

  • Participant
    Level: Initiated
    Posts: 20
    VITOR MATOS on #47563

    this code work perfect but after some time this is happening with the new posts (not old posts)

    https://prnt.sc/b-2JOZgNjBqS