Tagged: customisation, data entry for photo, mediapress, photo, uploader
After checking the documents, I can see there is a js action – mpp:uploader:before.upload, which fire before each image is uploaded.
I would like to capture the following information for each photo uploaded:
Title, description, copyright owner, conditions of use, attribution requirements, alt-tag, caption.
I have yet to start this project, and thought I could track my progress, and give others the chance to comment in this thread.
My first thought was to add this to my template as a direct inject, in the first instance, and to map out the steps I’ll need to follow in console.logs that will eventually be part of a diagnostic check and report. I think this way, I can follow a diagnostics first approach, as well as mapping the flow clearly.
<script> $(document).on( 'mpp:uploader:before.upload', function( event, mpp_uploader, uploader, file ) { console.log( "We are about to start uploading" + file.name ); console.log( "Image Information Pop-up opened" ); console.log( "Image Information sent for save" ); console.log( "image information saved" ); }); </script>
That is as far as I have got, currently 🙂
- This topic was modified 1 month ago by
Venutius.
- This topic was modified 1 month ago by
Hi George,
Thank you for the question.I would suggest working with MediaPress 2.0 branch for thi as it is already implemented there.
I will go over the branch and fix any bugs/issues which might have appeared due to recent php/WordPress version and let you know by Monday.
Regards
BrajeshYes, I’m now fully into v2.0. It seems pretty much rock solid. That issue I had with local storage and the settings page. I’m now pretty sure it was another plugin knocking out my local storage that was the issue. I think it was misbehaving, and completely filling up my local storage, and that sent JS overall into a tailspin. The problem with that error, was I could deactivate the plugin in a group, the problem would go away, but did not come back as soon as the plugin was reactivated, so very difficult to track down.
But yes, this part of the orchestration is about to get a good test, I think. And once I have completed my work on photo galleries, I then want to look at video galleries. I’m planning to write an automatic GDPR compliance plugin for MediaPress. I have just done the same with a youtube plugin, and personally cannot launch video galleries without it.
Thank you George.
I am looking forward to your feedback as well as my own work on it for the next few days.I would love to see your GDPR solution for the video when you develop it.
Regards
Brajesh
You must be logged in to reply to this topic.