nophoto_n.png

9 years 11 months ago #245105 by fabioweb90
nophoto_n.png was created by fabioweb90
Hello,
in my profile i have 2 CB image field. Can i set nophoto_n1.png for one field and nophoto_n2.png for the second one?

Thank you

Please Log in to join the conversation.

9 years 11 months ago #245112 by krileon
Replied by krileon on topic nophoto_n.png
Not in CB 1.x without using a Delimiter field to handle the display. With CB 2.x you're able to select the default image (or no default at all) for every image field.


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.

9 years 11 months ago #245117 by fabioweb90
Replied by fabioweb90 on topic nophoto_n.png
Good and where can i do this?

Please Log in to join the conversation.

9 years 10 months ago #245157 by krileon
Replied by krileon on topic nophoto_n.png
You can use substitutions like the below to output a delimiter field that's conditioned based off your image field. Below example uses the avatar.

[cb:if avatar!~"nophoto_n.png|tnnophoto_n.png"]show avatar[/cb:if]
[cb:if avatar~"nophoto_n.png|tnnophoto_n.png"]show no image[/cb:if]

Use search term "nophoto_n" when searching the forums for more examples of using substitutions with 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.

9 years 10 months ago #245160 by fabioweb90
Replied by fabioweb90 on topic nophoto_n.png
I have to install a plugin so that your schortcode works correctly or i insert it in a wrong place?

i tried to search but i haven't found nothing usefull

Thank you
Attachments:

Please Log in to join the conversation.

9 years 10 months ago #245180 by krileon
Replied by krileon on topic nophoto_n.png
You don't need to install a plugin. You need to create a "Fields delimiter" field (note this is renamed to "Custom HTML" in CB 2.0). You then supply your substitutions to the description of it, which it'll output.


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.

Moderators: beatnantkrileon
Time to create page: 0.216 seconds

Facebook Twitter LinkedIn