× Social Extensions Integration

CB Avatar sync to moodle (Allow Upload disabled in CB)

5 years 6 months ago 5 years 6 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #1
For our CB Avatars, we only allow users to select from a pre-set list of pictures.

CB Field Management > Avatar
  • Parameters > Image limits > Allow Upload > Disable
  • Parameters > Image Gallery > Allow Gallery > Enable

After selecting our avatar from the pre-set gallery in CB, it doesn't get mapped across to Moodle (only default empty avatar is displayed in Moodle). It used to, but now it doesn't.

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

5 years 6 months ago
Antonio Durán
Posts: 7815
More
CB Avatar sync to moodle (Allow Upload disabled in CB) #2
Hi.

Does it show in CB after you select an image? I cannot get it to show in CB, even after disabling all Joomdle integration.

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

5 years 6 months ago
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #3
Yes, ours show on CB. We used CB Core Fields Ajax integration with it, if that makes any difference.

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

5 years 6 months ago
Antonio Durán
Posts: 7815
More
CB Avatar sync to moodle (Allow Upload disabled in CB) #4
Hi.

I got to test properly, and it is working fine for me.
I did not use CB Core Fields Ajax.

Are profile fields being mapped correctly and only image sync is failing?

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

5 years 6 months ago 5 years 6 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #5
Yes, changing the First Name, Last Name syncs the field across correctly. Data mapping also syncs custom fields correctly.

Seems to be only image sync not working, would you have any idea what might have caused it?

Tried turning Core Ajax fields off and uploading a picture instead of selecting from gallery, and even tried on a separate 'unused' website with joomdle, they still don't get synced to moodle.

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

5 years 6 months ago
Antonio Durán
Posts: 7815
More
CB Avatar sync to moodle (Allow Upload disabled in CB) #6
Can you test with normal image upload, to see if the problem is only with galley ones?
As it is working fine for me with both, it's difficult to say anything without experiencing the problem.

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

5 years 6 months ago 5 years 6 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #7
Used the normal image upload on a different 'new' website with joomdle (settings were barely changed), it doesn't get synced across either.

Our moodle site domain is www.ourwebsite.com/moodle/ k whereas joomla site domain is www.ourwebsite.com k. Would that make a difference?

Edit: on a different note why is a 'k' added to the end of the urls on this forum.

Edit 2: I think it might be because we changed the path for the CB's preset gallery.. gonna look into it a bit further. - Yes it is. Resetting the path to default fixes the problem.

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

5 years 6 months ago 5 years 6 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #8
I've found the joomdle plugin to edit to fix this, but I can't find where it is located?
Found the file.

It's joomdlecbprofile.php from the "Community Builder Profile" plugin.

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

5 years 6 months ago 5 years 6 months ago by Antonio Durán.
Antonio Durán
Posts: 7815
More
CB Avatar sync to moodle (Allow Upload disabled in CB) #9
File is located at:
plugins/joomdleprofile/joomdlecbprofile/joomdlecbprofile.php

So you mean you changed a configuration option in CB, and we have the code hardcode to use the default path? Can you please tell me where is the option? That way I will be able to release a new version that uses that setting.

Edit: I don't know about the k. My Joomdle mate was working on some site changes, but had to stop before fixing this. Hopefully he can get look into it soon.

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

5 years 6 months ago 5 years 6 months ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
CB Avatar sync to moodle (Allow Upload disabled in CB) #10
Thanks for the quick replies Antonio. Yes in the file it's hardcoded for the avatar image to be read from the default "images/comprofiler/" folder. Since we set a separate folder for the gallery, joomdle couldn't find it to sync it to moodle. The settings is at:

Community Builder > Field Management > avatar > Parameters (tab) > Image Gallery (tab) > Path

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