You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#104378 Students Insert Images

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Friday, 28 May 2021 09:51 BST

wbuk
We use JCE for students to format notes on our website. It saves the note in their profile.

Student wants to upload images to their notes. We CB (Community Builder) and they each have their own gallery, which we have renamed to My Cloud. They upload material into there. Is there any way we can confirm the Insert Image box so it allows them to pick files from their CB Gallery only? If we need a specific code from CB, I can ask them.

Thank you.

Ryan
What would be the relative path for an example user's images folder? eg: images/joepublic/my_cloud

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

wbuk
The relative path is /images/comprofiler/plug_cbgallery/(USERID)/photos

Ryan
Is the USERID value the Joomla user id or, if different, the CB user id ?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

wbuk
Joomla userid is the same as CB user id.

Ryan
Do you have a specific profile for the students, or are they using the "Default" editor profile?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

wbuk
Yes we have created a specific profile for the students.

Ryan
In that profile, in Editor Parameters -> Filesystem, for the File Directory Path value, set

images/comprofiler/plug_cbgallery/$id/photos
This should then create (of not yet created) and use a unique folder for each user.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.