Home I'D LIKE TO Request Website Access
Request Access
To access secure content on this website, fill out the form below to request a Cabrini website account.
NOTE: You only need to fill in the following fields:
- Name
- Address
- Login ID and password
- Reason for registering
You will be contacted after your request is approved and your account is set up.
').show();$('#image_filename_uploader_area input[name=filePath]').val('');$('#image_filename').val(NM['memberAdd'].image_filename);} else {$('#image_filename_uploader_area_drop_zone').prepend('
Drop image here
');$('#image_filename').val('');}initUploader('#image_filename_uploader_area', 'image_filename_plupload_container', true, false, false, 'Image', 'image_filename_plupload_select_files', false, 10, '1000', 'jpg,jpeg,png', 'member', 'image_filename', '500', '500', '300', '', 'images/member/', 'https://www.cabrinimn.org/', NM['memberAdd'], 'image_filename', '90', '', 'memberEdit', false, 'people'); cellPhoneInput = window.intlTelInput($('#cell_phone')[0], { preferredCountries: ['US', 'CA', 'AU'], initialCountry: 'us', autoPlaceholder: 'off', separateDialCode: true, utilsScript: 'https://www.cabrinimn.org/sr/js/intlTelInput/utils.js', }); $('input[name="cell_phone"]').on('blur', function() { $('input[name="cell_phone_country_code"]').val(cellPhoneInput.getSelectedCountryData().dialCode); $('input[name="cell_phone_selected_country"]').val(cellPhoneInput.j); }); $('#image_filename_uploader_area').on('click', '.rotate', function(e) { e.preventDefault(); value = $('#image_filename_image').attr('src'); splitValue = value.split("?")[0]; $('#image_filename_uploader_area .busyOverlay').show(); $.ajax({ type:"POST", cache: false, dataType: 'html', url: "admin/ajax_actions.cfm?content=image&action=" + $(this).attr('rotateAction') + "&fn=" + splitValue + "&up=B8AAC57A8FBF51A316CF689B9E4565D22873BBD4AE8153C2077DBDAA8BDC978E44CEC38CCE888A2C137E8FF2BD652DAA7E908626C4DC028F", success: function(result) { $('#image_filename_image').attr('src', value + Math.random()); $('#image_filename_uploader_area .busyOverlay').hide(); }, error: function (xhr, ajaxOptions, thrownError) { console.log(thrownError); } }); });});
Personal
Additional Information
NOTE: Do Not Alter These Fields:
').show(); NM[viewName][db_form_field_name]['uploader']['ErrorClear'](); NM[viewName][db_form_field_name]['uploader'].removeFile(files[fileDetailID]); } else { waitForImageDimensions.resolve(); } // cleanup img = null; } }; // we need to save off the position of the file in the array because the reader is asynchronous fileDetailID = i; reader.readAsDataURL(fileBlob); } $('#' + db_form_field_name + '_showSaveInfo').show(); innerProgress(0, $(uploader_area_selector+' .plupload_button'), 1); $(uploader_area_selector+' .plupload_button_label').html('Resizing...'); blink('.pblink', 1000, 500); NM[viewName][db_form_field_name]['uploader']['Resetting'] = false; $.when(waitForImageDimensions).then(function() { NM[viewName][db_form_field_name].uploader.start(); });});NM[viewName][db_form_field_name]['uploader'].bind('FileUploaded', function(up, file, info) { $(uploader_area_selector+' .image').hide(); $(uploader_area_selector+' .plupload_button_label').html('Select '+uploader_file_type+'...'); var errorFound = false; if (info.response == '') { errorFound = true; errorMsg = 'The file could not be uploaded. Please try again.'; } if (errorFound) { $(uploader_area_selector+' .cropform').hide();$(uploader_area_selector+' .image').html('
'+errorMsg+'
').show();} else { var waitForImageDimensions = $.Deferred(); var hasThumb = 0; parser = new DOMParser(); var response = parser.parseFromString(info.response,'text/xml'); responseKey = response.getElementsByTagName('Key')[0].childNodes[0].nodeValue; // responseKey is the path stored at amazon, we need just the filename fileName = $.trim(responseKey.substring(responseKey.lastIndexOf('/') + 1)); var img = new Image(); img.src = 'https://faithconnector.s3.amazonaws.com/643/' + destination_folder + file.name; img.onload = function () { var w = this.width; var h = this.height; file.width = w; file.height = h; waitForImageDimensions.resolve(); // cleanup img = null; } $.when(waitForImageDimensions).then(function() { if(destination_filename == '' && $.trim(fileName) != NM['memberAdd'][db_form_field_name] && NM['memberAdd'][db_form_field_name] != '') { $.ajax({url: 'admin/image_delete.cfm?type='+content_type+'&content_id='+NM['memberAdd'].id+'&filename=' + NM['memberAdd'][db_form_field_name] + '&random=' + Math.random()*999999+'&content='+contentLocation+'&up=B8AAC57A8FBF51A316CF689B9E4565D22873BBD4AE8153C2077DBDAA8BDC978E44CEC38CCE888A2C137E8FF2BD652DAA7E908626C4DC028F'}); } NM['memberAdd'][db_form_field_name] = $.trim(fileName); $(uploader_area_selector+' input[name='+db_form_field_name+']').val($.trim(fileName)); $(uploader_area_selector+' input[name=filePath]').val($.trim(fileName)); $(uploader_area_selector+' input[name=x]').val(0); $(uploader_area_selector+' input[name=y]').val(0); $(uploader_area_selector+' input[name=x2]').val(2); $(uploader_area_selector+' input[name=y2]').val(2); $(uploader_area_selector+' .image').html('
'); imageWidth = file.width; imageHeight = file.height; if (crop && (imageWidth != desired_image_display_height || imageHeight != desired_image_display_width && (imageWidth >= desired_image_display_height && imageHeight >= desired_image_display_width))) { initJCrop(uploader_area_selector, cropping_canvas_short_dimension, cropping_canvas_short_dimension, desired_image_display_width, desired_image_display_height, desired_image_display_width, db_form_field_name, content_type, website_url, destination_folder, fileName, deleteable, enhanceable, viewModel, contentLocation, uploader_file_type, hasThumb, $.trim(file.size), imageWidth, imageHeight); $('.cropbox').load(function() { $(uploader_area_selector + ' .image').fadeIn(); $(uploader_area_selector+' .cropform').fadeIn(); $(uploader_area_selector + '_drop_zone img').css('max-width', 'none'); }).attr('src', $(uploader_area_selector+' input[name=Url]').val()); } else { NM['memberAdd'][db_form_field_name + 'Cropped'] = true; if(deleteable) { $(uploader_area_selector+' .image .delete_button').remove(); $(uploader_area_selector + ' .image').append(''); } $(uploader_area_selector+' .image').fadeIn(); saveS3AssetInfo(fileName, destination_folder, 1, $.trim(file.size), imageWidth, imageHeight, hasThumb, false); } $(uploader_area_selector+' .image').append('
'); });}});NM[viewName][db_form_field_name]['uploader'].bind('UploadProgress', function(up, file) {$(uploader_area_selector+' .plupload_status').hide();innerProgress(file.percent, $(uploader_area_selector+' .plupload_button'), 1);$(uploader_area_selector+' .plupload_button_label').html(file.percent + '%'); if (file.percent == 100) {innerProgress(0, $(uploader_area_selector+' .plupload_button'), 1);$(uploader_area_selector+' .plupload_button_label').html('Select '+uploader_file_type+'...'); } });NM[viewName][db_form_field_name]['uploader'].bind('Error', function(up, args) {alert(args.message); }); NM[viewName][db_form_field_name]['uploader']['ErrorClear'] = function() { NM[viewName][db_form_field_name]['uploader'].stop(); $('#' + db_form_field_name).val(''); $('#' + db_form_field_name + '_showSaveInfo').hide(); $('#' + db_form_field_name + '_uploader_area .plupload_button_label').html('Select Image...'); NM[viewName][db_form_field_name]['uploader']['Resetting'] = true; $('.plupload_button_progressBar').removeAttr("style").html(''); $(uploader_area_selector+' .cropform').hide(); }}function blink(selector) {$(selector).fadeOut('9999999999', function() {$(this).fadeIn('9999999999', function() { blink(this);}); }); }function innerProgress(percent, $element, speed) {var innerProgressBarHeight = percent * $element.outerHeight() / 100;$element.find('.plupload_button_progressBar').animate({ height: innerProgressBarHeight }, speed); } function setContentData(file, up, uploadType) { // set the contentType and contentDisposition for all files uploaded to S3 fileExt = file.name.substring(file.name.lastIndexOf('.'), file.name.length) || file.name; contentType = ''; contentDisposition = ''; switch (fileExt){ case '.pdf': contentType = 'application/pdf'; contentDisposition = 'inline'; break; case '.jpg': case '.jpeg': contentType = 'image/jpeg'; contentDisposition = 'inline'; break; case '.gif': contentType = 'image/gif'; contentDisposition = 'inline'; break; case '.png': contentType = 'image/png'; contentDisposition = 'inline'; break; case '.svg': contentType = 'image/svg+xml'; contentDisposition = 'inline'; break; default: contentDisposition = 'inline'; break; } if (contentType.length > 0) { up.settings.multipart_params['Content-Type'] = contentType; } up.settings.multipart_params['Content-Disposition'] = contentDisposition; } function saveS3AssetInfo(filename, filepath, assetType, size, width, height, hasThumb, compressImage, callbackPromise) { //package/send message var lsr = {}; lsr.fileName = filename; lsr.path = filepath; lsr.size = size; lsr.width = width; lsr.height = height; lsr.hasThumb = hasThumb; lsr.assetType = assetType; lsr.compressImage = compressImage; lsr.customHandler = 'saveS3AssetInfo'; $.post('admin/ajax_actions.cfm?content=site_page&action=saveS3AssetInfo&up=B8AAC57A8FBF51A316CF689B9E4565D22873BBD4AE8153C2077DBDAA8BDC978E44CEC38CCE888A2C137E8FF2BD652DAA7E908626C4DC028F' ,{data: JSON.stringify(lsr)} ,function(response) { lsr.s3DataSaved = true; if (typeof callbackPromise !== 'undefined') { callbackPromise.resolve(); } } ,'json' ); }function initJCrop(cropAreaDivId, boxw, boxh, cropw, croph, selectorMinSize, db_form_field_name, content_type, website_url, destination_folder, response_filename, deleteable, enhanceable, viewModel, contentLocation, uploader_file_type, hasThumb, size, newImageNaturalWidth, newImageNaturalHeight){var cropAreaDivId = cropAreaDivId;// create variables for the form field elementsvar imgX = $(cropAreaDivId + ' input[name=x]');var imgY = $(cropAreaDivId + ' input[name=y]');var imgHeight = $(cropAreaDivId + ' input[name=h]');var imgWidth = $(cropAreaDivId + ' input[name=w]');var imgLoc = $(cropAreaDivId + ' input[name=imageUrl]');// get the current image source in the main viewimgLoc.val($(cropAreaDivId + ' .imageWorkSpace img').attr('src'));buildJCrop(cropAreaDivId, boxw, boxh, cropw, croph, 0, 0, 1, 1, selectorMinSize, newImageNaturalWidth, newImageNaturalHeight);$(cropAreaDivId + ' [name=imageCrop_btn]').off('click');$(cropAreaDivId + ' [name=undo_btn]').off('click');$(cropAreaDivId + ' [name=save_btn]').off('click');$(cropAreaDivId + ' [name=imageCrop_btn]').click(function() {$('#' + db_form_field_name + '_uploader_area .busyOverlay').show();$(cropAreaDivId + ' [name=imageCrop_btn]').addClass('disabled_button').removeClass('button').attr('disabled', 'disabled');$(cropAreaDivId + ' [name=save_btn]').addClass('disabled_button').removeClass('button').attr('disabled', 'disabled');$('#' + db_form_field_name + '_plupload_select_files').addClass('disabled_button').attr('disabled', 'disabled');$('#' + db_form_field_name + 'Selector').addClass('disabled_button').attr('disabled', 'disabled');var data = 'imgX=' + imgX.val()+ '&imgY=' + imgY.val()+ '&height=' + imgHeight.val()+ '&width=' + imgWidth.val()+ '&imgLoc=' + encodeURIComponent(imgLoc.val())+ '&destination_folder=' + encodeURIComponent(destination_folder)+ '&cropWidth=' + cropw+ '&cropHeight=' + croph+ '&idPrefix='+db_form_field_name + '&assetLocation=remote' + '&up=B8AAC57A8FBF51A316CF689B9E4565D22873BBD4AE8153C2077DBDAA8BDC978E44CEC38CCE888A2C137E8FF2BD652DAA7E908626C4DC028F';$(cropAreaDivId + ' .imageWorkSpace').load('admin/image_crop.cfm',data, function() {$(cropAreaDivId + '_drop_zone img').css('max-width', '100%');$(cropAreaDivId + ' [name=undo_btn]').removeClass('disabled_button').addClass('button').removeAttr('disabled');$(cropAreaDivId + ' [name=save_btn]').removeClass('disabled_button').addClass('button').removeAttr('disabled');$('#' + db_form_field_name + '_plupload_select_files').removeClass('disabled_button').removeAttr('disabled');$('#' + db_form_field_name + 'Selector').removeClass('disabled_button').removeAttr('disabled');$('#' + db_form_field_name + '_uploader_area .busyOverlay').hide();}); // do not submit the form using the default behaviour return false;});$(cropAreaDivId + ' [name=undo_btn]').click(function() {var htmlImg = '';$(cropAreaDivId + ' .imageWorkSpace').html(htmlImg);$(cropAreaDivId + '_drop_zone').css('max-width', 'none');$(cropAreaDivId + '_drop_zone img').css('max-width', 'none');buildJCrop(cropAreaDivId, boxw, boxh, cropw, croph, 0, 0, 1, 1, selectorMinSize, newImageNaturalWidth, newImageNaturalHeight);viewModel[db_form_field_name + 'Cropped'] = false;$(cropAreaDivId + '_drop_zone').css('max-width', '300px');$(cropAreaDivId + '_drop_zone img').css('max-width', 'none'); });$(cropAreaDivId + ' [name=save_btn]').click(function() {$('#' + db_form_field_name + '_uploader_area .busyOverlay').show();$(cropAreaDivId + ' [name=undo_btn]').addClass('disabled_button').removeClass('button').attr('disabled', 'disabled');$(cropAreaDivId + ' [name=save_btn]').addClass('disabled_button').removeClass('button').attr('disabled', 'disabled');$('#' + db_form_field_name + '_plupload_select_files').addClass('disabled_button').attr('disabled', 'disabled');$('#' + db_form_field_name + 'Selector').addClass('disabled_button').attr('disabled', 'disabled');var data = 'imgX=' + imgX.val()+ '&imgY=' + imgY.val()+ '&height=' + imgHeight.val()+ '&width=' + imgWidth.val()+ '&imgLoc=' + encodeURIComponent(imgLoc.val())+ '&destination_folder=' + encodeURIComponent(destination_folder)+ '&cropWidth=' + cropw+ '&cropHeight=' + croph+ '&idPrefix='+db_form_field_name + '&assetLocation=remote' + '&up=B8AAC57A8FBF51A316CF689B9E4565D22873BBD4AE8153C2077DBDAA8BDC978E44CEC38CCE888A2C137E8FF2BD652DAA7E908626C4DC028F'+ '&save=1';$(cropAreaDivId + ' .imageWorkSpace').load('admin/image_crop.cfm',data, function(){viewModel[db_form_field_name + 'Cropped'] = true;$(cropAreaDivId + ' .cropform').hide();$(cropAreaDivId+' .image .rotate_button').remove(); $(cropAreaDivId + ' .image').append('');if (deleteable) {$(cropAreaDivId+' .image .delete_button').remove();content_id = NM['memberAdd'].id ;$(cropAreaDivId + ' .image').append('');}$('#' + db_form_field_name + '_plupload_select_files').removeClass('disabled_button').removeAttr('disabled');$('#' + db_form_field_name + 'Selector').removeClass('disabled_button').removeAttr('disabled');$('#' + db_form_field_name + '_uploader_area .busyOverlay').hide(); $('#' + db_form_field_name + '_showSaveInfo').hide();saveS3AssetInfo(response_filename, destination_folder, 1, size, cropw, croph, hasThumb, false)});});}function buildJCrop(cropAreaDivId, boxw, boxh, cropw, croph, x, y, x2, y2, selectorMinSize, newImageNaturalWidth, newImageNaturalHeight) {var aspectRatio = cropw/croph;$(cropAreaDivId + " .cropbox").Jcrop({boxWidth: boxw,boxHeight: boxh,aspectRatio: aspectRatio,onChange: updateCoords,onSelect: updateCoords,bgOpacity: .3,allowSelect: false,setSelect: [ $('input[name=x]').val(), $('input[name=y]').val(), $('input[name=x2]').val(), $('input[name=y2]').val() ],minSize: [selectorMinSize, selectorMinSize] },function(){jcrop_api = this;bounds = jcrop_api.getBounds();boundx = bounds[0];boundy = bounds[1];jcrop_api.animateTo([x, y, newImageNaturalHeight * aspectRatio, newImageNaturalHeight]);});$(cropAreaDivId + " [name=imageCrop_btn]").removeClass('disabled_button').addClass('button').removeAttr('disabled');$(cropAreaDivId + " [name=undo_btn]").addClass('disabled_button').removeClass('button').attr('disabled', 'disabled');}function updateCoords(c) { $("input[name=x]").val(c.x); $("input[name=y]").val(c.y); $("input[name=x2]").val(c.x2); $("input[name=y2]").val(c.y2); $("input[name=w]").val(c.w); $("input[name=h]").val(c.h);}