R K Devworks

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 27 total)
Mar 29, 2021 at 3:28 pm
#149541
Participant
R K Devworks
OP

We figured out since our url was protected it was blocking the images… All is well thanks!

Mar 29, 2021 at 2:52 pm
#149539
Participant
R K Devworks
OP

Thanks but we are getting a broken image for the logo url

https://prnt.sc/10z2mdu

Mar 29, 2021 at 6:06 am
#149505
Participant
R K Devworks
OP

Ok thanks. The logo is definitely not being inserted on emails.

Mar 27, 2021 at 9:24 pm
#149449
Participant
R K Devworks
OP

We would like to have images in our email that is sent when someone receives a message.

https://prnt.sc/10xj7o5

The logo URL is also not working…

https://prnt.sc/10xj8jx

Mar 26, 2021 at 9:18 pm
#149386
Participant
R K Devworks
OP

That works thanks! How can we add our logo image to the email? We have the logo url filled out with the image address but it is not showing.

Mar 8, 2021 at 1:58 am
#148052
Participant
R K Devworks
OP
This reply has been marked as private.
Mar 6, 2021 at 12:52 pm
#148003
Participant
R K Devworks
OP
This reply has been marked as private.
Mar 5, 2021 at 10:45 pm
#147966
Participant
R K Devworks
OP
This reply has been marked as private.
Mar 2, 2021 at 7:33 pm
#147754
Participant
R K Devworks
OP

The shortcode is not working correctly in elementor…

https://prnt.sc/10bip2q

Feb 12, 2021 at 9:09 pm
#146559
Participant
R K Devworks
OP
This reply has been marked as private.
Feb 12, 2021 at 6:07 pm
#146554
Participant
R K Devworks
OP
This reply has been marked as private.
Feb 11, 2021 at 7:13 pm
#146506
Participant
R K Devworks
OP
This reply has been marked as private.
Feb 11, 2021 at 5:06 pm
#146496
Participant
R K Devworks
OP

Thank you but how do we use the form in a shortcode to display in our listings? Now there is a button that is not working due to a Js conflict we cannot find so we would like to use a form instead.

Thanks

Feb 10, 2021 at 7:43 pm
#146417
Participant
R K Devworks
OP

Is anyone seeing this?

Feb 4, 2021 at 9:22 pm
#146060
Participant
R K Devworks
OP

Any help with this?

Feb 1, 2021 at 6:21 pm
#145787
Participant
R K Devworks
OP

We have gotten this far but the we can’t get the file to attach in modal form. pm-modal-form.php

<?php
if(!defined("ABSPATH")) die("Shit happens!");
?>
<div class="w3eden">
<div class="modal" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" id="wppmsg-to-author">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-light">
                <h5 class="modal-title p-0 m-0"><?= __("Send Message", PM_TEXT_DOMAIN); ?></h5>
            </div>
            <form class="form" role="form" method="post" id="messageform" autocomplete="off">
                <div class="modal-body">
                    <input type="hidden" name="__send_to" id="__send_to" value="" />
                    <div class="form-group">
                        <input type="text" placeholder="<?php echo __("Subject", PM_TEXT_DOMAIN) ?>" name="subject" class="form-control input-lg" required />
                    </div>
                    <div class="form-group">
                        <input type="text" placeholder="<?php echo __("Quote #", PM_TEXT_DOMAIN) ?>" name="subject" class="form-control input-lg" required />
                    </div>
                    <div class="form-group mb-0">
                        <textarea placeholder="<?php echo __("Message", PM_TEXT_DOMAIN) ?>" class="form-control" name="message" id="message"></textarea>
                    </div>
                    <button id="wpdm-browse-button" style="text-transform: unset" type="button" class="btn btn-link"><i class="fa fa-paperclip"></i> <?php echo __("Attach File", PM_TEXT_DOMAIN); ?></button>

                </div>
                <div class="modal-footer bg-light">
                    <button type="button" data-dismiss="modal" class="btn btn-secondary"><?php _e('Close', PM_TEXT_DOMAIN) ?></button>
                    <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> <?php _e('Send Quote', PM_TEXT_DOMAIN) ?></button>

                </div>
            </form>
        </div>
    </div>

</div>
</div>

<style>
    #wppmsg-to-author {
        background: rgba(0,0,0,0.3);
    }
    .w3eden #wppmsg-to-author .modal-content {
        box-shadow: 0 1px 20px rgba(0,0,0,0.1);
    }
</style>

<script>

    jQuery(function($){

        var uploader = new plupload.Uploader(<?php echo json_encode($plupload_init); ?>);

        uploader.bind('Init', function(up){
            var uploaddiv = $('#wpdm-upload-ui');

            if(up.features.dragdrop){
                uploaddiv.addClass('drag-drop');
                $('#drag-drop-area')
                    .bind('dragover.wp-uploader', function(){ uploaddiv.addClass('drag-over'); })
                    .bind('dragleave.wp-uploader, drop.wp-uploader', function(){ uploaddiv.removeClass('drag-over'); });

            }else{
                uploaddiv.removeClass('drag-drop');
                $('#drag-drop-area').unbind('.wp-uploader');
            }
        });

        uploader.init();

        uploader.bind('Error', function(uploader, error){
            wppmsg_bootModal('Error', error.message);
            $('#wmprogressbar').hide();
            $('#wpdm-browse-button').show();
        });

        uploader.bind('FilesAdded', function(up, files){
            $('#file__attachments').slideDown();
            $('#wpdm-browse-button').hide();
            $('#wmprogressbar').show();

            plupload.each(files, function(file){
                $('#wmprogress').css('width', file.percent+"%");
                $('#wmloaded').html(file.percent);
                /*jQuery('#wpdm-browse-button').hide(); //.html('<span id="' + file.id + '"><i class="fas fa-sun fa-spin"></i> Uploading (<span>' + plupload.formatSize(0) + '</span>/' + plupload.formatSize(file.size) + ') </span>');*/
            });

            up.refresh();
            up.start();
        });

        uploader.bind('UploadProgress', function(up, file) {
            /*jQuery('#' + file.id + " span").html(plupload.formatSize(parseInt(file.size * file.percent / 100)));*/
            $('#wmprogress').css('width', file.percent+"%");
            $('#wmloaded').html(file.percent);
        });

        uploader.bind('FileUploaded', function(up, file, response) {
            res = JSON.parse(response.response);

            __attached_files.files.push(res);
            $('#wmprogressbar').hide();
            $('#wpdm-browse-button').show();

        });

        $('#del-img').on('click', function () {
            $(this).html('<i class="fa fa-sun fa-spin"></i> Deleting...');
            $.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'delete_attachment'}, res ► {
                $('#__attachment').attr('src', '<?php echo PM_BASE_URL.'assets/images/image.png'; ?>');
                $('#__attachment').val('');
                $('#del-img').html('Delete Image');
            });

        $('#profile-button-message.profile-button.instant').on('click', function (e) {
            e.preventDefault();
            var menu = $(this).data('menu');
            $('#wpdm-ppm').modal('show');
        });

        $('#wppmsg-to-author').on('shown.bs.modal', function (event) {
            var button = $(event.relatedTarget);
            $('#wppmsg-to-author .modal-title').html(button.data('title'));
            $('#__send_to').val(button.data('user'));
        })

        $('#messageform').submit(function(){
            $('#messageform').addClass('blockui');
            $(this).ajaxSubmit({
                url: wpdmpmAPI.send_message,
                beforeSubmit: function ( arr, $form, options ) {
                    console.log($form);
                    console.log(arr);
                    options.headers = {'X-WP-Nonce': wpdmpmAPI.nonce}
                },
                success: function(res){
                    if(res.error === true)
                        WPPMSG.notify("<b>Error!</b> "+res.message, "error");
                    else{
                        WPPMSG.notify("<b>Success!</b> Message Sent", "success");
                        $('.form-control').each(function(){
                            $(this).val('');
                        });
                        $('#alertdiv').fadeOut(3000,function(){
                            $(this).html('');
                            $(this).attr('style','');
                        });
                    }
                    $('#messageform').removeClass('blockui');
                    $('#wpdm-ppm').modal('hide');
                },
                error: function (error) {
                    console.log(error.responseText);
                }

            });
            return false;
        });

    });
</script>

  • This reply was modified 5 years, 2 months ago by R K Devworks.
Feb 1, 2021 at 5:35 pm
#145785
Participant
R K Devworks
OP

If we use a button how do we edit the form? We would like to add fields and file upload.

Feb 1, 2021 at 5:01 pm
#145784
Participant
R K Devworks
OP
This reply has been marked as private.
Feb 1, 2021 at 4:58 pm
#145783
Participant
R K Devworks
OP
This reply has been marked as private.
Feb 1, 2021 at 2:26 am
#145744
Participant
R K Devworks
OP
This reply has been marked as private.
Jan 31, 2021 at 8:28 pm
#145733
Participant
R K Devworks
OP
This reply has been marked as private.
Jan 30, 2021 at 8:01 pm
#145675
Participant
R K Devworks
OP
This reply has been marked as private.
Jan 30, 2021 at 5:02 am
#145604
Participant
R K Devworks
OP
This reply has been marked as private.
Jan 30, 2021 at 3:22 am
#145599
Participant
R K Devworks
OP
This reply has been marked as private.
Jan 29, 2021 at 5:56 pm
#145586
Participant
R K Devworks
OP
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 27 total)