Make the visibility of other user's avatar depend. on status of your own avatar

4 years 10 months ago - 4 years 10 months ago #312223 by erichburkhard
So this worked - THANK YOU :-) !!!!!....now I wanted to enhance the picture with explanatory text (encapsulated in a language string I added to the corresponding language plugins) .....

UE_AVATAR_UPLOAD_PROCEDURE

...I added this string to the statement you gave me

[cb:if user_id="myid"][value]
[cb:elseif user="#me" avatar!~"/nophoto_n\.png/" and avatarapproved="1"][value]
[/cb:elseif]
[cb:else]<a href="[cb:url location="profile_view" /]"><img src="[cb:config param="live_site" /]/components/com_comprofiler/plugin/templates/default/images/avatar/tnnophotostop_n.png" class="cbImgPict cbThumbPict img-thumbnail" />
</a>[UE_AVATAR_UPLOAD_PROCEDURE]
[/cb:else]
[/cb:if]

...for some reasons the system does not replace with the corresponding language ....the result looks like this



could you pls tell me why?
Attachments:

Please Log in to join the conversation.

4 years 10 months ago #312228 by krileon
There is no such thing as inline language strings. You'll need to use a language string for the entire thing if you want it to be translated into multiple languages. If multiple languages aren't a concern then you'd just add your string of text directly to it. So for example you'd have the following.

Profile Value Layout: AVATAR_PROFILE_LAYOUT
Userlist Value Layout: AVATAR_USERLIST_LAYOUT

Next you'd have language overrides with your actual language.

Key: AVATAR_PROFILE_LAYOUT
String: LAYOUT_HERE

Key: AVATAR_USERLIST_LAYOUT
String: LAYOUT_HERE


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: erichburkhard

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.434 seconds

Facebook Twitter LinkedIn