Skip to Content Skip to Menu

[#5183] Hide Profile Fields / Tabs

9 years 8 months ago #260355 by pranaydhruv
Replied by pranaydhruv on topic Hide Profile Fields / Tabs
hello Kyle,

this is the one i tried but no change.

[cb:if cb_avatarprivate="1"]<img src="http://localhost/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]

Thanks
Pranay

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 8 months ago #260357 by krileon
Replied by krileon on topic Hide Profile Fields / Tabs
That should've worked fine. Please see the below for substitution usage. Please ensure you're supplying it to the layout parameter of the avatar field.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb

Please also ensure you're using latest CB 2.0.7 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 or Create an account to join the conversation.

9 years 8 months ago #260443 by pranaydhruv
Replied by pranaydhruv on topic Hide Profile Fields / Tabs
Hello Kyle,

I am supplying this in the Profile value layout area of a check box field i created. Then i positioned it to show on the potrait tab same as the Avatar field. Only that this would show when the user makes his avatar pic Private.I have already updated to 2.0.7

Thanks
Pranay

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 8 months ago #260446 by krileon
Replied by krileon on topic Hide Profile Fields / Tabs
Your layout substitution should be on the avatar field and not on the checkbox. Please see my original suggestion where it's already setup to handle such usage.


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.

9 years 8 months ago #260455 by pranaydhruv
Replied by pranaydhruv on topic Hide Profile Fields / Tabs
Hello Kyle,

This hides the Avatar image of all users even if their privacy level is set to Public. And has no affect on when the avatar display is set to be private.

Thanks
Pranay

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 8 months ago - 9 years 8 months ago #260457 by krileon
Replied by krileon on topic Hide Profile Fields / Tabs
That's why there are 2 substitution if checks. One handles the default image display and the other handles rendering the normal avatar display. Please review my reply carefully below.

www.joomlapolis.com/forum/255-developer-members-support/228802-hide-profile-fields--tabs?limitstart=0#260324

I know this usage works as I just recently helped another user setup gender based default images. So the profile view layout of the avatar field can absolutely be used in this manner. It's possible your issue could be the substitution if not matching as expected.


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.
Last edit: 9 years 8 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum