Search Results for 'Add Url'

Viewing 25 results - 1,451 through 1,475 (of 1,647 total)
  • Author
    Search Results
  • #23317

    Shahjada
    Keymaster

    We reply all support tickets within 24 hours except very few exceptions. If you give login info in a private reply here, it is totally secure. Reactivate login info so that I can update that code part or add return false; after $pdfurl = '';

    “So I’m assuming that your plan is to ignore any calls for help until 30 days have passed?” <-- may you please explain it little more.

    #23144

    Shahjada
    Keymaster

    prefix like 1417458139wpdm_ is added with file name when another file with same name is already exists, anyhow you can select overwrite option form download manager settings page, however none of those option should create any such issue, please give me temporary wp-admin login info and affected url to check it in details.

    #22982

    Shahjada
    Keymaster

    Thanks for help, anyhow I’ll add url redirect option even for uploaded file with next update.

    #22979

    Supernacorp
    Member

    yes it works. It would have been good to know this 10 posts ago. Why not just document this method to workaround shared hosting php timeout causing corrupt files on downloads. You must have many customers with this exact situation.

    For anyone else reading this. I will document it here.

    Upload file to media library
    if the file is too large to upload with wordpress 2Mb default upload limit then do the following.

    ftp to some folder under wp-content

    add plugging called “add from server” this plugin allows you to add to media library a file already on the server file system and browse to it. This way you can ftp the big file and simple add to library. NOTE: this plugin will copy your file on the OS disk from your directory to wp-content/uploads (media library default folder). make your life easier and put ftp files in uploads and then add to server to avoid the file copy and filling your disk

    now “edit file” and copy the file url of your download

    now goto download manager pluggin add package and add file using the url option, configure package they way you want now and publish

    if you use the email lock option the download url still points to wpdm plugin url so that tracking still works but the code now issues a redirect to the url so the file media library url is used serve the file to the browser. why this makes a difference?

    on shared hosting like goddaddy or other, you have no control over php.ini settings. you can google phpinfo.php and getini.php (will give you steps and code to see what settings you php site are using, but changing your php.ini won’t have an effect specifically max_execution_timeout = value to determine how long a php file is allowed to execute in seconds. defaults to 30 seconds which is not long enough to stream 100MB+ size files and times out and corrupts the download. Tried many options to change time out and godaddy confirmed it can not be changed by shared hosting (i.e. cheap hosting). save yourself some time and don’t bother with this as the url method works here is why.

    using the WP media library url works since apache is serving the file to the browser not PHP code which has 30 second download limit. The WPDM url method preserves email url’s and direct webpage downloads for big files, you can use smaller files without this method and we found this worked well as long as download was <30 seconds.


    jftripp
    Member

    Additional information. If I use a URL link, it works fine for all users. I have been using a link that is generated by browsing to the files system. So – exact same file, exact same user. Works on URL link, not direct mapping link. ONLY an issue for .zip files.

    #22859

    Supernacorp
    Member

    I would like to enable the direct url to temp file in cache directory. The issue is shared hosting script execution time and I can’t change this in godaddy.

    What changes do I need to make to get emailed links to include direct URL, so that apache can serve the file to the browser and not PHP scripts.

    I don’t see any options to enable this feature.

    I would like the instructions provided so I can make the changes myself. I am not able to give you access to our site.


    mchamzah
    Member

    solved. and this is a bug in version 2.7 and 2.7.1

    I add this code in the file: wpdm-all-downloads.php the first line:

    <script language="JavaScript" type="text/javascript" src="<?php echo plugins_url('download-manager/js/jquery.dataTables.js'); ?>"></script> 
    <link rel="stylesheet" href="<?php echo plugins_url('download-manager/css/jquery.dataTables.css'); ?>" type="text/css" media="all" />
    <style type="text/css">
    #TB_window{
        -moz-box-shadow: 0 0 5px #000;
    -webkit-box-shadow: 0 0 5px#000;
    box-shadow: 0 0 5px #000;
    }
    #TB_overlay{
        opacity:0.5;
    }
    </style>

    and this code on the last line

    <script type="text/javascript" charset="utf-8">
                /* Default class modification */
                jQuery.extend( jQuery.fn.dataTableExt.oStdClasses, {
                    "sSortAsc": "header headerSortDown",
                    "sSortDesc": "header headerSortUp",
                    "sSortable": "header"
                } );
                
                jQuery('.wpdm-pck-dl').click(function(){
                    tb_show(jQuery(this).html(),this.href+'&modal=1&width=600&height=400');
                    return false;
                });
    
                /* API method to get paging information */
                jQuery.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
                {
                    return {
                        "iStart":         oSettings._iDisplayStart,
                        "iEnd":           oSettings.fnDisplayEnd(),
                        "iLength":        oSettings._iDisplayLength,
                        "iTotal":         oSettings.fnRecordsTotal(),
                        "iFilteredTotal": oSettings.fnRecordsDisplay(),
                        "iPage":          Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
                        "iTotalPages":    Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
                    };
                }
    
                /* Bootstrap style pagination control */
                jQuery.extend( jQuery.fn.dataTableExt.oPagination, {
                    "bootstrap": {
                        "fnInit": function( oSettings, nPaging, fnDraw ) {
                            var oLang = oSettings.oLanguage.oPaginate;
                            var fnClickHandler = function ( e ) {
                                if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
                                    fnDraw( oSettings );
                                }
                            };
    
                           jQuery(nPaging).addClass('pagination').append(
                                '<ul>'+
                                    '<li class="prev disabled"><a href="#">&larr; '+oLang.sPrevious+'</a></li>'+
                                    '<li class="next disabled"><a href="#">'+oLang.sNext+' &rarr; </a></li>'+
                                '</ul>'
                            );
                            var els =jQuery('a', nPaging);
                           jQuery(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
                           jQuery(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
                        },
    
                        "fnUpdate": function ( oSettings, fnDraw ) {
                            var oPaging = oSettings.oInstance.fnPagingInfo();
                            var an = oSettings.aanFeatures.p;
                            var i, sClass, iStart, iEnd, iHalf=Math.floor(oPaging.iTotalPages/2);
    
                            if ( oPaging.iTotalPages < 5) {
                                iStart = 1;
                                iEnd = oPaging.iTotalPages;
                            }
                            else if ( oPaging.iPage <= iHalf ) {
                                iStart = 1;
                                iEnd = 5;
                            } else if ( oPaging.iPage >= (5-iHalf) ) {
                                iStart = oPaging.iTotalPages - 5 + 1;
                                iEnd = oPaging.iTotalPages;
                            } else {
                                iStart = oPaging.iPage - Math.ceil(5/2) + 1;
                                iEnd = iStart + 5 - 1;
                            }
    
                            for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
                                // Remove the middle elements
                               jQuery('li:gt(0)', an[i]).filter(':not(:last)').remove();
    
                                // Add the new list items and their event handlers
                                for ( i=iStart ; i<=iEnd ; i++ ) {
                                    sClass = (i==oPaging.iPage+1) ? 'class="active"' : '';
                                   jQuery('<li '+sClass+'><a href="#">'+i+'</a></li>')
                                        .insertBefore('li:last', an[i])
                                        .bind('click', function () {
                                            oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
                                            fnDraw( oSettings );
                                        } );
                                }
    
                                // Add / remove disabled classes from the static elements
                                if ( oPaging.iPage === 0 ) {
                                   jQuery('li:first', an[i]).addClass('disabled');
                                } else {
                                   jQuery('li:first', an[i]).removeClass('disabled');
                                }
                                 
                                if ( oPaging.iPage === oPaging.iTotalPages-1 ) {
                                   jQuery('li:last', an[i]).addClass('disabled');
                                } else {
                                   jQuery('li:last', an[i]).removeClass('disabled');
                                }
                            }
    
                        }
                    }
                } );
    
                /* Table initialisation */
               jQuery(document).ready(function() {
                   jQuery('#wpdmmydls').dataTable(   );
                } );
            </script>
    
    #22495

    In reply to: Direct Link


    Shahjada
    Keymaster

    wpdm doesn’t control the file when you use url like that, either you need to upload it or add file from server using server file browser. but to keep file protected from direct http access, you need to upload using wpdm or you can use amazon s3 add-on.

    #22431

    In reply to: Need help


    Shahjada
    Keymaster

    please give me your URL to check. Anyhow please install this add-on http://www.wpdownloadmanager.com/download/wpdm-colorbox/ to activate lightbox.

    #22206

    BornToCreate
    Member

    Hi,
    I need to add a shopping cart for files, a file cart.
    After files have been added and submited a package should be created temporary and forced to download.
    I’ve wrote the Script for the cart with JavaScript and PHP from the values of [file_list] with the following script:

    function generateCart(data){
    if( typeof data == “string” ){
    data = JSON.parse(data);
    }
    if( data.noItm != “undefined” && data.noItm != undefined){
    var mk = “<p>” + data.noItm + “</p>”;
    return mk;
    }
    var items = [“

      \n”];
      for(i=0;i<data.length;i++){
      obj = data[i];
      var str = [
      “\t<li class=’cart-item’>\n”,
      “\t\t”, obj.name, “\n”,
      X“,
      ““].join(“”);
      items.push(str);
      }
      items.push(“

    \n”);
    return items.join(“”);

    }
    $(document).ready(function(){
    var TPL_DIR = “”;
    var SCRIPT_URL = “download_cart.php”;

    //Get table structure of wpdm-pro
    var table = $(“.wpdm-filelist”);
    var lth = table.children(“tbody”).children(“tr”).first().append(“<th>Aktionen</th>”);
    var tableItems = table.children(“tbody”).children(“tr”).not(“:first-child”);

    //Add ‘add to cart’ links
    tableItems.children(“td:nth-child(2)”).children(“a”).each(function(){
    var t = $(this);
    var link = t.attr(“href”);
    var name = t.parents(“tr”).children(“td”).first().text();
    var args = link.slice(link.indexOf(“?”)+1);
    args += “&name=” + name;
    var markup = “<td class=’action’>In den Downloadkorb</td>”;
    t.parents(“tr”).append(markup);
    });

    //Add download cart markup to sidebar
    var mk = [‘<div id=”download-cart”>\n\t<p>Aktuell im Downloadkorb</p>’,
    ‘<div id=”cart-items”></div></div>’].join(“”);
    $(“#sidebar”).html(mk);

    /*** AJAX CALLS ***/

    //Send AJAX request to get download cart on start
    $.ajax({
    //AJX REQUEST HERE
    });

    //Add items on click to cart ad update current cart.
    $(“.action”).on(“click”, “a”, function(e){
    //AJX REQUEST HERE
    });

    //Remove item from cart.
    $(document).on(“click”, “.remove-itm”, function(e){
    //AJX REQUEST HERE
    });

    }); //DOCUMENT READY END

    In the cart (Session) the name, wpdml and ind arguments are saved.
    So how can I now acces these files and pack them.
    The packing would not be the problem as I can read the class.pack code but I dont know what do do with these
    wpdml and ind arguments an how to acces the files through them.

    #21900

    In reply to: Direct link to file


    Shahjada
    Keymaster

    by “simply add/attached file as URL.” , I meant to add from here:
    Loading Image...


    JBrown75
    Member

    Hi,

    When selecting the browse tab, the window is blank with no options. The directory url is set in the settings. Even when I manually add the directory nothing happens. Please help.

    thank you

    #21776

    hlivnjak
    Member

    Hey Shaon, theme developer here,

    ok, so here is the deal.

    I will try to explain problem again:

    So lets take for example this link: http://teetoolkit.com/?wpdmdl=462 this is the URL that your plugin generates. It links to a file that is on Amazon S3, and its uploaded there with the add-on for your plugin. Now if you try to copy the above link in your browser you will be able to download the file. Which is not good, because I’ve added to the “Allow Access:” section of your plugin option that only Administrator and Subscriber can download that file. But as you can see here, that does not work.

    Also MagicMembers are disabled so they are not interfering, I already tried this with the default theme and the result is the same. So please don’t tell me that this is because of MagicMembers or the theme. Because it is not. Something is wrong with your plugin and we want you to fix it, so we can make site go live.

    I will not even go into the other problem – which is that the download counter isn’t working for S3 downloads. We’ll deal with that later, after the file protecting issue is fixed.

    P.S – download counter and file protection works just fine if the file is hosted on our server, so that’s one more piece of evidence that nothing is wrong with MagicMembers or the theme. The problem is either in your plugin or in the S3 add-on to your plugin. Which ever the case may be, you have to fix it.

    Thanks,

    Regards,

    Ivan Doric

    #21740

    venky359
    Member
    This reply has been marked as private.
    #21474

    Grammy Z
    Member

    Ok, what url am I adding in the app settings?

    #21470

    Cylinda
    Member

    It helps to actually add the URL – http://www.crochetmemories.com/blog/star-hotpad/

    #21451

    Shahjada
    Keymaster

    it is actually no an error with wpdm pro. you simply need to update your facebook app, add the url in fb app settings.

    #21449

    In reply to: Direct link to file


    Shahjada
    Keymaster

    yes, simply add/attached file as URL. That will resolve your issue.

    #21174

    In reply to: Advanced CSV Importer


    Shahjada
    Keymaster

    checking categories & previews

    wpdm:show_quota
    wpdm:show_counter
    wpdm:sourceurl
    

    Those fields are not available in pro
    you can map uid with post_author
    “Add Custom Field” doesn’t support array still now.

    #21169

    In reply to: Advanced CSV Importer

    Thank you.

    Working: wpdm:access

    Not working: Categories – The only option in the upload list to map to is “Category”. When I do that it adds the Category in posts. However, I believe you have your Custom Post Type set with a Custom Taxonomy of wpdmcategory to manage categories. So I do not have the option to map categories to that.

    Additionaly, The following are not important to me but they are also not in the list of item that can be mapped.

    wpdm:show_quota
    wpdm:show_counter
    wpdm:previews
    wpdm:sourceurl (not sure if this is needed)
    wpdm:uid (not sure what this is)
    wpdm:update_date

    Lastly, I see you have “Add Custom Field” as an option in the mapping list. How do I use this and can it be used for an array? For example I have the “Advanced Custom Fields” plugin too and I would like to be able to map to those advance field but they are stored as an array in one custom field called __wpdmpro_custom_fields. Is this possible or could you add something that would handle this?

    Thanks again for all your help.

    #21070

    Shahjada
    Keymaster

    #6. please show me in a exmaple url
    #7. extremely sorry, not clear, may you please explain little more. Anyhow, they need to be registered user to set as post author

    #10. you need to add [Eps Bimaye] as submenu from menu manager.

    #21009

    No360
    Member
    This reply has been marked as private.
    #21003

    flawless
    Member
    This reply has been marked as private.
    #20885

    Shahjada
    Keymaster

    no, I’ve updated the add-on.
    please give me the music page url.

    #20760

    In reply to: error amazon s3 add on


    Shahjada
    Keymaster

    actually add-on doesn’t have anything to do with http headers when it is coming from remote url.

Viewing 25 results - 1,451 through 1,475 (of 1,647 total)