[SOLVED] LDAP thumbnail Photo Plugin

9 years 4 months ago #255264 by krileon
Replied by krileon on topic [SOLVED] LDAP thumbnail Photo Plugin
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.
The following user(s) said Thank You: cheemak

Please Log in to join the conversation.

9 years 1 month ago #259485 by cheemak
Replied by cheemak on topic LDAP thumbnail Photo Plugin
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

Please Log in to join the conversation.

9 years 1 month ago #259511 by krileon
Replied by krileon on topic LDAP thumbnail Photo Plugin
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.

Please Log in to join the conversation.

6 years 6 months ago - 6 years 6 months ago #297527 by beat
Replied by beat on topic [SOLVED] LDAP thumbnail Photo Plugin
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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.839 seconds

Facebook Twitter LinkedIn