[SOLVED] LDAP thumbnail Photo Plugin

3 years 5 months ago #255264 by krileon
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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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: cheemak
3 years 3 months ago #259485 by cheemak
Hi Kyle

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];
}

var_dump of return = array(1) { ["avatar"]=> string(75) " intranet.scwcsu.nhs.uk/images/comprofiler/gallery/cartoon_beaver.png " }

so i suspect that it should be $return[0] ?

Kiran
3 years 3 months ago #259511 by krileon
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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
8 months 3 days ago - 8 months 3 days ago #297527 by beat
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).

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Moderators: beatnantkrileon
Time to create page: 0.193 seconds
Facebook Twitter Google LinkedIn