Search Results for 'Add Url'

Viewing 25 results - 851 through 875 (of 1,643 total)
  • Author
    Search Results
  • #93786

    In reply to: Login redirect


    Shahriar
    Moderator

    Hi!

    Add the following code to your theme’s functions.php file. Replace the redirect_url with your download page URL. And set the login page from Settings Frontend Login Page. The redirect will trigger when the user uses the WPDM login page to login to the site.

    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( "redirect_url" );
            exit();
        endif;
    }

    Thanks.

    #93444

    In reply to: Redirect to login page


    Shahriar
    Moderator

    Download Manager has the option to replace the download button with the login page link when a user is not logged in. You can customize this login button from Settings Basic Messages Login Required Message: option. Are you trying to do that?

    Or just want to redirect all guest users to the login page from any page in general? Add the following code to your theme’s functions.php file if this is the case. Before adding the code create the login page with WPDM login shortcode [wpdm_login_form logo="your_logo_url"] and set this page as Login Page in Settings Frontend Login Page option.

    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( get_permalink( get_option('__wpdm_login_url') ) );
            exit();
        endif;
    }
    #93443

    In reply to: Update License URL

    This reply has been marked as private.
    #93347

    Shahjada
    Keymaster

    Hi,
    Here are the answers to your queries:

    1. If files are added as URL ( from local server or remote file ), zip download will not work, as php can’t create zip file from urls.
    2. No such option for now, but noted for implementation.
    3. You can do that by editing that link/page template. Doc: https://www.wpdownloadmanager.com/doc/templates/

    Please give me temporary wp-admin login info in a private reply if you want me to check those in details.
    Now, your forum posting should work fine, but if you face issue again in forum, please mail to support@wpdownloadmanager.com

    #93316

    In reply to: permission denied .txt


    Shahriar
    Moderator

    Sorry, the option is actually “Login Required Message:” Actually, It was there before but your theme is hiding the .panel class, that’s why the login button was hidden. I have removed the div with .panel class and updated the “Login Required Message:” option. Now the login button is visible.

    Currently login button is linked to the default WP login page. If you want you can create a page with [wpdm_login_form logo="your_logo_url"] shortcode to use the WPDM login form. Then set that page as login page in Settings Frontend Access Login Page option.

    You can use the Default Values Add-on ( https://www.wpdownloadmanager.com/download/wpdm-default-values/ ) to bulk update link template for all packages. The link template option in your first screenshot is meant for a different purpose.

    #93260

    In reply to: permission denied .txt


    giovanni
    Participant

    another things….
    the link i added is correct but i can see it ..i receive also the access denied in the txt file

    <i class=”fa fa-lock”></i> Login

    ..the button in firefox browser disappear…i see it only on chrome browser

    #93213

    Shahriar
    Moderator

    Add the following code ( visit the link to copy the code ) at the bottom active theme’s functions.php file. This code should hide “Upload” and “URL” tab and activate the “Browse” tab.

    https://codeshare.io/aY4j1N

    #93174

    Shahriar
    Moderator

    Hi,

    Use [wpdm_frontend flaturl=0] shortcode for frontend uploading.

    You can use a simple upload form. But that requires using a custom template file for the /download-manager/tpls/wpdm-add-new-file-front.php file.

    You can check the template doc here https://www.wpdownloadmanager.com/doc/template-files/

    Basically, copy the template file and place it in your /active-theme/download-manager/ directory. Then make necessary changes. Now you new customized file will be used instead of the built-in one.

    If you need further help, send FTP and wp-admin login info in private reply, I will add the custom template file for you.

    Thanks.

    #93168

    In reply to: permission denied .txt


    Shahriar
    Moderator

    I have installed the Pro version of Download Manager on your site, you’re using the free version before. Use the package shortcode to show the downloads. You were using the direct download link. Use this [wpdm_package id='10451' template="5c548c4de15c6"] insted of Curva sofa -3D Files - Download

    I also created a custom link template 5c548c4de15c6 to show only title and download button just like your old style. Now you have to add the following message in your “Permission Denied Message for Packages:” settings and save settings.

    <a href="https://www.tosconova.com/nuovo/wp-login.php?redirect_to=[this_url]" class="btn btn-danger btn-sm"><i class="fa fa-lock"></i> Login</a>

    Side Note: Add the following code in your site .htaccess file to allow the AJAX saving of WPDM settings. Curenntly your server isn’t allowing the saving operation, that’s why I can’t add the “Permission Denied Message for Packages:”

    <IfModule mod_security.c>
    SecFilterRemove 001868
    </IfModule>

    #93026

    Shahriar
    Moderator

    WPDM Doesn’t control that part of permalink settings. It can customize the category and package URL bases. But you can use third-party plugins to add the .html I have tested this one https://wordpress.org/plugins/custom-post-type-permalinks/ Looks like working fine.


    Skylux
    Member

    Hello,

    Our setup is using the FTP add-on to link files in packages.
    After updating both WPDM (4.7.7 to 4.9.0) and WordPress (4.9.9 to 5.0.3) we are experiencing some download problems.

    Since doing those updated when clicking any file’s download button we get a txt file “download error” that specifies a URL that was not retrievable. It seems like the file ID get’s inserted into the URL? Something like this: http://ftp.example/5b28a0e884de9-filename-example.pdf
    I believe that before this ID was not inserted into the URL.

    I have reverted to a backup for now, any idea what might be causing this?

    #92848

    Shahriar
    Moderator

    Actually, No other configuration option available for S3 add-on. The add-on adds the capability of adding S3 files to your packages. And serves the download by generating temporary dynamic URL for s3 files.

    #92720

    Shahriar
    Moderator

    You have to add an extra class to control the size. For example, adding btn-lg class will make the button larger. Or you can just add inline CSS there.

    <a class="btn btn-success btn-lg" href="[download_url]">[link_label]</a>

    I have tested this on my setup. It works perfectly.

    #92715

    Shahriar
    Moderator

    Hi,

    If you use caching plugin WPDM doesn’t affect the performance as the page is served from cache. The only load it adds is static JS and CSS files which is not much and you are also minifying those.

    So, couldn’t think of any other option to increase the performance except the server capacity.

    The URL you sent above ask login info. But the login page loaded pretty fast.

    Thanks.

    #92624

    Shahriar
    Moderator

    I have tested LinkedIn share lock using my LinkedIn App Credentials. Works fine. Firefox blocks tracking scripts by default. Maybe that’s why the popup is not working for you. But it works for me both in Chrome and Firefox.

    Add your website URL in 2 options of LinkedIn App settings,

    1 ) SDK Settings Javascript Valid SDK domains:
    2 ) Auth OAuth 2.0 settings Redirect URLs:

    #92582

    In reply to: [icon]error


    Shahriar
    Moderator

    In your Package Settings Icon options, the

    https:

    part is missing from icon URL which was creating the issue. I have added a patch which will show the icon when URL is in your current format. But I guess you have uploaded a custom icon there which was gone after installing the patched version. So, now just upload your custom icon in /download-manager/assets/file-type-icons/ dir. Make sure to keep the file name same as before image_device_list.png

    The patch was replacing line 183 in /download-manager/libs/class.Package.php with the following code,

    else if ( strpos($post_vars['icon'], '//') === FALSE )

    #92413

    In reply to: Sorting Download Files


    Shafayet
    Moderator

    @jerschae, the total structure is completely different now, please create a new post with your issue, add issue url and the shortcode you are using.

    #92105

    1. Up until today, I have used the free plugin version to set up a new page.

    I have inserted the following shortcode into several dozen pages, referencing the link-template-default which rendered a nice, one-column list of downloads:

    [wpdm_category id="tickets-swiss-travel-pass-de" toolbar="0" order_by="field name" order="asc" template="link-template-default"]

    2. With the upgrade to the Pro version, the same link template has somehow changed (link-template-default), so all of my pages no longer displayed the same list. Here is one example where it is now showing a panel instead.

    3. Since I don’t want to update 60+ pages by changing the shortcode to another link template, I figured out how to go into PHP in order to override the template.

    4. For now, I have come up with the following snippet, hoping that it would nicely show my downloads like in the preview window within WP. I have overwritten the link-template-default, but the result looks pretty terrible and I can’t figure out how to make it a list again:

    <!– WPDM Link Template: Default Template –>
    <div class=”panel panel-default wpdm-link-template link-template-default”>
    <div class=”panel-body”>

    [thumb_200x100]

    <div class=”panel-content”>
    <h4 style=”padding-top: 0px;border:0px;margin: 0px;line-height: 1.7″>[title]</h4>
    <i class=”fas fa-hdd color-red”></i> [icon]  
    </div>
    </div>
    <div class=”panel-footer”>
    [download_link]
    </div>
    </div>

    5. Can you give me the correct code snippet which will create a view such as this one of yours?

    Thank you in advance!

    PS. And how can I add a target=”_blank” to the DOWNLOAD button, so that a new tab opens when someone clicks the button?

    #92069

    Shahriar
    Moderator

    You have to use custom CSS to change the text color. Target the .wpdm-download-link.btn.btn-link CSS classes to customize the text, font etc of shortcode button.

    The UI options apply to [download_link] tag only. So, If you want to show the download button then use a custom template and replace [download_link] with this <a class="btn btn-success" href="[download_url]">[link_label]</a>

    The feature was same before but controlled from Image Button add-on.

    #92059

    Matt
    Participant

    WPDM – PDF Viewer
    Version 1.2.4

    DM
    Version 4.8.11

    Theme
    Avada

    We have added the shortcode into the template and now getting error

    Frontend Error
    Notice: Undefined index: host in /home/…/…/wp-content/plugins/wpdm-pdf-viewer/wpdm-pdf-viewer.php on line 30

    Devtools Error
    JQMIGRATE: Migrate is installed, version 1.4.1
    ?__wpdm_pdf_viewer=1123|0:43 Uncaught SyntaxError: Invalid or unexpected token
    pdf.js:6211 The provided value ‘moz-chunked-arraybuffer’ is not a valid enum value of type XMLHttpRequestResponseType.
    supportsMozChunkedClosure @ pdf.js:6211
    viewer.js:10176 Uncaught ReferenceError: DEFAULT_URL is not defined
    at getViewerConfiguration (viewer.js:10176)
    at HTMLDocument.webViewerLoad (viewer.js:10180)

    #92038

    Shahriar
    Moderator

    Please check your “Password Reset Notification” email template content from Downloads Templates Email Template Tab. The template content should have the [#reset_password#] tag which adds the reset URL.

    #91871
    This reply has been marked as private.

    I was able to get the url to add the attachment. I am still not able to browse files on the server though.

    Hi there, I am trying to add a new download and this item is larger than 2MB. I have placed the item in the some location within the download-manager-files folder. My problem is that I am not able to use the browse option to find this file. I am also not certain what the url would be to add this in since download manager truncates the url with a number after the document id? I have not added a new item in quite a while… so maybe I am just missing a step or setting here? This could also be some sort of plugin conflict, I am not sure? Any help would be appreciated.

    Thanks,
    Becky

    #90984

    Matt Peddlesden
    Participant

    Hi,

    I’ve added a page with [wpdm_frontend flaturl=0] and am trying to review what this offers browsers of the site – specifically with the intention of allowing uploads from users.

    I can see the “add new” button, I click that and it asks for a title, I type a title in and then the page clears and I just get a small block of json:

    {“result”:”_ap_wpdm”,”id”:207}

    Also, if I click on File Manager it reports an invalid directory being used by scandir in wp-content/plugins/wpdm-filemanager/filemanager-frontend.php on line 5 – where can I review this setting and change if required?

    Thanks
    Matt.

Viewing 25 results - 851 through 875 (of 1,643 total)