Search Results for 'Add Url'

Viewing 25 results - 176 through 200 (of 1,656 total)
  • Author
    Search Results

  • Mark Jenkins
    Participant

    Good day! We’ve noticed that when using the Elementor WPDM add-on and adding a package list a nicely formatted table as added. This is exactly what we want. However, the file icon and the file title are not links, there is no way to download the file while using this package table. also, we’d prefer not to have the download buttons shown. We like the appearance of the table without the button, but it does us no good if we can download the files. The only link is the category text. Below is an example of the code that is generated. How can we have this same table but with the image and the package title be direct download links to the file itself (not to the package download page).

      <table id="wpdmmydls-066a18a6ef5f9ea80e3d04d68d8780f4">
                <thead>
                <tr>
                                        <th  id="title"
                           >Title</th>
                                        <th  id="categories"
                           >Categories</th>
                </tr>
                </thead>
                <tbody>
                        <tr>
                                                        <td                                    
                                        style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat:  no-repeat;padding-left: 52px;line-height: normal;">
                                    <strong>ShoreTel Analog Phone Quick Reference (pdf)</strong><br/>
                                </td>
                                                        <td                                    
                                        >
                                    <a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
                                </td>
                        </tr>
                        <tr>
                                                        <td                                    
                                        style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat:  no-repeat;padding-left: 52px;line-height: normal;">
                                    <strong>ShoreTel 560 Phone Quick Reference (pdf)</strong><br/>
                                </td>
                                                        <td                                    
                                        >
                                    <a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
                                </td>
                        </tr>
                        <tr>
                                                        <td                                    
                                        style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat:  no-repeat;padding-left: 52px;line-height: normal;">
                                    <strong>ShoreTel 230 Quick Phone Reference (pdf)</strong><br/>
                                </td>
                                                        <td                                    
                                        >
                                    <a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
                                </td>
                        </tr>
                        <tr>
                                                        <td                                    
                                        style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat:  no-repeat;padding-left: 52px;line-height: normal;">
                                    <strong>ShoreTel Communicator for Windows (pdf)</strong><br/>
                                </td>
                                                        <td                                    
                                        >
                                    <a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
                                </td>
                        </tr>
                                            </tbody>
            </table>
            <ul class='pagination wpdm-pagination pagination-centered text-center'></ul>
    #186308

    In reply to: Popup modal for login


    NWRDC
    Participant

    Thanks, that seems to be working. Where did you add the CSS?

    And where is the logo URL set? I’m not seeing any options on the settings. This is what I’m seeing in the code so must be set somewhere:

    img src=”logo-url” alt=”Logo”

    Also, is there a class to hide the login link in the menu when a user is logged in? I had it set with another plugin to replace with a logout button. Is that not possible with this one?

    Thanks for your help.

    #186182

    In reply to: Form-Lock


    marwanist12
    Participant

    i used the blue template…nothing happened, how i can add my site url to the logo?

    #186126

    In reply to: Custom URL


    Trisha Miller
    Participant

    @Shahjada, I’ve already customized the link and page templates to create new defaults, and while it’s great that I can clone and then edit templates (yay!), I can’t find a way to specify the new templates to be used as my new “defaults” nor to bulk-edit my assets to specify the new defaults, it looks like I’ll have to manually edit my hundreds of downloads to do that…..sigh…

    BUT on THIS issue of the base URL, I see that in the plugin’s main file there are lines that setup the slug variable, in download-manager.php on line 289 there is this:

     $tslug = get_option('__wpdm_purl_base', 'download');
            if(!strpos("_$tslug", "%"))
                $slug = sanitize_title($tslug);
            else
                $slug = $tslug;

    and then a few lines further down, line 304, is the rewrite argument for the CPT that uses that variable.

    I tried commenting those out but then the plugin inserted “wpdmpro” into the URL and did NOT use my category. 🙁

    I’ve already had to hack this file to add support for post_tags, which is critical for us, we can’t do without the Post Tags applied to each asset, so as long as I’m hacking it, can you tell me if you think this part of the code is causing the problem?

    #186105

    In reply to: Custom URL


    Trisha Miller
    Participant

    Thank you @shahjada I truly appreciate your ongoing help, but this is not working.

    While my (non downloads) Pages are working (no more 404s) none of the downloads are actually accessible, I get a 404 on those when I try to “view” them from the Downloads overview page in the back end, and the front-facing page where I have the shortcode to display the list by category shows nothing, just the (added by WPDM) search and filter bar, no listing below even though I’m certain I have the categories set for each download and the short code entered correctly (it was working fine before, no changes to the shortcode and the category ID has not changed).

    In order to get the category name in the URL, but not the word “download”, I used both snippets of code you’ve provided – the one way above that sets up the variable %wpdmcategory% and the code just above to filter out ‘download’ when parsing.

    All downloads show the correct URL structure in the back end (mysite.com/wpdmcategoryname/assetname) but can’t be accessed on the front end.

    And honestly I’ll tell you that this should not be a “paid” customization. I was told in the forum for the free version that by upgrading to the Pro version I’d be able to control the URL base, this is not what I call “controlling the URL base”.

    I’m fortunate to also be a developer, I’ve been working with WP since pre-version 1, and have developed many themes and a few custom plugins myself…….I cannot imagine the frustration of someone trying to do this without my background, I’m extremely frustrated by this and deeply unhappy…..

    To be honest, I don’t even understand why your plugin works so hard to NOT let a user control the URL…..

    I’m going to keep messing with this for one more day, after that if I can’t get it working I will request a refund and just go back to Download Monitor.

    #186056

    In reply to: Custom URL


    Trisha Miller
    Participant

    Hello Shahjada,

    Once again, thank you so much for a very quick reply and solution, I can confirm that following your last instruction did get everything back working fine.

    However, sadly it does not do what we need, and what the OP needs, which is to be able to remove the /download/ (or /downloads/) from the URL.

    Perhaps it might help if I explain our situation better…..

    We have had (for many, many years) a page titled “Downloads” (in our URL, it was http://www.oursite.com/downloads) on that page we initially just listed links to certain pages (posts, actually), each that had a blurb and something to download…it might be a user guide, or a map, or whatever, and the URL was “www.oursite.com/maps/thismap.pdf” or “www.oursite.com/user-guides/myguide.pdf”. Each individual page was optimized for that asset, and our main “Downloads” page was just a listing of links to those pages by category.

    Then a few years ago my boss said “we need to track how many people download those” so we switched to using a plugin, Download Monitor, which worked great, although it was a huge amount of work to move all our assets into it and swap out the links, but it worked.

    Then recently my boss said “we need to let visitors VIEW the download first, or print it, before they decide if they want to download it”. Great. Download Monitor won’t do that, so I searched for weeks and tested many other plugins, before settling on yours – it’s truly a great plugin – BUT we discovered after installing it and migrating all our downloads from Download Monitor into yours, that it added the /downloads/ into the URL and our main Downloads page no longer worked.

    So from the WP forum for the free version I was directed to the Pro version and told the Pro version would allow me to set the URL base myself.

    I need to be able to keep ONLY the category name in the URL – that is how our downloads have been indexed for years and I really don’t want to do redirects. I like that your plugin uses custom category so it could import the categories from Download Monitor also (that process was super-simple and very smooth). 🙂

    BUT we’ve also always used post_tags to associate assets with content – so if I have a post about a product, and I have a user guide for that product, they get associated to the same page by tagging them both with the same post_tag.

    Since your plugin does not support using post_tags (you’ve removed that support on line 315 of the current version 6.3.3) which I had to change that line from “false” to “true” and comment out line 369 (so that the custom tags are not registered), and I keep good notes so that if/when I update to the next version I can make those changes again (I would encourage you to consider adding that as a choice to the Settings, to enable or disable support for Post Tags and maybe even other users might like support for Post Categories).

    I deeply appreciate your ongoing help to figure out this URL base thing, I’ve already spent weeks on this project and my boss is pressuring me to get our assets back online and available because it was a significant source of our traffic and it’s dropping every day I don’t have my downloads back.

    #186024

    In reply to: Custom URL


    Trisha Miller
    Participant

    WELL I SPOKE TOO SOON!

    While the solution offered worked in the BACK END, where I could see that the base URL to my downloadable items (packages) did indeed change to include only the category name, which is good…..

    NOW NONE of my Pages are accessible on the front end – ALL content other than my home page goes to the 404 error page!

    EDITED TO ADD: After deactivating the plugin WPDM pro, now all pages get redirected to my home page, not good.

    I’ve reversed everything and flushed the cache (permalinks) several times and nothing is fixing it. I’m attempting to restore from my backup last night but this is truly disastrous. 🙁

    #186022

    In reply to: Custom URL


    Shahjada
    Keymaster

    That is not an issue with wpdm, that is how wpdm url settings works.

    However, if you want to add category slug with package URL, here is the workaround:

    #1. Please add the following code at the end of your active theme’s functions.php:

    function wpdm_package_link($post_link, $post) {
    	if ('wpdmpro' === $post->post_type) {
    		$terms = wp_get_post_terms($post->ID, 'wpdmcategory');
    		if ($terms) {
    			$term_slug = array_pop($terms)->slug;
    			$post_link = str_replace('%wpdmcategory%', $term_slug, $post_link);
    		} else {
    			$post_link = str_replace('%wpdmcategory%', '-', $post_link);
    		}
    	}
    	return $post_link;
    }
    add_filter('post_type_link', 'wpdm_package_link', 10, 2);

    #2. Then use %wpdmcategory% is wpdm page url base slug.
    #3. Save Settings
    #4. go to WP Admin Menu ► Settings ► Permalinks
    #5. Click “Save Changes” button.

    Finally to go WP Admin Menu ► Packages and check the changes in URLs.

    I am using using [wpdm_search_result cols=1 template="sample-link-template"]
    content for sample-link-template is as follows

    <div class=”media”>

    [icon]

    <div class=”media-body”>
    <h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>[page_link]</h4>
    [download_link]
    <i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-th-large”></i> [file_size] <i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-download-alt”></i> </div>
    </div>

    after searching, results are shown but both the title and download button are not working. Both are not clickable. I suppose these were generated by [page_link] and [download_link]

    How do I fix this?


    jdh1178
    Participant

    It seems like the cart page is not being applied in the pay link, despite having the Cart Page set in wpdmpp settings – also there is no error handling for this.

    Steps:
    1 – create pay link
    2 – visit pay link

    Link is:
    my-url.com/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0

    Should be: my-url.com/cart/?addtocart=dynamic&price=44&name=Update&desc=Get%20your%20product%20updated&recurring=0

    Handling could be:

    if(isset($_SERVER['HTTP_REFERER'])) {
        header("location: " . $_SERVER['HTTP_REFERER']);
    } else {
        // Handle error
    }

    Thanks


    Emily Prince
    Participant

    Hello, I am using the Client Portal plugin and one thing doesn’t work right when the Download Manager plugin is enabled. I have added a code in the theme’s function.php so when someone logged into the portal (CP-Client type user) logs out, it redirects to the home page. However, the code is not working and redirects to the normal WordPress login page. If I deactivate Download Manager, it works correctly. Are you able to see what the issue is with this? Here are notes from the Client Portal Support:

    I checked your functions.php file and confirmed that you added the PHP snippet. See – https://share.getcloudapp.com/YEueBl96.

    But still, the issue persists when I tried logging out as brettzeck. Check this recording – https://share.getcloudapp.com/5zujnpzA.

    This worked on my test site as you can see here – https://share.getcloudapp.com/JrupGz2P.

    On further testing, it seems the Download Manager plugin is having conflicts with the filter. When this is active, the logout URL redirects to wp-login.php. Check this recording – https://share.getcloudapp.com/04u6L1ow.

    #185620

    In reply to: Hook for order updated


    jdh1178
    Participant

    Just an update on this – it seems not so straightforward as some things happen via ajax and some things happen via php.

    The best solution I’ve come up with is a function to listen for ajaxComplete (code example below) which I can then use to fire additional actions in wp to handle order updates. I’d thought to do this with php with the wp_ajax_wpdmpp_async_request, but it’s difficult to fire anything after the ajax requests (priority has to be earlier or they don’t fire).

    User would still need to catch the non ajax updates though as well, so it’s also not ideal.

    Would be great if any event that updates an order (ajax or php) fired a universal action so that developer can keep order related data updated/synced. If you have some other suggestions do let me know. I’m probably doing this the hard way for no reason 🙂 Thanks

    (function($) {
        $(document).ready(function() {
            // Check if we are in the wpdm admin area
            var currentURL = window.location.href;
            var targetURL = '/wp-admin/edit.php?post_type=wpdmpro';
    
            if (currentURL.indexOf(targetURL) !== -1) {
                // Run the AJAX event handlers only on the target page
                $(document).ajaxComplete(function(event, jqXHR, ajaxOptions) {
                    if (ajaxOptions.url === ajaxurl) {
                        doSomethingOnAjaxComplete(ajaxOptions, jqXHR);
                    }
                });
            } else {
                return;
            }
    
            // Function to execute when the WordPress AJAX URL is being used for different WPDM actions
            function doSomethingOnAjaxComplete(ajaxOptions, jqXHR) {
                console.log("WordPress AJAX URL used:", ajaxOptions);
    
                // Get the request data
                var requestData = ajaxOptions.data;
    
                // Do something on wpdmpp_async_request;
                if (requestData.indexOf('action=wpdmpp_async_request') !== -1) {
                    // The 'action' parameter is set to 'wpdmpp_async_request'
                    console.log('wpdmpp_async_request action detected from');
                    
                    // Get the response data from the AJAX request
                    var responseData = jqXHR.responseText;
                    console.log("Response data:", responseData);
    
                    // Perform a custom action after the response is received (error or not, doesn't matter)
    		callMyCustomWPFunction();
                }
    
    	    // Do something on wpdmpp_updateOrderExpiryDate;
                if (requestData.indexOf('action=wpdmpp_updateOrderExpiryDate') !== -1) {
                    // The 'action' parameter is set to 'wpdmpp_updateOrderExpiryDate'
                    console.log('wpdmpp_async_request action detected');
                   
                    // Get the response data from the AJAX request
                    var responseData = jqXHR.responseText;
                    console.log("Response data:", responseData);
    
                    // Perform a custom action after the response is received (error or not, doesn't matter)
    		callMyCustomWPFunction();
                }
    
                // Etc...Do more things on other wpdmpp js ajax actions
            }
        });
    })(jQuery);
    #185041

    Shahjada
    Keymaster

    Yes, you can do that using the following code:

    add_filter("PrivateMessage/Message/RestAPI/getMessage", function ($message) {
            //todo: replace "custom_profile_url_function" with proper code
    	$message->profile->url = custom_profile_url_function($message->profile->ID);
    	return $message;
    });
    
    #184992

    Floriana Pintacuda
    Participant
    This reply has been marked as private.
    #184856

    Rita
    Member

    Hi Nayeem,

    thanks. But sorry, again. I added the snippet again at the very end of the functions.php. But from where do I get the Post ID? Is it the part of the URL which can be edited? e.g. hello.de/download/333_1/

    Thanks, your help is highly aprreciated.
    Regards


    Morgan Pennec
    Participant
    This reply has been marked as private.

    Hi,

    After updating, we encountered a bug with the feature of adding external links as download buttons.

    Example of how it worked previously. Link is added and then the title is changed to something more easily readable:

    Now, after the updates, when adding a link to an external website, the link will disappear once changing its title and subsequently updating the page. When changing the title of existing links, the link will also disappear.

    Differentiation between external and internal links:

    When using links to download.schenker-tech.de (our Download Manager URL), the links will remain, even after changing the title. Only links to “other” websites are affected by this undesirable behavior.

    Please help us figure out the root cause why this feature suddenly stopped working. Thank you for your assistance!

    #184610

    Shahjada
    Keymaster

    okay now, you simply had to add https:// with url.

    DMNSOUL2217702%20Email%20Marketing

    #184560

    Tanvir
    Spectator

    Hello Martin,

    Please provide related page url where you want to add the icons to check it further. If possible please also share temporary admin access in a private reply.

    Regards
    Tanvir

    This reply has been marked as private.

    Rita
    Member

    Hello!
    I have the same issues like this topic: #79408
    Your answer was:

    Hi,

    It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php to apply it,

    if( isset( $_SESSION[ ‘_wpdm_unlocked_’.$package[‘ID’] ] ) == 1 ) {
    $download_url = \WPDM\Package::expirableDownloadLink( $package[‘ID’] );
    $link_label = get_post_meta($package[‘ID’], ‘__wpdm_link_label’, true);
    $link_label = trim($link_label) != ” ? $link_label : __(‘Download’, ‘wpdmpro’);
    $data = ”

    “;
    }

    But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.

    Thanks.

    I tried the code but it’s not working. Could you have a look if there is an issue with the code or with compatibilites with newer versions of the plugin? Thank you.
    And since the topic is several years ago, are there other/better possibilities?
    My goal is to type in the password once and then choose which files or the whole zip file you want to download – without using the password every time.

    Thanks in advance!
    Best Regards

    #184069

    Humayon
    Spectator

    Hello,

    Greetings for the day.

    Primarily you can control the behaviour by following this reference screenshot: https://prnt.sc/Bj4X5miEoprh

    Also, please note that Downloads open in the browser for 3 reasons:
    1. when you enable the “Open in browser” option
    2. When you attach a file as a URL
    3. When you add files from the media library
    To force download, you need to keep the “Open in browser” option disabled and upload directly using WPDM or attach a file using the server file browser.

    Regards


    Shahjada
    Keymaster

    I was an issue with the newly added feature “file search and pagination” with Asset Manager. From 2nd page or when you search, file url was not compiling properly. I’ve adjust the issue on our side and updated the plugin on your site too. Also, a public update is coming soon.

    #183620

    S J
    Participant

    I understand you want me to purchase this:

    WPDM Remote FTP Add-on

    If so, will it make the url mapped and encrypted because I can do this by using my ftp?

    I need a way to use external files from my second server but the url is encrypted.

    #183224

    Shahjada
    Keymaster

    Hello S J ( @seb22 ),
    When you attach file as URL. WPDM simply redirect to that URL when someone click on download link, there is no way to hide the URL. But, if you want to keep the item protected you may follow any of the following steps:

    1. Upload the file through WPDM
    2. Attach file using server file browser
    3. Using any of the could storage add-on Amazon S3, Dropbox Explorer
Viewing 25 results - 176 through 200 (of 1,656 total)