Search Results for 'Add Url'

Viewing 25 results - 601 through 625 (of 1,656 total)
  • Author
    Search Results

  • Thomas Bourgue
    Participant
    This reply has been marked as private.
    #145787

    R K Devworks
    Participant

    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 4 years, 7 months ago by R K Devworks.
    #145758

    Shahjada
    Keymaster

    Hi,
    You are seeing 0KB as they are added as URL, for the URLs, you need to enter the size manually, however, we are coming with an automated option for media library files.


    Ainnir
    Participant

    Yes, something like this.

    In short: I have a download section with different categories.

    • Category one: “Tracks
    • Category two: “Cars

    If people upload a “Track“, they have to fill out fields related to “Tracks“.
    If people upload a “Car“, they have to fill out fields related to “Cars“.

    Fields not applicable for the category they choose, they leave empty.

    Like in this example:

    This is a “Track” upload, so this “Car” related fields they keep empty:

    Related url: https://www.revoltworld.net/download/thegreatsilence

    Image 1

    In the Download page of the upload, it looks like this:

    Image 2

    For example, one of the visible Advanced Custom Fields I configured like this:

    Field Type “Select”, and one line filled with a space (” “), so not the first entry show by default:

    Image 3

    In my custom template, I have this code section:

    <li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:acf_AdditionalCarInfo_carenginetype]">
      [txt=Engine]
      <span class="badge">[acf_AdditionalCarInfo_carenginetype]</span>
    </li>

    So I want to hide the “Car Engine” field, if it’s empty.

    I guess it is still visible, cause a Space (” “) is inside the field.

    So:

    1) How can I hide fields filled with Space
    2) Should I configure the Advanced Custom Field in a different way, so by default a real empty value will be choosen?

    Thanks a lot for your help.
    I really like your plugin, and I hope I can get it to work.

    #145666

    LFL
    Participant
    This reply has been marked as private.
    #145454

    Jan Fonda
    Participant
    This reply has been marked as private.

    ENEA WPDM_Admin
    Participant
    This reply has been marked as private.

    ENEA WPDM_Admin
    Participant

    Hello,

    We are using WordPress version 5.5.3
    Our Download Manager add-on is at version 5.2.4

    We are using the following Page Template for a package:

    <div class=”thumbnail”>
    <div class=”media”>

    [icon]

    <div class=”media-body”>
    [page_link]<br />
    Released: [create_date]<br />
    Updated: [update_date]<br />
    Downloads: [download_count]<br />
    [download_link]
    </div>
    </div>
    </div>

    The download link looks like this:
    https://enea-my.sharepoint.com/:i:/g/personal/mitu_enea_se/EecFQ1jNfzpNhqccLJPFeXoByt17m5BBmIPwcq7e1Lp9Ug?e=j4QRZR
    and clicking on it does NOTHING.

    While using an older version of the WPDM, the download link looked like this, and the download worked:
    https://enea-my.sharepoint.com/:i:/g/personal/mitu_enea_se/Ea3uhf2237ZEijRFMw0JyxgBMZMW2GV-o3x6CuxaHkCKoA?e=UcqRL8

    We noticed that when using the [file_list] along with Single File Download attribute Enabled, the Download link/button looks OK and it works.

    How can we make the download link work again?

    Thank you,
    Mihai Nitu

    #145141

    Nayeem Riddhi
    Moderator

    Are you using WPDM-Cart addon, please let me know, if possible, please share your related URL

    thanks

    #145140

    Nayeem Riddhi
    Moderator

    Basically, Email goes to spam folder the reasons are,

    1. You haven’t set up proper authentication
    One of the biggest issues with email spam is lacking proper authentication.

    Think of when people call you on the phone:

    If you see it’s someone from your contacts, you’ll pick right up because you know exactly who’s calling.
    If you see a random number, you might assume it’s another robocall and just ignore it.
    It’s the same with emails. There are technologies that you can use to authenticate your emails which will automatically make you look more trustworthy in the eyes of spam filters. Instead of being a random number, you’ve proven who you are and that you actually control the domain name that you’re sending from.

    The biggest tactics are:

    DKIM (DomainKey Identified Mail)
    SPF (Sender Policy Framework)
    DMARC – requires you to already be using DKIM and SPF

    If you’re using a custom email address and you haven’t set up these authentication methods, that’s one of the biggest reasons why your emails are going to spam. Later in this post, we’ll show you what you need to do.

    2. Your sender information is inaccurate or missing
    In addition to lacking technical authentication tactics like DKIM and SPF, inaccurate sender information can also cause spam issues:

    Inaccurate From/Reply-To info – make sure the email address that you’re sending from matches the sender and your authentication information.
    Lack of physical address – the FTC requires that you add a physical address to your bulk emails. This is why you’ll typically see an address at the bottom of every marketing email.
    Add your physical address to emails

    3. You’re using words or punctuation that are spam triggers
    Put simply, there are just some words or punctuation patterns that seem spammy.

    For example, “meet singles” or “online biz opportunity”. By themselves, these words might not be enough to land you in the spam filter. But they will attract attention and, when combined with some of the other issues on the list, can end up with your emails going to spam.

    Additionally, avoid other spammy tactics like:

    ALL CAPITALS
    Lots of exclamation marks!!!!!!
    An onslaught of emojis ❤✨🔥👍🥺 (a few emojis are ok – just don’t abuse them)
    Similarly, using poor grammar or misspelling words can also trigger spam filters, as many spammers use machine translation to translate their spam emails into English.

    4. You’re using a bad email list
    If you’re sending bulk emails to a list of subscribers, there are a few things that can get you into hot water:

    No permission – if you didn’t receive explicit opt-in from subscribers, that can lead to spam issues.
    Stale list – if your list contains lots of inactive/disabled email accounts where emails bounce, that looks spammy to filters.
    Low engagement – if your emails have very low open rates, ISPs might take this as a sign that your subscribers don’t want your emails, which can increase the list of getting marked as spam.
    5. You’re linking to shady websites or using misleading links

    The main purpose of most spam emails is to get you to click on some type of link, so it’s no surprise that using the wrong types of links can get you in trouble when it comes to spam.

    There are two main things that can cause issues here:

    First, you might be linking to a website that seems spammy for some reason. For example, maybe it’s associated with copyright infringement, has been infected with malware, or some other reason. Or, maybe it’s totally legit, but it’s very close to another domain that is spammy.

    Second, you can get in trouble if the destination URL doesn’t match with the display URL. For example, if the display URL is https://google.com but the actual link is https://anotherwebsite.com, that can get you into trouble because this is a common tactic that spammers use to trick people into clicking links.

    Similarly, using URL shorteners can also cause issues for the same reason (you might be trying to trick people into clicking links they might not otherwise click on).

    6. You’re using too many images (or not enough text with images)

    Images can also get you into trouble with spam filters.

    There are two ways that this can happen:

    First off, if you have a large image in your email and little to no text, that can trigger spam filters. This one ties to the “spam words” point from above. To avoid getting hit with spam filters for using spammy words, some spammers moved to including all of the text in a single image file, rather than as actual text.

    Because of this, sending a single image looks suspicious to spam filters.

    You can also run into problems in the other direction, though. If you use a lot of images and very little text, that can also get you into trouble.

    Basically, using images as a replacement for text can get you into trouble, don’t do that!

    7. You’re sending too many attachments

    Because attachments are used for distributing malware or other malicious activities, they’re always going to attract attention from spam filters, especially certain file types (like an .exe file).

    8. Your recipient marked you as spam (maybe accidentally)

    In many email clients, users have an option to manually mark emails as spam.

    If the person who you’re trying to email previously marked your emails as spam, new emails that you send will also likely end up in the spam folder as well.

    Additionally, if you’re sending out bulk emails, too many people marking your emails as spam can negatively affect your reputation as a sender. This can increase the chances of your emails ending up in spam even when you send to people who didn’t mark you as spam.

    I hope you have understood

    thanks


    Brett Baker
    Member

    Hi Nayeem
    I’m not sure I understand your comment Which <div> are we talking about the main templates div? or is it the div that surrounds the Shortcode.

    My content template had the following divs
    <div class=”container main_cont”>
    <div id=”the_content”>
    <?php if (isset($author)){ echo “<p class=’author’>By ” . $author . “</p>”; } ?>
    <?php if ( $lead ) : ?>
    <?php echo “<div class=’first-paragraph’>” . $lead . “</div>”; ?>
    <?php endif; ?>
    <div class=”content-back-white”>
    <?php the_content() ?>
    </div>
    </div>
    </div>

    the output from you shortcode is:

    <div class=”container-fluid” id=”wpdm-all-packages”>
    <table id=”wpdmmydls-558e44bebbeb83c94a238e746acd9399″ class=”table table-striped wpdm-all-packages-table”>
    <thead>
    <tr>
    <th class=””>Title</th>
    <th class=”hidden-sm hidden-xs”>Categories</th>
    <th class=”hidden-xs”>Create Date</th>
    <th style=”width: 100px;”>Download</th>
    </tr>
    </thead>
    <tbody>

    <tr>
    <td style=”background-image: url(‘https://www.tetramap.com/wp-content/plugins/download-manager/assets/file-type-icons/zip.png&#8217;);background-size: 32px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 43px;line-height: normal;”>
    <b>Develop people and business the way nature intended</b><br><p>TetraMap book (EPUB and MOBI formats)</p>
    <small><i class=”fa fa-folder”></i>   1 files   
    <i class=”fa fa-download”></i>   256 downloads<br>
    <span class=”hidden-md hidden-lg”>eBook<br></span>
    <span class=”hidden-md hidden-lg hidden-sm”>January 9, 2018</span>
    </small>
    </td>
    <td class=”hidden-sm hidden-xs”>eBook</td>
    <td class=”hidden-xs” data-order=”1515456000″>January 9, 2018</td>
    <td><i class=””></i>Download Now</td>
    </tr>

    <tr>
    <td style=”background-image: url(‘https://www.tetramap.com/wp-content/plugins/download-manager/assets/file-type-icons/pptx.png&#8217;);background-size: 32px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 43px;line-height: normal;”>
    <b>eBook PowerPoint slides</b><br><p>eBook slide to add to PowerPoints</p>
    <small><i class=”fa fa-folder”></i>   1 files   
    <i class=”fa fa-download”></i>   161 downloads<br>
    <span class=”hidden-md hidden-lg”>eBook<br></span>
    <span class=”hidden-md hidden-lg hidden-sm”>January 9, 2018</span>
    </small>
    </td>
    <td class=”hidden-sm hidden-xs”>eBook</td>
    <td class=”hidden-xs” data-order=”1515456000″>January 9, 2018</td>
    <td><i class=””></i>Download Now</td>
    </tr>
    </tbody>
    </table>

    <div class=”text-center”></div>
    </div>
    so i cannot see any naming or code that is wrong for that matter so your answer has confused me more? sorry could you be moree specific please?

    #144801

    Nayeem Riddhi
    Moderator

    Hi,

    Please use the dropbox add-on https://www.wpdownloadmanager.com/download/dropbox-explorer/ instead of using direct dropbox URL

    thanks

    #144703

    Nayeem Riddhi
    Moderator

    Hi,

    I have checked that with this package, https://www.eftex.dk/downloader/wpdm-test/, WPDM Cart is working fine. When you attach files from media library as URL WPDM simply redirect to that URL when a user clicks on the download button, but when you upload a file directly or attach a file from server as server path, WPDM handles the download process and so there it can decide whether the file will open in browser or force download. So, if your file is already in the media library, and you want them to download instead of open in browser, please attach those files using the server file browser instead of the medial library file selector. Moreover,

    When attaching a file from the media library, it is added as URL, for URL ( local or remote ), only single file download will work, I think you would better use uploading file from select files option, it is working fine for file-cart option

    Thanks.

    #143625

    Nayeem Riddhi
    Moderator

    When attaching a file from the media library, it is added as URL, for URL ( local or remote ), only single file download will work, I think you would better use uploading file from select files option, it is working fine for file-cart option

    thanks

    #143604

    Nayeem Riddhi
    Moderator

    by default, you are using link-template-default.php for link template and page-template-default.php for the page template. you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/ for back-up your files, As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates for page template or tpls>link-templates for link template.

    For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,

    <a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>

    thanks


    Nayeem Riddhi
    Moderator

    Sorry for some late, I have informed from our senior developer that, When attaching a file from the media library, it is added as URL, for URL ( local or remote ), only single file download will work, I think you would better use uploading file from select files option, it is working fine for file-cart option

    thanks


    Kyosuke Kodama
    Participant
    This reply has been marked as private.

    Nayeem Riddhi
    Moderator

    Hi,

    please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

    Image 2020-12-12 at 2.14.21 PM

    now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,

    Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file

    Login to your WordPress hosting cPanel.

    Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,

    define('WP_SITEURL', 'https://www.example.com');
    define('WP_HOME', ' https://www.example.com');

    Fix #2: Changing WordPress site URL via phpMyAdmin

    Login to your hosting cPanel and open phpMyAdmin

    Select the database of your WordPress site from the left sidebar

    Select wp_options table

    Note: wp_ prefix may differ depending on your WordPress installation settings

    phpmyadmin-click-edit-on-siteurl

    edit those and save

    I hope your problem will be solved,

    thanks

    #142303

    WPTest
    Participant

    Hello,
    I’m getting a lot of php errors with DM

    Example:

    Notice:  Trying to access array offset on value of type bool in /home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings/addon-update.php on line 79
    
    Timestamp: 2020-12-06 12:38:45 UTC
    
    Stack Trace
    -----------
    1. include('/home/site/public...')
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:339
    2. WPDM\admin\menus\Settings->pluginUpdate()
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings.php:30
    3. include('/home/site/public...')
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:42
    4. WPDM\admin\menus\Settings->UI('')
       /home/site/public_html/wp/wp-includes/class-wp-hook.php:287
    5. WP_Hook->apply_filters('', Array(1))
       /home/site/public_html/wp/wp-includes/class-wp-hook.php:311
    6. WP_Hook->do_action(Array(1))
       /home/site/public_html/wp/wp-includes/plugin.php:478
    7. do_action('wpdmpro_page_settings')
       /home/site/public_html/wp/wp-admin/admin.php:259
    8. require_once('/home/site/public...')
       /home/site/public_html/wp/wp-admin/edit.php:10
    
    Context
    -------
    URL            : /wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update&newpurchase=1
    Referer        : https://site/wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update
    HTTP Method    : GET
    HTTP Host      : site
    HTTP Status    : 200
    isSSL          : Yes
    Current Filter : wpdmpro_page_settings
    Execution Time : 2.066 s
    Memory Usage   : 8.29 MiB
    PHP SAPI       : litespeed
    
    #141764

    Hi – I’m trying to setup the PAD importer and it all works, but I need a slight configuration change. I want just the PAD submit URL field and not the email field. Basically so anyone can just submit a PAD file rather than have to put in an email address. I know it can be done as I’ve done it before, but I cannot remember how to do it!

    Any ideas?

    #141274

    Nayeem Riddhi
    Moderator

    For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,

    <a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>

    thanks

    #140797

    Nayeem Riddhi
    Moderator

    Please add this code in your theme functions.php

    add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
    
    function wpdm_loginout_menu_link( $items, $args ) {
        if ($args->theme_location == 'primary') {
            if (is_user_logged_in()) {
                $items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
            } else {
                $items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
            }
        }
        return $items;
    }

    it should return login and a logout menu both

    thanks

    #140682

    In reply to: Problems with Login


    Nayeem Riddhi
    Moderator

    Please add this code in your theme functions.php

    add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
    
    function wpdm_loginout_menu_link( $items, $args ) {
        if ($args->theme_location == 'primary') {
            if (is_user_logged_in()) {
                $items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
            } else {
                $items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
            }
        }
        return $items;
    }

    it should return login and a logout menu

    thanks

    #140354

    Hamid Ali Anjum
    Participant
    This reply has been marked as private.
    #140304

    Ounayda MDERE
    Participant
    This reply has been marked as private.
Viewing 25 results - 601 through 625 (of 1,656 total)