Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • in reply to: Customize avatar style depending on user role #56163
     Bebunch
    Participant

    Hi,

    Thanks !

    I found another way by using the standard WP “get_avatar” filter : it gives the user Id as an argument and I’m able to get the user role and add my now class to the avatar.

    COPY CODE
    add_filter('get_avatar','change_avatar_css', 10, 5);
    function change_avatar_css($class, $id_or_email, $size, $default, $alt) {
    	$class = str_replace('class="avatar', 'class="avatar-bs-role-'.bs_user_customrole($id_or_email).' avatar', $class) ;
    	return $class;
    }
    in reply to: Customize avatar style depending on user role #55377
     Bebunch
    Participant

    Hi Laura,

    Thanks for your answer. BuddyPress Verified does part of the job : it only works on the member profile page. It seems that no badge is displayed on avatar in forums or activity feed.

    Do you use a custom Kleo function to generate the avatar ? Do you know which function (custom, WP, BuddyPress, bbPress) I should rewrite (or filter) ?

    Thanks.

    in reply to: Replace "Comment" button by an icon in Activity #51445
     Bebunch
    Participant

    Hi,

    I found my problem : I was modifying the “comments.php” file and I needed to work on “entry.php”…

    Sorry for this :-/

    in reply to: Replace "Comment" button by an icon in Activity #50987
     Bebunch
    Participant

    Yes I tried, but no change.

    Is there a php file to create in the child theme in order to declare the new comment.php template ? I couldn’t find anything but I may have missed something

    in reply to: Custom sidebar depending on page #50590
     Bebunch
    Participant

    Hi,

    Thanks for your answer. I would have expected something more simple 🙂

    I tried “Content Aware Sidebars” but it seems it does not work on all pages. For exemple, it seems ok on the main blog page, but not on forums…

    I’ll try a conditional widget plugin.

    in reply to: Mark Topic Answer as Favorite #50384
     Bebunch
    Participant

    Hi,

    Is it something you plan to do in a future release ?

    in reply to: forum menu not showing to visitors #50163
     Bebunch
    Participant

    Hi,

    I found why : I used the “Forum” menu from the “BuddyPress” section. This menu only shows to contacted users. I created a custom menu from the “Link” section and it works fine !

    in reply to: Static side menu #49288
     Bebunch
    Participant

    Hi,

    Yes, I’d prefer this 🙂

    thanks.

    in reply to: Static side menu #48784
     Bebunch
    Participant

    Hello,

    I’m not really comfortable with giving an admin access to my website… How can we do this another way ?

    Furthermore, why do you need an admin access for this ?

    Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

Log in with your credentials

Forgot your details?