Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Hi,
I´m creating a customtemplate for memberlist.
How is the template tag or php to display the author background image in memberlist (memberlist_v2.php) or card.php templates?
Thanks in advanced
solved:
<?php if (isset($user_id) && $userpro->has(‘custom_profile_bg’, $user_id) ) { ?>
<div class=”ad-bg-memberlist” style=”background-image: url(<?php echo $userpro->correct_space_in_url( userpro_profile_data(‘custom_profile_bg’, $user_id) ); ?>) !important;”>
</div>
<?php } ?>
Hi arohadigital,
That’s a great solution! Would you know how to use the wordpress generated thumbnail of the custom_profile_bg ? Because if the user is uploading a large image it’ll load a large file for each users…
You must be logged in to reply to this topic.