Search Results for 'Add Url'

Viewing 25 results - 1,051 through 1,075 (of 1,661 total)
  • Author
    Search Results
  • #67550
    Direct Links
    At the bottom of the shared link settings pop-up, you will find a direct link to your file. A direct link is a web address (URL) that links directly to a file (without using Box Preview). This is different from a regular shared link, which will bring users to the Box preview screen for said file.
    
     
    
    Direct links end with the file's extension type. Therefore, if you are linking to a Microsoft Word document, a direct link will end with *.doc. When a user clicks on the link, the file will be downloaded onto their computer or opened by a default program, depending on computer settings. Direct linking can also be used to host images or files for your website or blog.
    
     
    
    Direct Linking is only available for individual files and is unavailable for folders. A link to a folder will always be a web address of a Box page.

    You will need to select it for individual file link from link share type.

    Follow that guide to achieve this.

    Thanks


    Marek Gudaniec
    Participant

    Hi there,

    I guess I’ve found a problem in your code, regarding JavaScript redirect after downloading single file from files package.

    The problem exists in line 347 of class.FileList.php where you add a <script> tag with click event for the Download button.

    Let’s take a look at your piece of code:

    jQuery('.inddl').click(function() {
        var tis = this;
        jQuery.post('https://someexampleurl.com', {
            wpdmfileid: '1234',
            wpdmfile: jQuery(this).attr('file'),
            actioninddlpvr: 1,
            filepass: jQuery(jQuery(this).attr('pass')).val()
        }, function(res) {
            res = res.split('|');
            var ret = res[1];
            if (ret == 'error') 
                jQuery(jQuery(tis).attr('pass')).addClass('input-error');
            if (ret == 'ok') 
                location.href = jQuery(tis).attr('rel') + '&_wpdmkey=' + res[2];
        });
    });

    This is the piece of code that contains an issue:

    if (ret == 'ok') 
          location.href = jQuery(tis).attr('rel') + '&_wpdmkey=' + res[2];

    jQuery(tis).attr('rel') takes rel attribute value and appends it to current url, so if my package is at https://someexampleurl.com/download/package and I click the download button which has rel="nofollow" attribute, I am redirected to:
    https://someexampleurl.com/download/package/nofollow&_wpdmkey=WPDMKEY which gives me a 404 page.

    As you can see, ?rel= is missing in your code where you override location.href and that redirects to non existing page. You don’t even check whether there is any query variable in the URL or not, which may lead to something like this: https://someexampleurl.com/&_wpdmkey=WPDMKEY.

    Also, if you try to download the file while being connected to slow network, it doesn’t fire the save file dialog everytime, redirect is fired earlier instead.

    I will fix it on my own, but future update will override my fixes. That’s why I’m posting the issue here. I hope you will fix it as soon as possible.

    #67427

    In reply to: Bypass File Pages

    Hi,

    You need this addon to modify the page/link template file, the URL for the template files is wp-admin/edit.php?post_type=wpdmpro&page=templates.

    Thanks

    #67426

    Yes, You can use custom page/link template addon to make direct download link in the icon, for this, you need to create custom template or modify an existing template file from wp-admin/edit.php?post_type=wpdmpro&page=templates this page.

    You can use this code <a href="[download_url]">[icon]</a> to make the link work with the icon.

    Thanks

    #67226

    Can you send me the page URL? You can add inline CSS to the custom template. So if you want to change something just look for class or ID and change it with CSS.

    Changing the blue color badge with class

    .w3eden .list-group .badge {
           background: blue;
    }

    Changing the download button color:

    .w3eden .btn .btn-primary{
           background-color: #455a56;
           border-color: #1abc9c;
    }
    

    http://prntscr.com/hqzukq

    Thanks

    #67135

    In reply to: URL to overview


    kalbynet
    Participant

    Hi Hasibul and thanks for your reply.

    The URL aren’t the same?! The one abowe has a dashes… Is it not enough?
    Compare: http://195.238.77.215/~kavlingelarcen/ladda-ner/ vs http://195.238.77.215/~kavlingelarcen/laddaner/

    Ok, I don’t think the customers understand we shall click the link a the right… Is there a way to make (in my chase TEST) download directly? Or REMOVE the link so it’s only the link at the right that i clickable??

    I’m now familiar with php, but if I change the table template, can I do it right here ../download-manager/tpls/wpdm-all-downloads.php ??
    It will not be overwritten when updating?

    #67100

    In reply to: URL to overview

    I saw your category base and package base was the same?

    There is a quate above. “Caution: Use unique word for each url base. Also, don’t create any page or post with the same slug you used for WPDM URL Bases below.”

    Please modify it.
    So category page will be work here http://195.238.77.215/~kavlingelarcen/laddaners/instruktioner/

    And yes, the user can download from that page not going the package details page from this page. Here is the button for direct download.

    But if the user can see details page by clicking on the title. You can modify that too from all downloads table template here ../download-manager/tpls/wpdm-all-downloads.php

    Thanks

    #67057

    kalbynet
    Participant

    Hi

    I’m new with wpdownloadmanager (Former Joomla developer and use to use DOCman). In DOCman you can get a list view with all documents that can be downloaded (see http://www.ekvstolar.se/ladda-ner).
    But how do I do that in WPDM???
    I have followed the instruction here https://www.wpdownloadmanager.com/doc/settings/basic-settings/ and change the base url (https://imgur.com/reY6jAd) but it doesn’t work: http://195.238.77.215/~kavlingelarcen/laddaner/instruktioner

    What’s wrong?

    #66986

    Shahriar
    Moderator

    Add following code after line 125 in archive-page-with-sidebar.php file,

    <?php if(isset($_GET['category'])): ?>
    $('#ap-content-<?php echo $xid; ?>').load("<?php echo admin_url('admin-ajax.php'); ?>", {action:'load_ap_content', cid: <?php echo $_GET['category']; ?>, xid: '<?php echo $xid; ?>'}, function(){ $('#wpdm-loading-<?php echo $xid; ?>').fadeOut(); });
    <?php endif; ?>

    https://www.evernote.com/l/AUcQiZ7LbcxEe4Fc9KV_CZ7AkEUTqaGysqMB/image.png

    #66824

    Shahriar
    Moderator

    In that case, define your links like the following example,

    yoursite.com/archive-page-slug?category=id <- id = category id

    Disregard previous code and add the following code instead in same position.

    jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading"><i class="fa fa-spin fa-spinner icon icon-spin icon-spinner"></i> <?php _e('Loading','wpdm-archive-page'); ?>...</div>').load('<?php echo home_url('/?wpdmtask=get_downloads&pg='.get_the_ID());?>&category=<?php echo $_GET['category']; ?>');

    #66776
    This reply has been marked as private.
    #66758

    cbenson583
    Member

    That’s what I am asking to do. I need to be able to link from, for example, a page called Accounting Services, and have the page with the download manager archive shortcode open with the accounting category pre-selected. I also need to be able to link to the same page from other pagers like purchasing, travel, etc. and show a different subcategory when the page with the download manager shortcode loads.

    I have seen other tools do this using a query string variable passed in the page url that tells what category or parameter to preload. Is it possible to add an option to send a query string variable with the category slug or ID to the archive page add-on to tell it which category to pre-select?

    #66686

    Imunz
    Member

    Hey Thank you for your fast reply,

    as you can see on the screenshost it hasnt worked for me. I have added the diffrent shortcodes an their are displayed well but as soon as i want to follow the link i got this “empty” page.
    I have still the same problem. I have marked the urls on the screenshot maybe its a missconfiguration.

    #66669

    In reply to: Remote FTP TLS?

    You can follow this steps. Let me know if you have missed any steps from below.

    How to Use FTP Auto-Import Dir:
    1. Create a dir in your ftp server
    2. Create a csv file with all importable package data ( Sample CSV File ) and put it in that ftp dir
    3. Create another dir named files inside the ftp dir ( #1 )
    4. Put all importable file in files dir
    5. Setup an everyday cronjob for url http://yoursite/?importcsv=1 in your server
    6. Now the cronjob will check the csv file every day for changes, if you add new row there or update any row, it will be imported/updated accordingly.

    Thanks

    #66534

    Shahriar
    Moderator

    Hi,

    It is possible to load sub-category packages on page load but requires some code changes. Please send login info in private reply. I will add the code there or you can add the code yourself. Here is the custom code, add it after line 1082 in wpdm-archive-page.php file. Please keep in mind, you have to add this every time you update the add-on.

    var firstcat = jQuery('.wpdm-categories .wpdm-cat-link').first().attr('rel');
    jQuery('.wpdm-categories .wpdm-cat-link').first().addClass('active');
    jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading"><i class="fa fa-spin fa-spinner icon icon-spin icon-spinner"></i> <?php _e('Loading','wpdm-archive-page'); ?>...</div>').load('<?php echo home_url('/?wpdmtask=get_downloads&pg='.get_the_ID());?>&category='+encodeURIComponent(firstcat));

    Thanks.

    #66482

    Topic: Filename


    Eura Mobil
    Participant

    After updating the download manager the filenames changed. after downloading a file the wpdml changes the original filename and adds the url in front of it. how can i change this

    #66468

    Here is the code for after login redirection. It goes to your theme function file.

    add_action( 'template_redirect', 'wpdm_login_redirect' );
    function wpdm_login_redirect(){
        if( is_user_logged_in() && get_the_ID() == get_option('__wpdm_login_url') ):
            wp_redirect( home_url('/') );
            exit();
        endif;
    }

    Or for login in the download page, use the settings option “Show Only login form”. Then the user will be redirected to the same page after login. But for registration the functionality is different. You can use the custom action for that.

    Thanks


    Mike Morse
    Member
    This reply has been marked as private.
    #66407

    Hi there,

    When the user is already registered they need to log in to download the package file. So after login, they will be redirected to the same page.
    For registering they are redirecting to the registration page. Where after successful registration, they will be redirected to dashboard. This is default settings.

    for changing the redirect URL change this in settings login required message field message.

    http://example.com/login-page/?redirect=[this_url]

    If you want to add a custom action to login redirect method check this post. https://wordpress.org/support/topic/how-to-redirect-already-logged-in-users/

    Thanks

    #66110

    In reply to: file path fix


    Amy Masson
    Participant
    This reply has been marked as private.

    cbenson583
    Member

    How do I upload download manager records from css using the CSV Import Add-on when. the records point to a url not a specific file. I could not find a field to map the url to. I tried mapping it to the wpm:files field but this did not work.


    shameem
    Member

    Thank you Mr.Shahriar.

    I got it Cancel and Success URL, am asking is there any predefined URL is required or just user dashboard URL?

    If you don’t mint please fix following issues which I faced.

    1. I Created a package and I can see it fine when I do a preview and publish. However, when someone views as a subscriber/visitor, the table of packages isn’t listed and the subscriber sees the error “you are not allowed”. I assign Allow access “All visitors”.

    2. Is there any plugin/add-on support for user registration approve?

    Thanks in advance!


    Shahriar
    Moderator

    Cancel and success URLs are used to redirect to your site from PayPal. And as the names suggest two URLs are used in two different cases. Successful and Failed transaction.

    I am checking the expire date issue and will add the fix in your site as soon as the solution.

    #65189

    Shahriar
    Moderator

    Sorry for the delayed reply. Somehow missed your reply.

    You can attach pdf directly if instead of adding URL. Attached files are secure, a customer can download files only if they purchased it.

    #64973

    Shahriar
    Moderator

    You can use Default Values add-on to apply email lock by default for all new packages. To add lock in old packages you have to go one by one.

    The user can view their download history from dashboard history tab. Dashboard shortcode is [wpdm_user_dashboard flaturl=0]

Viewing 25 results - 1,051 through 1,075 (of 1,661 total)