Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get larger sized avatars displayed in freshness column


  • hotconductor
    Participant

    @hotconductor

    @Robkk this is likely too specific for this thread but can you point me in the right direction to get avatars displaying on the index as in your screenshot? That looks brillian!

Viewing 2 replies - 1 through 2 (of 2 total)

  • Robkk
    Moderator

    @robkk

    I split your topic, since it was kind of off topic.

    This is the code I used to have the large avatar like that in the freshness column. This code should replace the bbp-topic-freshness list in loop-single-topic.php that should be copied in your child theme. You may have to style the avatar by floating it to the left and giving it a margin to the right too by using the class bbp-topic-freshness-author-av.

    	<li class="bbp-topic-freshness">
    
    	<span class="bbp-topic-freshness-author-av"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 48 , 'type' => 'avatar' ) ); ?></span>
    
    	<div class="bbp-topic-meta">
    
    		<?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?>
    
    		<?php bbp_topic_freshness_link(); ?>
    
    		<?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?>
    
    			<?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
    
    			<span class="bbp-topic-freshness-author"><?php printf( __('by %1$s', 'bbpress' ), bbp_get_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'name' ) ) ); ?></span>
    
    			<?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
    
    		</div>
    
    	</li>

    DeepBlue
    Participant

    @deepblue5

    Hi

    Im working on this on file loop-single-topic.php

    How can i show only user avatar ?

    as in the code above this line show avatar AND user name :
    <span class=”bbp-topic-freshness-author-av”><?php bbp_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 48 , ‘type’ => ‘avatar’ ) ); ?></span>

    How can i show only avatar on left side and on right side date of last post AND last poster name

    like this bbpress site for instance:

    https://olympus.crumina.net/groups/hiking-route/forum/

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar