Hi Joseph,
I hope you are well today and thanks for posting on the forum.
I have notified the developer to make changes in the plugin so that user can not submit the wrong url entered.
In the meanwhile to achieve this try changing the following code in the below BuddyPress Activity Plus plugin file.
BuddyPress Activity Plus plugin file:
buddypress-activity-plus\js\bpfb_interface.js
On line number 50 :
Before Editing:
$('.bpfb_action_container').html(
'<p><input type="button" class="button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_video + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
After Editing:
if( data != 'There has been an error processing your request' ){
$('.bpfb_action_container').html(
'<p><input type="button" class="vvd button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_video + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
}
On line number 309 :
Before Editing:
});
$('.bpfb_action_container').html(
'<p><input type="button" class="button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_photos + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
After Editing:
$('.bpfb_action_container').html(
'<p><input type="button" class="button-primary bpfb_primary_button" id="bpfb_submit" value="' + l10nBpfb.add_photos + '" /> ' +
'<input type="button" class="button" id="bpfb_cancel" value="' + l10nBpfb.cancel + '" /></p>'
);
$("#bpfb_cancel_action").hide();
$('.bpfb_preview_photo_item').error(function() {
$('#bpfb_submit, #bpfb_cancel, #bpfb_cancel_action').toggle();
console.log('Image does not exist !!');
});
});
Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these again after plugin updation.
when a video like like youtube is added to activity, it would be great to fetch an image placeholder, and when the image is clicked, the video finally plays.
I will add this over to the features & feedback section in our system, This way it can be considered for future development. This feature may be added in future version of plugin depending on how many feature requests we receive for it but We don’t publish ETAs to prevent disappointment if a deadline is missed(which in plugin development quite a frequent occurrence!).
Cheers,
WPMU DEV