Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] avatar in CB online module

10 years 9 months ago - 10 years 9 months ago #243549 by thewebsurfer
[SOLVED] avatar in CB online module was created by thewebsurfer
how can i add the avatar in CB online module (near the username)?
Last edit: 10 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
10 years 9 months ago #243575 by krileon
Replied by krileon on topic avatar in CB online module
You'd need to modify the module and add avatar output to it. With CB 2.0 all the modules use Joomla layouts making adjustments much easier (and allows template overrides), but with CB 2.0 there is already a mode to show avatars.


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.

10 years 9 months ago #243598 by thewebsurfer
Replied by thewebsurfer on topic avatar in CB online module
could you tell me the correct way to edit the module?

i could use the field in this way, i guess there's a better and safer way (who take care also empty avatar)
Code:
$result .= "<li> <img src=".$row->avatar."> <a href='" . $_CB_framework->userProfileUrl( (int) $row->userid ) . "' class='mod_login".$class_sfx."'>".htmlspecialchars(getNameFormatOnline($row->name,$row->username,$ueConfig['name_format']))."</a></li>\n";

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
10 years 9 months ago #243638 by krileon
Replied by krileon on topic avatar in CB online module
We do not support core edits so I can not help you in that regard. You would need to use getFields API as documented below.

www.joomlapolis.com/support/tutorials/120-api-usage/18361-obtaining-field-values-through-getfields-api


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.

10 years 9 months ago - 10 years 9 months ago #243651 by pepperstreet
Replied by pepperstreet on topic avatar in CB online module

thewebsurfer wrote: how can i add the avatar in CB online module (near the username)?


Here is a FREE module by S4J . You just need to register a free account to download the module.
You might also find some code snippets and hints inside ;-)
Last edit: 10 years 9 months ago by pepperstreet.
The following user(s) said Thank You: krileon

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

10 years 9 months ago #243660 by thewebsurfer
Replied by thewebsurfer on topic avatar in CB online module

pepperstreet wrote:

thewebsurfer wrote: how can i add the avatar in CB online module (near the username)?


Here is a FREE module by S4J . You just need to register a free account to download the module.
You might also find some code snippets and hints inside ;-)


thanks, its a bit late i already done my hack to comprofiler online module :)

very thanks anyway :)

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

Moderators: beatnantkrileon
Powered by Kunena Forum