[#1593] Image field shows avatar as default image

12 years 5 months ago - 12 years 5 months ago #181586 by fkang
Hi,

I was trying to create a new tab and I added an image field.
The problem is, when no image is uploaded, a default picture is displayed. That default image is the avatar.

You can check through this URL : www.linkywine.fr/index.php

You can use the following account :
username : test
password : 666666

The tab I created is "Company". If you look at the member list, for the user 'admin', it is the avatar which is displayed.

How can I set things to display an image only if one has been uploaded ?

Thanks

Please Log in to join the conversation.

12 years 5 months ago #181608 by krileon
Replied by krileon on topic Re: Image field shows avatar as default image
Image fields always display the default image when nothing is supplied, working as intended. Default image is located as follows for your site.

components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png

It's always used when no image is supplied for image fields.


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 to join the conversation.

12 years 5 months ago #181615 by fkang
Arf :(

Thanks for your reply...

And I guess there is no way to specify something like "show nothing if empty" or assign a default image for a specific field.

Please Log in to join the conversation.

12 years 5 months ago #181616 by krileon
Replied by krileon on topic Re: Image field shows avatar as default image

And I guess there is no way to specify something like "show nothing if empty" or assign a default image for a specific field.

Nope not currently, but we've a feature ticket on forge so perhaps for a later release.


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 to join the conversation.

12 years 5 months ago #181624 by fkang

krileon wrote:

And I guess there is no way to specify something like "show nothing if empty" or assign a default image for a specific field.

Nope not currently, but we've a feature ticket on forge so perhaps for a later release.


:S
Well, thanks for replying :)

Please Log in to join the conversation.

12 years 5 months ago #181632 by pepperstreet
Replied by pepperstreet on topic Re: Image field shows avatar as default image
@fkang
Thanks for posting this "feature-bug". Funny, I never noticed this behavior myself. Than i have to think twice about my last idea with multiple image fields. Looking forward to a new default image option in next release ;-)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.358 seconds

Facebook Twitter LinkedIn