Search Results for 'Add Url'

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

    imfinlay
    Member

    Hi, no WP_CONTENT_URL defined in wp-config or anywhere else I can grep for. I can’t give you an FTP login as all logins are ssh/sftp with key auth. If you send me your public key I can add it.

    #77124

    Shahriar
    Moderator
    This reply has been marked as private.

    ted
    Member

    Hi

    I’ve been using the plugin with great success for a couple of years. I have a table of my downloads showing on a downloads WP page. The table comprises the title, category, date added and a direct download link which used to take the user direct to the zip download without showing any further info.

    Up until recently, the title would show as a hyperlink which, when clicked, took the user to the details page about the item. But at some point in the last few months (I only just noticed) that has stopped working and now the title just shows as text and the the icon also does not show as selected in the admin side.

    I am currently using v2.9.72, and for the last week or so I was using 2.9.71 where this issue also applied. On my WordPress page, I have the following shortcake to render this table. I am assuming that one of the updates has made a change to how this table shows?

    [wpdm_all_packages items_per_page="5" categories="windows, linux, osx" jstable=1 order_by="date" order="DESC" ]

    The website URL that shows the issue is https://quickhash-gui.org/downloads/

    I’d value any help because it’s putting users off because they can’t read details about each download as they usually could. Many thanks

    #76378

    Hi,

    Sorry, you can not use multiple google drive account with the google drive addon. But you can attach the link from the multiple google drive file by attaching file URL option in the package.

    Thanks


    David
    Member

    Hi, we just moved our site to a live server and now all of the custom templates have disappeared, and the download links are looking terrible. We need to get this resolved ASAP.

    We had to do a find and replace to update the url’s to the live url address, so I’m not sure if that would have affected it.

    Please help!

    #76293

    Shahriar
    Moderator

    Multi-file zip download is working now. I deleted the previous installation of the plugin and installed a fresh copy. If you face the issue on other sub-sites, just deactivate and re-activate the Download Manager.

    The [download_link] template tag is working too. ( Removed onclick attribute & added {$post_vars['download_url']} in href tag [ line no 185 class.Package.php ] )

    #76167
    This reply has been marked as private.
    #76132

    Kristie
    Member

    Hi – I’ve added the shortcode [pdf_thumb_WxH] to the Link Template. However, the thumbnail size appears to be a large size and does not change no matter how I resize it.

    The code looks like this:

    <div class="be-article-download">
       <div class="_picture">
        [pdf_thumb_250x120]
        </div>
        <div class="_text">
            <div class="_name">[title]</div>
            <div class="_size">[file_size] [first_file_ext]</div>
       </div>
        <div class="_action">
            <a href="[download_url]"><svg class="icon download"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#download"></use></svg></a>
            <a href="[first_file_path]" target="_blank"><svg class="icon eye"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#eye"></use></svg></a>
            <ul class="list-reset">
                <li><a href="[first_file_path]" target="_blank">View online</a></li>
                <li><a href="[download_url]">direct download</a></li>
            </ul>
        </div>
    </div>

    Can you please help?
    Thanks!

    #75961

    Shahriar
    Moderator

    Please add the following code after line no 250,

    $data['download_url'] = wpdm_download_url($data['ID']);
    $download_link = 'Download';

    In WPDM settings you have to check the Open file in the browser option. I have used plain text Download instead of a button. You can replace it with a button if you want.


    Nora
    Member

    Currently, there is no flexibility to change the Subscribe button text for the Plans which are being displayed.

    Need filters to do so.

    Could you add filters to the subscribe button text as below?

    File: signup.php
    From

    <button type="submit" class="btn btn-success btn-lg btn-block">Subscribe<i class="icon icon-angle-right"></i></button>

    To

    <button type="submit" class="btn btn-success btn-lg btn-block"><?= apply_filters('wppm_subscribe_btntxt', 'Subscribe' ); ?><i class="icon icon-angle-right"></i></button>

    File: membership-plans.php
    From

    <?php if(empty($current_user->membership_level->ID)) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block" style="color:#fff !important;" href="<?php echo wpmp_curl("task=wpmp-subscribe&level=" . $level->id)?>"><?php _e('Subscribe', 'Choose a level from levels page', 'wpmarketplace');?></a>
                                    <?php } elseif ( !$current_level ) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block" style="color:#fff !important;" href="<?php echo wpmp_curl("task=wpmp-subscribe&level=" . $level->id)?>"><?php _e('Subscribe', 'Choose a level from levels page', 'wpmarketplace');?></a>
                                    <?php } elseif($current_level) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block disabled" href="<?php echo wpmp_url("account")?>"><i class="fa fa-user-circle-o"></i> &nbsp;<?php _e('Your&nbsp;Level', 'wpmarketplace');?></a>
                                    <?php } ?>

    To

    <?php if(empty($current_user->membership_level->ID)) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block" style="color:#fff !important;" href="<?php echo wpmp_curl("task=wpmp-subscribe&level=" . $level->id)?>"><?php _e(apply_filters('wppm_subscribe_btntxt', 'Subscribe' ), 'Choose a level from levels page', 'wpmarketplace');?></a>
                                    <?php } elseif ( !$current_level ) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block" style="color:#fff !important;" href="<?php echo wpmp_curl("task=wpmp-subscribe&level=" . $level->id)?>"><?php _e(apply_filters('wppm_subscribe_btntxt', 'Subscribe' ), 'Choose a level from levels page', 'wpmarketplace');?></a>
                                    <?php } elseif($current_level) { ?>
                                        <a class="btn <?php echo $btn_type ?> btn-block disabled" href="<?php echo wpmp_url("account")?>"><i class="fa fa-user-circle-o"></i> &nbsp;<?php _e('Your&nbsp;Level', 'wpmarketplace');?></a>
                                    <?php } ?>
    #74568

    Shahriar
    Moderator

    You can try the following code,

    echo "
  • ";

    Replace /wpdm-extended-shortcodes.php line 484 with this code.

    #74540

    rosewill
    Member

    I setup download manager Pro in workpress with IP address 172.168.0.10 . AFter all Test is done , I move the server to production and change its both IP and domain name . But looks like download manager still stick to the old IP address rather than new one .

    In stead of change those image url one by one ,is there any way to batch change it ?

    #74475

    I’ve buyed the pro addon Facebook Share to lock downloads but doesn’t work. I’ve configured the key and web platform on facebook developers but don’t work!

    Url for view: https://bit.ly/2HP9IDk

    Ps: when i click in “share” my page goes to top.

    #73881

    GuidoM
    Participant

    Hi Hasibul, probably there was a misunderstanding. I want to use the template with the modul popup to login for the users haven’t login yet.

    You can try on template test 13/4

    <div class=”media”>

    [icon]

    <div class=”media-body”>
    <h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>[title]</h4>
    Download
    </div>
    </div>

    #73515

    Lazos SA
    Participant

    Hey, thanks for answering.

    I have the WPDM Extended Short-codes add-ons installed, I use the The7 theme in my WordPress installation.

    The URL of the page where I want to view the carousel is http://pre-snaspe.lazos.cl/biodiversidata/#1522337162728-10, also add the widget at the following URL http://pre-snaspe.lazos.cl/prueba to rule out conflicts with other JS

    I remain attentive, greetings


    Oliver
    Member

    Hello

    Could someone help me in the following?

    I should add that in the title of the download document, in the template link_template_default the URL for downloading the document. In such a way that the title became the download link directly.

    Thank you.

    #72928

    Hello.
    Now I really need to put this addon to work for me, serious.

    The WPDM Pro version 4.7.4 not working for me, I am using 4.7.3.

    Any package with Form Lock activetad, gives me this error trying to view on browser:

    Warning: Illegal string offset ‘html’ in C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\wpdm-form-lock\wpdm-form-lock.php on line 78

    Warning: Cannot assign an empty string to a string offset in C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\wpdm-form-lock\wpdm-form-lock.php on line 78

    Warning: Illegal string offset ‘html’ in C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\wpdm-form-lock\wpdm-form-lock.php on line 79

    Fatal error: Uncaught Error: Cannot use assign-op operators with string offsets in C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\wpdm-form-lock\wpdm-form-lock.php:79 Stack trace: #0 C:\wamp64\www\eletrobrasrondonia\wp-includes\class-wp-hook.php(286): WPDM_FormLock->download_lock(”, Array) #1 C:\wamp64\www\eletrobrasrondonia\wp-includes\plugin.php(203): WP_Hook->apply_filters(”, Array) #2 C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\download-manager\libs\class.Package.php(902): apply_filters(‘wpdm_download_l…’, ”, Array) #3 C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\download-manager\libs\class.Package.php(219): WPDM\Package::activeLocks(Array, Array) #4 C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\download-manager\libs\class.Package.php(1174): WPDM\Package->Prepare(12401, ‘<!– WPDM Templ…’, ‘page’) #5 C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\download-manager\wpdm-functions.php(1289): WPDM\Package::fetchTemplate(‘<!– WPDM Templ…’, Array, ‘page’) #6 C:\wamp64\www\eletrobrasr in C:\wamp64\www\eletrobrasrondonia\wp-content\plugins\wpdm-form-lock\wpdm-form-lock.php on line 79

    this is my setup in WP:

    Versão do plugin : 4.3.2
    Versão WP : 4.9.4
    WPMU: No
    MySQL Versão : 5.5.5
    WP Prefixo de tabela : co_eletro_
    PHP Versão : 7.1.11
    Sessão salvar caminho : c:/wamp64/tmp
    WP URL: http://www.eletrobrasrondonia.com
    Nome do servidor : http://www.eletrobrasrondonia.com
    Domínio do cookie : http://www.eletrobrasrondonia.com
    CURL Biblioteca presente : Yes
    Depurar arquivo permissões de gravação : Writable

    Versão PHP : 7.1.11
    Uso de memória: 63.22 MB
    Limite de memória : 512M
    Tamanho máximo para carregar : 256M
    Tamanho máximo do post : 256M
    Permitir URL fopen : Ligado
    PHP Allow URL Include : Desligado
    Erros de exibição : Ligado
    Tempo máximo de execução de script : 6000 Seconds

    #72858

    In reply to: 4.7.4 breaks layout


    Digital Nomads
    Participant

    Hi,

    Could you help me out with that? I’d like the page to display as it was before. Here’s my link template: –

    <div class=’col-md-6′>
    <div class=”panel panel-default”>
    <div class=”panel-body”>
    <div class=”media”>

    [thumb_60x60]

    <div class=”media-body”>
    <h4 class=”media-heading” style=”font-size: 16px;color: #337ab7;padding-top: 0px;padding-bottom:40px;border:0px;margin: 0px;height: 20px;overflow: hidden”>[title]</h4>
    <p style=”color: #666;”>[icon] Published [create_date]</p>
    </div>
    </div>
    </div>
    <div class=”panel-footer”><div class=”pull-left” style=”line-height: 50px;”><i style=”margin: 2px 0px 0 5px;opacity:0.5″ class=”fa fa-th-large”></i> [file_size]<i style=”margin: 2px 0 0px 45px;opacity:0.5″ class=”fa fa-download”></i> [download_count] downloads</div> <div class=”pull-right”>[download_link]</div><div style=”clear: both”></div></div>
    </div>
    </div>

    Ken

    #72818

    In reply to: WPDM – Amazon s3

    The code tags removed all white space.

    Defined constants file:

    /etc/aws_secrets/site.secrets.php
    <?php
    define(‘AWS_CLOUDFRONT_ACCESS_KEY_ID’,’*************’);
    define(‘AWS_CLOUDFRONT_KEY_PATH’ , ‘/etc/aws_secrets/cloudfront_privk.pem’);
    define(‘MY_DOMAIN’ , ‘.example.com’);
    define(‘AWS_CLOUDFRONT_USER_DOWNLOADS’,’***********.cloudfront.net’);
    define(‘AWS_USER_ACCESS_KEY_ID’,’****************’);
    define(‘AWS_USER_SECRET_ACCESS_KEY’,’********************************’);
    define(‘AWS_REGION’,’us-west-2′);
    ?>

    // Add to the end of functions.php in your WordPress theme
    add_action(‘init’, ‘setMyCookies’);

    function setCloudFrontCookies(){

    /*
    * We’re on app.example.com or http://www.example.com, files are on S3.
    * We need to send requests to files.example.com, becuase browsers will not
    * accept cookies for S3 or xxxxxxx.cloudfront.net sent from example.com
    *
    * Therefore, we will set cookies for .example.com,
    * so that they’re sent to the CloudFront subdomain files.example.com.
    *
    *
    * User request needs to go like this:
    *
    *
    * User visits *.example.com (our site)
    * After authenticating user, our site *.example.com sets cookies for
    * .example.com and redirects to files.example.com
    * DNS sends request to cloudfront. Cloudfront gets files from S3.
    *
    * Step: 1
    *
    * Set Route 53 (DNS) CNAME record for files.example.com that points to our
    * cloudfront distribution: xxxxxxx.cloudfront.net.
    * Now requests sent to files.example.com from our site will go to cloudfront.
    *
    * Step: 2
    * In our cloudfront xxxxxxx.cloudfront.net add CNAME files.example.com
    * Now xxxxxxx.cloudfront.net will respond to requests sent to files.example.com
    */

    // Settings
    //
    // Location of all defined constants used below
    require_once (‘/etc/aws_secrets/site.secrets.php’);
    //
    // AWS SDK User
    // Create an IAM user with cloudfront all access for use by the SDK
    $user_access_key_id = AWS_USER_ACCESS_KEY_ID;
    $user_secret_access_key = AWS_USER_SECRET_ACCESS_KEY;

    // AWS Cloudfront Access Key ID
    // NOT a regular IAM user.
    // In your root account look for “My Security Credentials”.
    // Or, from here:
    // https://console.aws.amazon.com/iam/home#/security_credential
    // Look for Your Security Credentials,Cloudfront Key Pairs, Access Key ID
    $key_pair_id = AWS_CLOUDFRONT_ACCESS_KEY_ID;
    // The private key .pem file associated with this Access Key ID.
    $private_key = AWS_CLOUDFRONT_KEY_PATH;

    // Region is a subset of the availbiity zone
    // If availbility zone = us-west-2b, then region is us-west-2
    $region = AWS_REGION;

    // MY_DOMAIN = .example.com
    $my_domain = MY_DOMAIN;

    // http*:// permits both https and http.
    // You can add a restriction in your Distribution Behavior to redirect all http to https.
    // Then this code is portable across distributions.
    $cloudfront_base_url = ‘http*://’ . $my_domain . ‘/’;

    // Path to cookie protected content.
    // Change * to your path after the base url http*://.example.com/
    //http*://.example.com/$cookie_path
    $cookie_path = ‘*’;

    // Full URL for cookie protected content
    $allowed_resource = $cloudfront_base_url . $cookie_path;

    // Cloudfront requires all policies to expire
    // This is the policy level expires
    $policy_expires_after = (86400 * 7); // 1 week

    // Set your own $expires at the cookie level to zero to make it a session cookie.
    // Easier to debug a session cookie.
    // And users do not need to be told to clear their cookies to get a new policy,
    // if you change the cookie policy.
    // Users will get the new policy on login.
    $expires = 0;

    // Initialize AWS SDK for PHP
    $site_path = get_home_path();
    $aws_path = ‘vendor/autoload.php’;
    $aws_package_path = $site_path . $aws_path;
    require_once $aws_package_path;

    $sdk_params =
    [
    ‘region’ ► $region,
    ‘version’ ► ‘latest’,
    ‘credentials’ ► new \Aws\Credentials\Credentials
    (
    $user_access_key_id,
    $user_secret_access_key
    )
    ];
    $sdk = new \Aws\Sdk($sdk_params);
    $cloudfront = $sdk->createCloudFront();

    // Setup CloudFront cookie #1: CloudFront-Key-Pair-Id
    $cookies = [ ];
    $cookies[ ‘CloudFront-Key-Pair-Id’ ] = $key_pair_id;

    // Setup CloudFront cookie #2: CloudFront-Policy
    $raw_policy =
    [
    ‘Statement’ ►
    [
    [
    ‘Resource’ ► $allowed_resource,
    ‘Condition’ ►
    [
    ‘DateLessThan’ ►
    [
    ‘AWS:EpochTime’ ► (time() + $policy_expires_after)
    ]
    ]
    ]
    ]
    ];

    $policy = json_encode($raw_policy);
    $cookies[ ‘CloudFront-Policy’ ] = base64_encode($policy);

    // CloudFront cookie #3: CloudFront-Signature
    $url_signing_params =
    [
    ‘url’ ► $allowed_resource,
    ‘policy’ ► $policy,
    ‘key_pair_id’ ► $key_pair_id,
    ‘private_key’ ► $private_key
    ];

    $signed_url = $cloudfront->getSignedUrl($url_signing_params);
    // We just need the “Signature” query string part of the signed URL
    parse_str(parse_url($signed_url, PHP_URL_QUERY), $signed_url_arr);
    $signature = $signed_url_arr[ ‘Signature’ ];
    $cookies[‘CloudFront-Signature’] = $signature;

    // Set cookies
    foreach ($cookies as $cookie_name ► $cookie_value)
    {
    setcookie($cookie_name, $cookie_value, $expires, $cookie_path, $my_domain);
    }

    }

    function setMyCookies() {
    setCloudFrontCookies();
    }

    #72817

    In reply to: WPDM – Amazon s3

    I can see my buckets, but clicking on them does nothing. I see the red “Loading…” and then nothing.

    Btw, I have mounted my S3 buckets inside my server at /mnt/s3/ using the aws s3fs fuse filesystem package.
    So, I can see, copy, delete, my files and directories just like any local file.

    For example, downloads are at:
    /mnt/s3/userdownloads/

    What I am hoping would get developed in this plugin would be Cloudfront together with S3, so that Cloudfront will serve my protected content.

    What I have working is that I copy private user-specific content to:

    /mnt/s3/userdownloads/private_content/username

    The url is then userdownloads.example.com/private_content/username/

    This content is protected by signed cookies.

    Here is the code that I have working that does all this.

    I hope it can be integrated with the WPDM package permissions.

    Defined constants file, change for your site, and set your own $cookie_path as desired:

    
    /etc/aws_secrets/site.secrets.php
    <?php
    define('AWS_CLOUDFRONT_ACCESS_KEY_ID','*************');
    define('AWS_CLOUDFRONT_KEY_PATH' , '/etc/aws_secrets/cloudfront_privk.pem');
    define('MY_DOMAIN' , '.example.com');
    define('AWS_CLOUDFRONT_USER_DOWNLOADS','***********.cloudfront.net');
    define('AWS_USER_ACCESS_KEY_ID','****************');
    define('AWS_USER_SECRET_ACCESS_KEY','********************************');
    define('AWS_REGION','us-west-2');
    ?>
    
    // Add to the end of functions.php in your WordPress theme
    add_action('init', 'setMyCookies');
    
    function setCloudFrontCookies(){
    
        /*
         * We're on app.example.com or www.example.com, files are on S3.
         * We need to send requests to files.example.com, because browsers will not
         * accept cookies for S3 or xxxxxxx.cloudfront.net sent from example.com
         *
         * Therefore, we will set cookies for .example.com,
         * so that they're sent to the CloudFront subdomain files.example.com.
         *
         * 
         * User request needs to go like this:
         *
         *
         * User visits *.example.com (our site)
         * After authenticating user, our site *.example.com sets cookies for
         *  .example.com and redirects to files.example.com
         * DNS sends request to cloudfront.  Cloudfront gets files from S3.
         *
         * Step: 1
         *
         * Set Route 53 (DNS) CNAME record for files.example.com that points to our
         * cloudfront distribution: xxxxxxx.cloudfront.net. 
         * Now requests sent to files.example.com from our site will go to cloudfront.
         *
         * Step: 2
         * In our cloudfront xxxxxxx.cloudfront.net add CNAME files.example.com
         * Now xxxxxxx.cloudfront.net will respond to requests sent to files.example.com
        */
       
        // Settings
        //
        // Location of all defined constants used below
        require_once ('/etc/aws_secrets/site.secrets.php');
        //
        // AWS SDK User
        // Create an IAM user with cloudfront all access for use by the SDK
        $user_access_key_id = AWS_USER_ACCESS_KEY_ID;
        $user_secret_access_key = AWS_USER_SECRET_ACCESS_KEY;
    
        // AWS Cloudfront Access Key ID
        // NOT a regular IAM user. 
        // In your root account look for "My Security Credentials".
        // Or, from here:
        // https://console.aws.amazon.com/iam/home#/security_credential
        // Look for Your Security Credentials,Cloudfront Key Pairs, Access Key ID
        $key_pair_id = AWS_CLOUDFRONT_ACCESS_KEY_ID;
        // The private key .pem file associated with this Access Key ID.
        $private_key = AWS_CLOUDFRONT_KEY_PATH;
       
        // Region is a subset of the availbiity zone
        // If availbility zone = us-west-2b, then region is us-west-2
        $region = AWS_REGION;
    
        // MY_DOMAIN = .example.com
        $my_domain = MY_DOMAIN;
       
        // http*:// permits both https and http.
        // You can add a restriction in your Distribution Behavior to redirect all http to https.
        // Then this code is portable across distributions.
        $cloudfront_base_url = 'http*://' . $my_domain . '/';
       
        // Path to cookie protected content.
        // Change * to your path after the base url http*://.example.com/
        //http*://.example.com/$cookie_path
        $cookie_path = '*';
       
        // Full URL for cookie protected content
        $allowed_resource = $cloudfront_base_url . $cookie_path;
    
        // Cloudfront requires all policies to expire
        // This is the policy level expires
        $policy_expires_after = (86400 * 7); // 1 week
    
        // Set your own $expires at the cookie level to zero to make it a session cookie.
        // Easier to debug a session cookie. 
        // And users do not need to be told to clear their cookies to get a new policy,
        // if you change the cookie policy.
        // Users will get the new policy on login.
        $expires = 0;
       
        // Initialize AWS SDK for PHP
        $site_path = get_home_path();
        $aws_path = 'vendor/autoload.php';
        $aws_package_path = $site_path . $aws_path;
        require_once $aws_package_path;
    
        $sdk_params =
        [
            'region' ► $region,
            'version' ► 'latest',
            'credentials' ► new \Aws\Credentials\Credentials
            (
                $user_access_key_id,
                $user_secret_access_key
            )
        ];
        $sdk = new \Aws\Sdk($sdk_params);       
        $cloudfront = $sdk->createCloudFront();
    
        // Setup CloudFront cookie #1: CloudFront-Key-Pair-Id
        $cookies = [ ];
        $cookies[ 'CloudFront-Key-Pair-Id' ] = $key_pair_id;
    
        // Setup CloudFront cookie #2: CloudFront-Policy
        $raw_policy =
        [
           'Statement' ►
           [
              [
                 'Resource' ► $allowed_resource,
                 'Condition' ►
                 [
                    'DateLessThan' ►
                    [
                        'AWS:EpochTime' ► (time() + $policy_expires_after)
                    ]
                 ]
              ]
           ]
        ];
       
        $policy = json_encode($raw_policy);
        $cookies[ 'CloudFront-Policy' ] = base64_encode($policy);
    
        // CloudFront cookie #3: CloudFront-Signature
        $url_signing_params =
        [
            'url' ► $allowed_resource,
            'policy' ► $policy,
            'key_pair_id' ► $key_pair_id,
            'private_key' ► $private_key
        ];
    
        $signed_url = $cloudfront->getSignedUrl($url_signing_params);
        // We just need the "Signature" query string part of the signed URL
        parse_str(parse_url($signed_url, PHP_URL_QUERY), $signed_url_arr);
        $signature = $signed_url_arr[ 'Signature' ];
        $cookies['CloudFront-Signature'] = $signature;
    
        // Set cookies
        foreach ($cookies as $cookie_name ► $cookie_value)
        {
            setcookie($cookie_name, $cookie_value, $expires, $cookie_path, $my_domain);
        }
    
    }
    
    function setMyCookies() {
        setCloudFrontCookies();
    }
    
    #72148

    For additionnal informations.
    IPN notification are enabled in my papypal and url is set like that :

    Home

    But my site is in “https”

    #71874
    This reply has been marked as private.
    #71837

    richardyoung
    Member

    Having problem linking onedrive addon with my MS onedrive
    I have ‘registered app’ as per the documentation provided with onedrive addon.
    I have created redirect url as per that documentation.
    I have guessed at Client Id / client secret. Addon document says to use the link https://account.live.com/developers/applications
    But this takes me back to the page where i registered my app. No mention of client secret on this page but one hint suggests that “client id” and “application id” might be the same. So i guess that “client secret” and “password/public key” might also be the same thing.
    But when i add these 3 values into the addon settings page and click ‘save settings’ the ‘wheel spins’ and never returns response to my web page.
    Chrome ‘inspect’ gives this error when ‘save settings’ is clicked.
    “Failed to load resource: the server responded with a status of 400 () …………..(edited)…….wp-admin/admin-ajax.php?_fs_blog_admin=true”

    Any suggestions what i might be doing wrong.

    #71784

    In reply to: 3 Important Questions

    Hi,

    Yes, there is a widget for the shopping cart.

    Please follow this tutorial, and for redirect off to dashboard please select none selected from settings frontend login page. And for disable logout confirmation follow this.

    For navigation function please see the gist file from here.

    And to show log out in any page use this PHP code <?php echo wp_logout_url( $redirect ); ?>

    Thanks

    #71750

    In reply to: 3 Important Questions

    Hi,

    1. You can get the name and email with the login. In that case, you can disable the billing address from Downloads Settings Premium Package frontend settings. Otherwise you can remove the fields from wp-content\plugins\wpdm-premium-packages\templates\checkout-cart\checkout-billing-info.php.

    2. You need to use [wpdm-pp-cart] shortcode on a page to show the cart on that page for the premium package.

    3. You can use default WordPress logout URL in the menu items, you need to add a custom function to change the navigation for logged in and logged out users.

    Thanks

Viewing 25 results - 1,176 through 1,200 (of 1,927 total)