Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] How to Display Avatar in the Article

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227311 by krileon
Replied by krileon on topic How to Display Avatar in the Article
The below example will show the avatar of the user with User ID 42.

{cb:[cb:userfield field="avatar" user="42" /]}

Again, please see the tutorial as it explains each parameter and provides examples for them.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227314 by madhu
Replied by madhu on topic How to Display Avatar in the Article
Thank you sir,
but the code what you mentioned, that i understand,
but i dont know how to make admin to select a particular user, so that admin can print that users field details.
Thank you

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227329 by krileon
Replied by krileon on topic How to Display Avatar in the Article
You don't select a user. You supply it a user ID and it'll substitute in the field value for that user. There's no feature to have a dropdown selector or anything of the sort. You can find users ID within CB > User Management in the far right column under "ID".


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227342 by madhu
Replied by madhu on topic How to Display Avatar in the Article
Thank you very much sir,
but sir, it is not like manually give the userid ,
what i want is admin will select the user in the list then it should display that users fields in the article so that admin will take the print out,
so how can this can be done sir,
please guide me with one example,
please i dont know much about coding,
Thanking you
:(

Please Log in or Create an account to join the conversation.

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227345 by madhu
Replied by madhu on topic How to Display Avatar in the Article
Dear sir, sorry for my bad english,
what i mean is,
if i use {cb:[cb:userfield field="avatar" user="42" /]}
and {cb:[cb:userfield field="cb_field1" user="42" /]}
like
then it will show the fields of the user 42 only
and then for the next user number 43, I have to change the code again in the article,
so for this problem what should i do?
Please help me out
Thanking you
Madhusudhan krishnan

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 5 months ago #227356 by nant
Replied by nant on topic How to Display Avatar in the Article

madhu wrote: Dear sir, sorry for my bad english,
what i mean is,
if i use {cb:[cb:userfield field="avatar" user="42" /]}
and {cb:[cb:userfield field="cb_field1" user="42" /]}
like
then it will show the fields of the user 42 only
and then for the next user number 43, I have to change the code again in the article,
so for this problem what should i do?
Please help me out
Thanking you
Madhusudhan krishnan


Please explain exactly what you are trying to do.

Are you trying to show a specific avatar or a specific user?

Or are you trying to show the avatar of the logged in user?

Or something else?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum