Search Results for 'Add Url'

Viewing 25 results - 601 through 625 (of 1,643 total)
  • Author
    Search Results
  • #143625

    Nayeem Riddhi
    Moderator

    When attaching a file from the media library, it is added as URL, for URL ( local or remote ), only single file download will work, I think you would better use uploading file from select files option, it is working fine for file-cart option

    thanks

    #143604

    Nayeem Riddhi
    Moderator

    by default, you are using link-template-default.php for link template and page-template-default.php for the page template. you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/ for back-up your files, As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates for page template or tpls>link-templates for link template.

    For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,

    <a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>

    thanks


    Nayeem Riddhi
    Moderator

    Sorry for some late, I have informed from our senior developer that, When attaching a file from the media library, it is added as URL, for URL ( local or remote ), only single file download will work, I think you would better use uploading file from select files option, it is working fine for file-cart option

    thanks


    Kyosuke Kodama
    Participant
    This reply has been marked as private.

    Nayeem Riddhi
    Moderator

    Hi,

    please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

    Image 2020-12-12 at 2.14.21 PM

    now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,

    Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file

    Login to your WordPress hosting cPanel.

    Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,

    define('WP_SITEURL', 'https://www.example.com');
    define('WP_HOME', ' https://www.example.com');

    Fix #2: Changing WordPress site URL via phpMyAdmin

    Login to your hosting cPanel and open phpMyAdmin

    Select the database of your WordPress site from the left sidebar

    Select wp_options table

    Note: wp_ prefix may differ depending on your WordPress installation settings

    phpmyadmin-click-edit-on-siteurl

    edit those and save

    I hope your problem will be solved,

    thanks

    #142303

    WPTest
    Participant

    Hello,
    I’m getting a lot of php errors with DM

    Example:

    Notice:  Trying to access array offset on value of type bool in /home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings/addon-update.php on line 79
    
    Timestamp: 2020-12-06 12:38:45 UTC
    
    Stack Trace
    -----------
    1. include('/home/site/public...')
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:339
    2. WPDM\admin\menus\Settings->pluginUpdate()
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings.php:30
    3. include('/home/site/public...')
       /home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:42
    4. WPDM\admin\menus\Settings->UI('')
       /home/site/public_html/wp/wp-includes/class-wp-hook.php:287
    5. WP_Hook->apply_filters('', Array(1))
       /home/site/public_html/wp/wp-includes/class-wp-hook.php:311
    6. WP_Hook->do_action(Array(1))
       /home/site/public_html/wp/wp-includes/plugin.php:478
    7. do_action('wpdmpro_page_settings')
       /home/site/public_html/wp/wp-admin/admin.php:259
    8. require_once('/home/site/public...')
       /home/site/public_html/wp/wp-admin/edit.php:10
    
    Context
    -------
    URL            : /wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update&newpurchase=1
    Referer        : https://site/wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update
    HTTP Method    : GET
    HTTP Host      : site
    HTTP Status    : 200
    isSSL          : Yes
    Current Filter : wpdmpro_page_settings
    Execution Time : 2.066 s
    Memory Usage   : 8.29 MiB
    PHP SAPI       : litespeed
    
    #141764

    Hi – I’m trying to setup the PAD importer and it all works, but I need a slight configuration change. I want just the PAD submit URL field and not the email field. Basically so anyone can just submit a PAD file rather than have to put in an email address. I know it can be done as I’ve done it before, but I cannot remember how to do it!

    Any ideas?

    #141274

    Nayeem Riddhi
    Moderator

    For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,

    <a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>

    thanks

    #140797

    Nayeem Riddhi
    Moderator

    Please add this code in your theme functions.php

    add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
    
    function wpdm_loginout_menu_link( $items, $args ) {
        if ($args->theme_location == 'primary') {
            if (is_user_logged_in()) {
                $items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
            } else {
                $items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
            }
        }
        return $items;
    }

    it should return login and a logout menu both

    thanks

    #140682

    In reply to: Problems with Login


    Nayeem Riddhi
    Moderator

    Please add this code in your theme functions.php

    add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
    
    function wpdm_loginout_menu_link( $items, $args ) {
        if ($args->theme_location == 'primary') {
            if (is_user_logged_in()) {
                $items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
            } else {
                $items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
            }
        }
        return $items;
    }

    it should return login and a logout menu

    thanks

    #140354

    Hamid Ali Anjum
    Participant
    This reply has been marked as private.
    #140304

    Ounayda MDERE
    Participant
    This reply has been marked as private.

    Nayeem Riddhi
    Moderator

    please use the below code in your theme functions.php

    add_filter("wpdm_single_file_download_link", function($actions, $fileID, $package)
    {
       $url = add_query_arg(['wpdmdl' ► $package['ID'], 'ind' ► $fileID], home_url('/'));
        $actions = "<a href='#' data-downloadurl='$url' class='btn btn-sm btn-primary wpdm-download-link download-on-click'>Download</a>";
        return $actions;
    }, 1, 3);

    it will mask the single file download URL too

    thanks

    #139507

    Pedras Riscas
    Participant

    Hello,

    So everything is working, checked the php file but I can not find a way to edit this space: https://pedrasriscas.pt/wp-content/uploads/2020/10/Captura-de-ecrã-2020-10-28-às-10.18.29.png

    Can you please help me?

    The file code is:

    <!– WPDM Link Template: 1 Column, Extended –>
    <div class=”link-template”>
    [thumb_350x250]

    <div style=”clear: both;”></div>
    <h3 style=”margin: 10px 0;padding: 0;font-size: 12pt”>[title]</h3>
    <table class=”table-striped table-bordered table”>
    <tbody>
    <tr><td>Size</td><td>[file_size]</td></tr>
    <tr><td>Last Updated</td><td>[update_date]</td></tr>
    </tbody></table>
    </div>

    #139049

    In reply to: Broke theme


    Nayeem Riddhi
    Moderator

    please check from Settings > General WordPress Address (URL) Site Address (URL) same or not, I think this also cause the issue, please check further,

    thanks

    #139043

    Nayeem Riddhi
    Moderator

    There also available default link and page template in the package settings > dropdown page or link templates, but if you want to bulk apply to the all packages, you can use this add-on, https://www.wpdownloadmanager.com/download/wpdm-default-values/, and for login issue, please share your package URL

    thanks

    #138877

    bostjan laba
    Participant

    I have the same issue, no cache turned on expect by default in browser. Perhaps the solution would be to add a random parameter at the end of url like ?random=04u3r10r032rweq to prevent browser from caching the link…

    #138856

    In reply to: ISSUE WITH AMAZON s3


    Shahjada
    Keymaster

    Hi,
    Here are the answers to your questions:

    #1. Yes, please use redirect=[URL] parameter with the login form shortcode to redreict the user to any specific [URL]. Doc: https://www.wpdownloadmanager.com/doc/short-codes/wpdm_login_form-user-login-form-short-code/

    #2. Sorry, not clear, may you please explain little more.

    #3. Here is the doc: https://www.wpdownloadmanager.com/doc/add-new-package/package-settings/

    #138812

    Abdul Razak
    Participant

    no! I actually added a new Volume to my digital ocean account which is /mnt/volume_nyc1_05. My default volume is full, so i want this new volume to work in your plugin. Since I configured the volume properly, I changed the directory or file browser URL to the new /mnt/volume_nyc1_05. If i upload any new file, it fails! Not uploading it to the new volume. It’s still trying to upload to the old volume.

    #138674

    Nayeem Riddhi
    Moderator

    are you looking for such add-on which will help your Digital Ocean Volume, you can elaborate more on your query, or share your page/package URL

    thanks

    #138387

    Ben Schlaepfer
    Participant

    Solved this myself by copying the code you use in wpdm-functions.php function wpdm_logout_url so my finalised code for my custom function is:

    /*  ADD NONCE TO LOGOUT LINK  */
    
    function change_menu($items){
      foreach($items as $item){
        if( $item->title == "Logout"){
             $item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
        }
      }
      return $items;
    	
    }
    add_filter('wp_nav_menu_objects', 'change_menu');
    

    Where the change was from

           $item->url = $item->url . "=" . wp_create_nonce( 'login' );
    

    TO

             $item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
    

    For anyone interested in having TWO wordpress menus – one for logged in ( named logged-in ) and one for logged out ( named logged-out ) that switch when you are logged in or not PLUS having a Logout Link that behaves just like the WPDM logout links AND the ability to display login text messages to people not logged in, the three adds to your child theme functions.php is as follows:

    
    /*  LOGGED IN / LOGGED OUT MENU      */
    
    function my_wp_nav_menu_args( $args = '' ) {
     
    if( is_user_logged_in() ) { 
        $args['menu'] = 'logged-in';
    } else { 
        $args['menu'] = 'logged-out';
    } 
        return $args;
    }
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
    
    
    /*  ADD NONCE TO LOGOUT LINK  */
    
    function change_menu($items){
      foreach($items as $item){
        if( $item->title == "Logout"){
             $item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
        }
      }
      return $items;
    	
    }
    add_filter('wp_nav_menu_objects', 'change_menu');
    
    
    /*  LOGGED OUT MESSAGE TO REGISTER OR LOGIN    */
    
    add_shortcode( 'visitor', 'visitor_check_shortcode' );
    
    function visitor_check_shortcode( $atts, $content = null ) {
    	 if ( ( !is_user_logged_in() && !is_null( $content ) ) || is_feed() )
    		return $content;
    	return '';
    }
    

    To use the visitor only text shortcode in a page or widget just do E.G.:

    [visitor]
    <div class=”card card-body bg-light”>
    You must register or login
    to download files from this site.
    </div>
    [/visitor]

    Thanks,
    Ben

    #138174

    Shahjada
    Keymaster

    Hi,
    I’ve installed and activated the pdf stamper add-on on your site, it is working fine ( https://ieltstestonline.com/download/ielts-writing-ebook-general-training/ ). But, for now, you have to attach PDF file using the server file browser ( as server file path ) instead of the media library URL to stamp properly.

    #138161

    In reply to: Amazon S3 returns 404


    Nayeem Riddhi
    Moderator

    Hi,

    please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

    Image 2020-10-09 at 4.10.45 PM

    now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,

    Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file

    Login to your WordPress hosting cPanel.

    Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,

    define('WP_SITEURL', 'https://www.example.com');
    define('WP_HOME', ' https://www.example.com');

    Fix #2: Changing WordPress site URL via phpMyAdmin

    Login to your hosting cPanel and open phpMyAdmin

    Select the database of your WordPress site from the left sidebar

    Select wp_options table

    Note: wp_ prefix may differ depending on your WordPress installation settings

    phpmyadmin-click-edit-on-siteurl

    edit those and save

    I hope your problem will be solved,

    thanks


    dshank
    Participant
    This reply has been marked as private.

    LarryG
    Member

    I have had two issues with the latest version of WPDM. When I tried to update to V5.2.3 automatically I got an update error from WordPress complaining about the zip file. So I downloaded the zip file manually from your website and installed it manually. It seemed to work, but…

    For the two latest files I have uploaded to our website after upgrading to 5.2.3 I get the message:
    This site can’t be reached
    The webpage at https://acfconsultants.com/download/gsccd/?wpdmdl=33569&_wpdmkey=5f71931115258 might be temporarily down or it may have moved permanently to a new web address.
    ERR_UNSAFE_REDIRECT

    I noted that the wpdmkey in the above URL is different from the master key in the WPDM editor. If I substitute the Master Key for the above URL, I then get:
    — Invalid download link —

    Older files uploaded with the previous version of WPDM still work fine.

Viewing 25 results - 601 through 625 (of 1,643 total)