Search Results for 'Add Url'

Viewing 25 results - 1,026 through 1,050 (of 1,643 total)
  • Author
    Search Results
  • #67895

    Jefferson Stovall
    Participant
    This reply has been marked as private.

    Hi,

    Adding target blank is not available with the shortcode yet.

    But,
    You can modify an existing link template file from wp-admin/edit.php?post_type=wpdmpro&page=templates this page.

    And add this code <a href="[download_url]" target="_blank">[icon]</a> to make download target blank.

    And use this template tag with the shortcode.

    Thanks

    #67710

    In reply to: Showing Sub Categories

    Hi,

    You can show the subcategory with directory addon. You need to use shortcode [wpdm-archive] that will show the archive page, where the subcategories will be available under the parent category in menu item dropdown when the user clicks the menu by using subcat="1".

    However,
    In your attached file you showing Tree View files below which comes from extended shortcode addon.

    Maybe there is a js issue so the subcat not showing in the drop-down. Please provide the url of the site and login info in private to check.

    Thanks

    #67656

    In reply to: Package List Addon


    welswebmaster
    Participant
    This reply has been marked as private.
    #67599

    qstiegler
    Participant

    Hey,

    I attached three files.

    • Categories-view.jpg: You can see the view of the categories. I did this by the following tag [wpdm-categories cols=4]
    • List-of-categories.jpg: These are the categories you can see in the first screenshot but defined in the backend
    • List-of-files-in-category.jpg: If you click on one category as you see in the first screenshot, you get a list of all files in that category

    What I want to change is that template of the List-of-files-in-category.jpg screenshot. As described in the posts before, I was able to change this template by adding a file archive.php into the active-template-folder. But this is not pretty nice, as the archive.php is been used by wordpress also for other pages.

    In this view I need:

    1. The menu item DOWNLOADS needs to be colored in black as it is still the active navigation point, but even if the URL is /downloads/hotfixes-und-patches/, in the menu the navigation point is not set as active one
    2. On that page there should be a headline with the name of the category, where files belong to. (In this case it would be Hotfixes and Patches)

    I hope my problems are clear now and you are able to help me.
    Thanks!

    #67597

    Shahjada
    Keymaster

    Yes, there is are 2 ways to view pdf doc:

    1.  you can use PDF viewer addon https://www.wpdownloadmanager.com/download/wordpress-pdf-viewer/ ( demo: https://demo.wpdownloadmanager.com/wpdmpro/download/pdf-viewer/ )
    2. you may use the option “Open In Browser” from wpdm settings, so that when a user clicks on the download button, it opens in the browser instead of download.
    #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


    Nata
    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

Viewing 25 results - 1,026 through 1,050 (of 1,643 total)