• Hello again, this is my second request for support.

    Thank you for helping me with the first request.

    Thank YOU again for this plugin, you should create a paid version or add a donate link in the settings of this free version for us to help you out a bit as a way to give you thanks for this great plugin.

    The reason of this support request is that I wanted to know if there’s anyway for you to provide us with a code for the functions.php so the shortcode [wp-referral-code var=”invited_list”] shows up the Avatar next to their usernames in the invited list.

    Thanks again!
    GOD Bless you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shalior

    (@shalior)

    Hey, Welcome back pal. np.
    It’s okay, this is a free open-source software and it’ll remain this way. Thank you tough.

    About your request, the below snippet shows the avatar but it needs CSS styling to look nice! Or maybe it is okay already. 48 in code is for the size in pixels.

    It is NOT tested.

    add_filter( 'wp_referral_code_invited_user_text', function ($login, $user_id){
    	ob_start();
    	?>
    <div class="shalior-avatar-username">
    		<div><?php get_avatar($user_id, 48) ?></div><div><?php esc_html_e($login); ?></div>
    </div>
    <?php
    	return ob_get_clean();
    }, 10, 2 );
    • This reply was modified 3 years, 7 months ago by shalior.
    Thread Starter webpp

    (@webpp)

    Thank YOU again for the fast response, unfortunately the code did not work. Maybe because of what you said about the code, “It is NOT tested.”

    But I do thank you again for the good intentions.

    I hope when you get a little of free time for the next plugin update you could help us all with that Avatar thingy, it will make it look so much better.

    I am requesting another support, so I will write it on top of this one in a seperate ticket.

    Thank YOU! 🙂

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

The topic ‘Avatar’ is closed to new replies.