Skip to Content Skip to Menu

[SOLVED] User lists not picking up the Empty Default image

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 3 weeks ago - 8 years 2 weeks ago #289662 by ricco1
Hi,

The user lists are not picking up the custom Empty Default image.

Also, I've tried many combinations in the Layout but it still not working, ie:

[cb:if avatar!~"/(nophoto_n|tnnophoto_n)\.png$/"][value][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/"]<img src="[cb:config param="live_site" /]/components/com_comprofiler/plugin/templates/default/images/avatar/MYnophoto.png" />[/cb:if]

Please advice?
Last edit: 8 years 2 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289673 by krileon
It's not necessary to do that at all anymore. You can specify new default images on a per image field basis now by editing the image field then under Parameters > Image Display then adjusting "Empty Default" as necessary. New defaults should be stored in the following location.

Image Fields:
components/com_comprofiler/plugin/templates/default/images/avatar/

Canvas Field:
components/com_comprofiler/plugin/templates/default/images/canvas/

As for your issue though maybe wrong layout? Userlist uses the "Userlist Value Layout" layout.


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.
The following user(s) said Thank You: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 3 weeks ago #289694 by ricco1
I've already specified MYnophoto.png as the new default image in Parameters > Image Display.

It gets the image for the profile but not for the list.

I know the list is supposed to get the specified new default image but I don't know why for my list it's not working and every time I update CB I'm forced to override the images in: components/com_comprofiler/plugin/templates/default/images/avatar/ as it always goes back to nophoto_n.png and tnnophoto_n.png.

I've tried the Layout override but even then its not picking up MYnophoto.png as the default image.

What could be wrong?

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 3 weeks ago #289700 by ricco1
Anyway, I've managed to overcome this problem by creating a Custom HTML field and calling the avatar in it by [cb:userfield field="avatar" /], and then using that field in the user list. Now the user list finally gets the right default image. :lol:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289751 by krileon
When you supply a new default image you need to supply a fullsize and a thumbnail size. Userlist usage uses thumbnail size and is probably why it's not finding your image. The thumbnail size should be smaller and named the same as the fullsize except prefixed with "tn".


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.
The following user(s) said Thank You: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 3 weeks ago - 8 years 3 weeks ago #289793 by ricco1
After all this years I've thought I know more, I've been so wrong :blink:. Thank you for enlightening me. lol
Last edit: 8 years 3 weeks ago by ricco1.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum