display avatar in mod_cbpblatest v1.2

8 years 10 months ago #162686 by tto
Hello,

As I understand I can display the avatar by adding avatar_url in :
{p[cb:userfield field="formatname" reason="list" /]} added a new <a href="{e[url]}">wall entry</a> to {r[cb:userfield field="formatname" reason="list" /]} - {e[date]}

Can you please advice with the right code to add, I couldn't manage :blush:

Thanks,

Regards,

Tariq
The following user(s) said Thank You: shawnclapp
8 years 9 months ago - 8 years 9 months ago #167129 by pepperstreet
Just got the answer in advanced forum. The PB 1.2 module description text in backend is wrong, i.e. not up-to-date.

www.joomlapolis.com/forum/154-advanced-members-support/166932-cb-profile-book-12--module-bugs#167063

Excerpt from krileon's answer:

The following no longer work, but were not removed in the XML (bug).
avatar_url, name_url, profile_url

Solution:
It supports substitutions completely so you could display whatever you want. The below displays the thumbnail avatar.

Avatar Thumbnail
[cb:userfield field="avatar" reason="list" /]

Example:
{p[cb:userfield field="avatar" reason="list" /]}
OR
{r[cb:userfield field="avatar" reason="list" /]}

Moderators: beatnantkrileon
Time to create page: 0.480 seconds

Facebook Twitter LinkedIn