display avatar in mod_cbpblatest v1.2

12 years 11 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

Please Log in to join the conversation.

12 years 10 months ago - 12 years 10 months ago #167129 by pepperstreet
Replied by pepperstreet on topic Re: display avatar in mod_cbpblatest v1.2
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" /]}

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.161 seconds

Facebook Twitter LinkedIn