Show user image/avatar in custom block?
Permalink 1 user found helpful
I would like to show the image/avatar attached to user x.
I have a custom block showing a list of members and their attributes.
Checking for images/avatar with $ui->hasAvatar() return true. But how do I get the image.
I think outputUserAvatar() is the trick, but how do I use this function?
Kind regards, Jens Griebel
I have a custom block showing a list of members and their attributes.
Checking for images/avatar with $ui->hasAvatar() return true. But how do I get the image.
I think outputUserAvatar() is the trick, but how do I use this function?
Kind regards, Jens Griebel
Viewing 15 lines of 19 lines. View entire code block.
thx^
this code above not work for me :/
I found this works fine
http://www.concrete5.org/community/forums/customizing_c5/avatar-in-...
I found this works fine
http://www.concrete5.org/community/forums/customizing_c5/avatar-in-...
I'm trying to output the author's Avatar as part of the blog_entry page. On the front side it works handy dandy but if I open the blog_entry page under Page Defaults to setup the defaults for the page then this code returns an error:
do you know of a solution to this? maybe this code is outdated now that we're on 5.5.2
Thanks,
Fatal error: Call to a member function hasAvatar() on a non-object in /home/website/public_html/website/packages/cannonf700_corporate_blog/themes/corporate_blog/blog_entry.php on line 21
do you know of a solution to this? maybe this code is outdated now that we're on 5.5.2
Thanks,
Hey, did you found a solution? Thanks in advance.
Found solution here:http://www.concrete5.org/community/forums/customizing_c5/avatar-in-...