Search Results for 'Add Url'

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

  • 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.

    #20725

    In reply to: Custom URL share


    Shahjada
    Keymaster

    no, now it shares the package url only, anyhow I’ll add the url change option with next update :).

    #20718

    Shahjada
    Keymaster

    if you want to open, you need to upload file using media uploader, then add the file url with your package, otherwise it always will download.

    #20476

    Shahjada
    Keymaster

    You may use http://awesomescreenshot.com/ for sending screenshot url.
    #1. delete free version and install download-manager-4.1.4.zip
    #2. Please delete wpdm-m24x.zip, please download migration add-on from here http://wpdownloadmanager.com/download/copy-to-pro/ and install
    #3. expo.zip is a theme specially designed for wpdm pro

    anyhow if you still need help with setup please send me wp-admin login info in a private reply.


    trouille2
    Member

    Hello, I have a package that requires the email to get access to download button. Since wordpress 3.9.2 it seems the final page after the submission of email address returns an error all I got now is : {“error”:”<div class=\”alert alert-success\”>Download link sent to your email!<\/div>”,”downloadurl”:””}

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