If you're using CB 2.x then edit your avatar field then under Parameters > Layout substitute in the HTML display of your custom image field using "Profile Value Layout". Example substitution as follows.
[cb:userfield field="FIELD_NAME" /]
The alternative is your plugin acts on the get field row trigger and changes the avatar fields HTML output completely, but you have to be careful with that as it's easy for it to conflict.
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.
I've noticed that this doesn't fallback to the default avatar settings
having tried it out I think this is causing an issue
line 65 (ish)
if ( is_array( $return ) ) {
$return = $return[0];
}
Make the following change and it should work fine to fallback.
FROM:
$return = $return[0];
TO:
$return = array_shift( $return );
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.
Posting this to old LDAP threads, just as a convenience to Joomla LDAP authentication plugin users:
If you are using the LDAP authentication plugin of Joomla in Joomla 1.5 through 3.7.5: Stop what you are doing and Update immediately to Joomla 3.8.0 (LDAP-security release) !
If you don't understand what LDAP is, then it's not an issue for you (you should sure upgrade to Joomla 3.8, but it's not as urgent).