Search Results for 'Add Url'

Viewing 25 results - 201 through 225 (of 1,922 total)
  • Author
    Search Results

  • Nicolas MERCIER
    Participant

    I’m posting this comment to help those who may encounter the same issues I did using WPDM (free or pro) on an OVH mutualized hosting and WP-Rocket as a caching plugin. If it can save someone from wasting hours like I did…

    Problem description: when clicking on the “download” button in WPDM documents page, the file download starts but stops and ends in failure.

    Cause: the Gzip rules added by WP-Rocket to the htaccess file are incompatible with those of OVH. In some cases, this doesn’t cause any visible problems, but if you install WPDM, downloads don’t work.

    Resolution: install the “WP Rocket | Remove GZIP (mod_deflate) rules” plugin proposed by WP-Rocket on this URL : https://docs.wp-rocket.me/article/1790-erreur-blank-response-from-server-ovh-locotranslate page.

    They offer this solution for Locotranslate, but it also covers the WP-ROCKET/OVH problem.

    Hope that helps !

    #194906

    Thomas Gerber
    Participant
    This reply has been marked as private.
    #194773

    Roco Montgomery
    Participant

    Hello,

    I am currently testing the WPDM API before purchasing the pro version.

    After some struggles, I have managed to authenticate using Basic Authentication. To make it work I had to make changes to the htaccess file.

    Now I want it to work using Bearer Token.

    I am running the following command:

    curl -X GET \
    https://host.com/wp-json/wpdm/v1/packages \
    -H ‘Authorization: Bearer 65d67afbbXXXX’ \

    I get the following response:

    {“code”:”rest_forbidden”,”message”:”You cannot view the post resource.”,”data”:{“status”:401}}%

    A few questions:
    – Is bearer token authentication still supported?
    – If so, do I need to download additional plugins for it to work? I only have the WPDM plugin and the WPDM Rest API addon
    – Why is it not working? Could it also be a problem with the htaccess file? If so in what way should I modify it?

    I saw one the moderators suggest the following:

    “REST API is working now. Some Apache module was removing the authorization header from the request. I had to add CGIPassAuth On in your .htaccess file to allow the bearer token in the header.”

    I tried adding “CGIPassAuth On” but it made no difference.

    Please help! 🙂


    Ricardo Jimenez
    Participant

    Thank you so much! I checked the REST API and it seems like this would be the way to go.

    However I have 2 concerns that maybe you could help me with:

    1- In the documentation I cannot see how to add the file itself in the package. Do you have an example of how this is done? Do you need to provide a url for the file to be uploaded or is it encoded somehow?

    2- There is a bug reported in Github related to WordPress 6.3.2 and above. Has this been fixed? https://github.com/imsas/wpdm-rest-api-docs/issues

    Thanks in advance for your help!

    #194579

    Jürgen Novotny
    Participant

    Hi,
    we develop our projects under a temporary development URL (http) before they go online under their final domain name. During the development phase, downloads are created via “Select from media library” and work flawlessly. As soon as the project goes online and the live URL is defined for the WordPress and website address (https), everything works fine… except for all previously defined downloads, whose URL still refers to the previously used development URL. Logically, visitors then receive a security warning. In short: the newly defined URL is not taken into account for the created downloads. Am I missing something? What should I do? In the past, it was sufficient to recreate the downloads manually, but a current website in the development stage already has 450 previously created downloads…
    Thank you very much for hints!


    Nayeem Riddhi
    Moderator

    Hello enric gustems,

    For now, to get the requested mail in the message too in the email you can add this code portion from this directory wp-content\plugins\download-manager\src\Package\PackageLocks.php file in line number 291 changing

    $message = __MailUI::panel("Your have a new pending download request for:", ["<a href='".get_permalink($packageID)."'>".get_the_title($packageID)."</a>"])."<a href='".admin_url('edit.php?post_type=wpdmpro&page=wpdm-subscribers')."' class='button full green'>".__('Review the request', WPDM_TEXT_DOMAIN)."</a>";

    to

    $message = __MailUI::panel("Your have a new pending download request for email: ".$_POST['email']." and Package:", ["<a href='".get_permalink($packageID)."'>".get_the_title($packageID)."</a>"])."<a href='".admin_url('edit.php?post_type=wpdmpro&page=wpdm-subscribers')."' class='button full green'>".__('Review the request', WPDM_TEXT_DOMAIN)."</a>";

    by adding this only,

    email: ".$_POST['email']." and Package:"

    please check and let me know, if it works for you.

    Thank you and regards

    #193684

    Nayeem Riddhi
    Moderator

    Hello Susan Colao,

    Hope you are well. And thanks for writing to us. For Woocommerce alternatives, you can also use our WordPress Digital Store Solution – Premium Package add-on that helps you to set up prices for your digital products and sell them easily from your WordPress site.

    Premium Package – WordPress Digital Store Solution

    But if you still want to use woocommerce, You can try copying the master download URL of your file from WPDM and then attach the URL to the Woocommerce product as I image attached,

    2024-03-04-162357

    2024-03-04-162547

    please check and let me know, if you have any queries.

    Thank you and regards


    Luca Scelza
    Participant

    Hello Nayeem,
    thank you so much for your help. Unfortunately, it seems do not work. If I paste the string onto a web page in the browser it works, but if I put that url as the URL of the woocommerce product, it gives me the ‘File not Found’ error. In addition to not working, this system would still force me to create a product on Download Manager with a URL, which I don’t need and don’t want to do. Isn’t it possible to get a URL ofa PDF file uploaded somewhere that is good for WooCommerce and also stamped?

    Thank you so much for your help.

    #193670

    In reply to: Selection for Zip


    welswebmaster
    Participant
    This reply has been marked as private.

    FIX Trading
    Member

    Hi Nayeem
    We are using W3 Total Cache. I have set items_per_page = 20. We are still having problems on this page and also on the following pages:

    Recommended Practices

    Business Practices

    When you look at the source code the image is loaded multiple times. We are using a custom template where the package icon is displayed. The template looks as follows:

    <div class=”well c2a3″>
    <div class=”media”>
    <div class=”mr-3″ align=”left”>
    [icon]
    </div>
    <div class=”media-body”>
    <h3 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt; “>
    [title]
    <span style=”font-size:8pt;font-weight:300″ class=”text-muted ml-4″>
    <i class=”fas fa-hdd mr-1″></i> [file_size]
    <i class=”ml-3 far fa-arrow-alt-circle-down mr-1″></i> [download_count] downloads
    <i class=”ml-3 far fa-clock mr-1″></i> [create_date]
    </span>
    </h3>
    [excerpt_200]</br>
    </div>
    <div class=”ml-3″ align=”right”>
    [download_link]
    </div>
    </div>
    </div>

    Regards, Eva


    Nayeem Riddhi
    Moderator

    Hello Ries Caroline,

    Hope you are well. And thanks for writing to us. Can you please elaborate more and let me know which custom fields you are trying to add? please share the related URL. if possible, can you please, give your temporary wp-admin login details in a private reply to check the issue?

    Thank you and regards

    #193078

    Adrian Powell
    Participant

    I use CookieYes for my cookie management and on a scan it finds the wpdm cookie but can’t identify it correctly. What should the following entries be:

    Cookie Id: __wpdm_client

    Description :Description is currently not available.
    Script URL pattern: Not available

    This cookie does not have a script URL pattern. It is required for blocking the cookie prior to obtaining user consent

    #193054

    Nayeem Riddhi
    Moderator

    Hello Mariusz G,

    Hope you are well. Thanks for writing to us. For changing the text on the download button you shall find for it from certain packages from Package Settings as I image attached,

    2024-02-12-073059

    For template editing, you can clone the template as I image attached,

    2024-02-12-073500

    And change the [download_link] template tag to <a href="[download_url]" class="btn btn-info">Download Now!</a>

    For changing text on the download button at once for all packages, you can check this add-on,

    WPDM Default Values

    And for your Polish translation, you can use any translation plugin for example Loco Translate, you can check the beginner doc here,

    https://localise.biz/wordpress/plugin/beginners

    please check and let me know, if you have any queries more.

    Thank you and regards


    Nayeem Riddhi
    Moderator

    Hello Justin,

    Sorry for your inconvenience. For individual packages, you can try the below code putting in your theme functions.php file,

    add_filter("wpdm_audio_play_button", function($play_button, $play_url, $package, $fileID) {
      if(in_array($package->ID, [10, 20, 30])) $play_button = "";
      return $play_button;
    }, 10, 4);

    Here, 10, 20, 30 is your package ID. And for the option to turn off the audio player, we shall add it to our next updates. I hope you have understood. please check and let me know.

    Thank you and regards

    #192936

    NEOnet Website
    Participant

    Hi Nayeem,

    Thanks for this, and just to confirm my thinking. Currently there isn’t an option to apply if/then logic within the template manager/editor itself, correct? I will need to copy files from src into my child theme and edit those and then address any changes as new updates role out with the WPDM plugin?

    Also, I’m using ACF so that’s good to know I can add the field and access it with the template tool.

    Again, I basically want to combine a video and corresponding PDF document that compliments that video. I don’t think there is an option natively within WPDM to do that (correct me if I’m wrong), so I’m hoping to make something work with the templates. However, at times there might not be a video, only the PDF, thus my interest in some if/then capabilities in the template layout to only display the video button if the link is defined (in an ACF field) on the package.

    Another option, separate from the ACF field, it seems I can add a youtube URL to the package. In the same package I’d have PDf file and the Youtube link. Is there a function in the link templates tool that will let me select files within the package? I see I can pull the [file_list], I’m not seeing if there is an option that lets me pull file_1, file_2, etc.

    Be well!
    -Scott


    NEOnet Website
    Participant

    Hello,

    I am working on link template that will display a PDF in a modal popup. At the same time, if there is a video associated with that same package, it will show another button to view the training video. For testing purposes, I am putting the youtube video URL in the Link Label field, just to test this out. I would be interested in knowing if there is a way to add a video URL to a package in addition to the PDF so that I can reference each item independently?

    Aside from that, how can I modify my template so that the View Training Video button only shows up if the Link Label (or whatever actual custom video URL field might be available to use instead)?

    <!-- Button trigger modal -->
    <div align="center">
    <button type="button" class="btn btn-primary" style="width: 75%;" data-toggle="modal" data-target="#exampleModal-[ID]">
      [title]
    </button>
    
    <!-- Check if link_download has content before displaying the button -->
      <?php if (!empty([link_label])) { ?>
        <button type="button" class="btn btn-primary" style="width: 75%;" data-toggle="modal" data-target="#exampleVidModal-[ID]">
          View Training Video
        </button>
      <?php } ?>
    
    </div>
    <br />
    <!-- Doc Modal -->
    <div class="modal fade modal-lg" id="exampleModal-[ID]" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-modal="true" aria-hidden="true">
      <div class="modal-dialog" role="document" style="width: 1040px;max-width: 100%;">
        <div class="modal-content">
          <div class="modal-header">
            <h5>[title] <button class="btn btn-primary"><a href="[download_url]" title="Download [title]"><i class="fa fa-download" style="color:#FFF;"></i></a></button></h5>
            
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button> &nbsp; 
          </div>
          <div class="modal-body">
            [doc_preview]
          </div>
          <!-- div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
          </div -->
        </div>
      </div>
    </div>
    
    <!-- Doc Modal -->
    <div class="modal fade modal-lg" id="exampleVidModal-[ID]" tabindex="-1" role="dialog" aria-labelledby="exampleVidModalLabel" aria-modal="true" aria-hidden="true">
      <div class="modal-dialog" role="document" style="width: 1040px;max-width: 100%;">
        <div class="modal-content">
          <div class="modal-header">
            <h5>[title] Training Video</h5>
            
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button> &nbsp; 
          </div>
          <div class="modal-body">
            
    <iframe width="1280" height="853" src="[link_label]" title="[title]" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
          </div>
          <!-- div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
          </div -->
        </div>
      </div>
    </div>

    Thanks,
    -Scott

    #192764

    Justin Black
    Participant
    This reply has been marked as private.

    Nayeem Riddhi
    Moderator

    Yes, possible. You are also able to add the image to the download button as the code here from your page/link template,

    <a href="[download_url]" class="btn btn-info"><img src="Image_URL" /></a>

    please check and let me know

    Thank you again and regards

    #192573

    Hi there,
    I have added the ‘wpdmdl’ in the ‘Drop Query String’ as said in the article.
    But I still have the problem with the [#donwload_url#] tag.

    Thank you

    #192325

    Nayeem Riddhi
    Moderator

    Hello MAXIM MIRONOV,

    I have checked your issue. When you attach Box.com files, it attaches with a URL so while downloading it redirects to the URL. However, you can also use the WPDM - Google Drive add-on, it is downloading as you are expecting https://game-tales.ru/download/wpdm-test. please check and let me know

    Thank you and regards

    #192311

    Nayeem Riddhi
    Moderator

    WPDM Block Hotlink add-on will help you to be redirected to the item/package details page or any other page specified by you. The external sites can only place the link to your item/package details page, not the direct download URL. Thus, there is no redirect to the box.com. Please also check the add-ons details page, https://www.wpdownloadmanager.com/download/wpdm-block-hotlink/. Please check and let me know

    Thank you and regards


    Anh Tuyet Ha
    Participant

    Hi, team,
    I added the line below to crontab, but it doesn’t work. Maybe I have wrong syntax, please help me.

    0 0 1 * * wget -q -O - https://mydomain.com/?cpc=wpdmcc&cronkey=mKNVRCdbJr1DiedHE18N >/dev/null 2>&1

    #192130

    Nayeem Riddhi
    Moderator

    Hello Sini,

    Hope you are well. Can you please share with me where or you can also share the URL where you have added the translations? Please check and let me know

    Thank you and regards

    #191873

    Tanvir
    Spectator

    Hello,

    Thanks for contacting us.
    You can do it by adding custom css.
    Please provide related url to check the issue further.

    Thanks
    Tanvir

    #191541

    Laura Miner
    Participant
    This reply has been marked as private.
Viewing 25 results - 201 through 225 (of 1,922 total)