Skip to:
Content
Pages
Categories
Search
Top
Bottom

Difference between those two code tags?

  • @macpresss

    Participant

    I’m just curious because i would like to edit the author’s gravatar and how it’s showed in the source to get more CSS options.

    bbp_topic_author_avatar

    bbp_get_topic_author_avatar

    When i use the bbp_topic_author_avatar() version inside the loop-single-topic.php file it shows a perfect 40 pixels gravatar like explained on the website with all possible bbPress code tags.
    Great but when i try to make this gravatar 80 pixels instead of the default 40 there is something wrong because the code doesn’t accept my array when i try do this.

     '80' )); ?>
    

    Even when i do this it doesn’t work.

     80 )); ?>
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • @macpresss

    Participant

    Sorry this forum doesn’t except the starting and closing PHP tags.

    bbp_topic_author_avatar( array( ‘size’ => ’80’ ));

    and

    bbp_topic_author_avatar( array( ‘size’ => 80 ));

    Both don’t work..

    @zaerl

    Participant

    The function doesn’t accept an array. See get_avatar: https://core.trac.wordpress.org/browser/tags/3.4.2/wp-includes/pluggable.php#L1583

    bbp_topic_author_avatar(0, 80);

    @macpresss

    Participant

    Thanks,

    I’ve been searching inside the ‘includes’ folder to see if i could understand whats possible with some tags.

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