Search Results for 'Add Url'

Viewing 25 results - 976 through 1,000 (of 1,656 total)
  • Author
    Search Results
  • #78404

    In reply to: Prosper Theme Issue

    Hi Shahriar, theme looking good!

    These are probably easy to do, but not sure how to:

    1. Homepage: “Explore Categories” text is slightly cut off at the top and bottom.

    2. Members (Customers) logged in page: Can you please disable the Toolbar when customers are logged into their dashboard i.e. automatically uncheck the “Show Toolbar when viewing site” for all new subscribers (customers).

    3. Contact page – no map or form showing – can we please show these.
    https://www.creativeonlinepublishing.com/contact/

    I have added the variables to the “contact us” customise section.
    – Do I need to add a separate form plugin (Ninja forms or similar)

    4. Stripe works well; Paypal is not returning automatically to merchant:

    I’ve Set Paypal IPN:
    Current settings
    Notification URL https://www.creativeonlinepublishing.com/?action=wpdmpp-payment-notification&class=Paypal
    Message delivery Enabled

    Many thanks 🙂

    #78231

    Shahriar
    Moderator

    Please check now. The issue is actually coming from your editor plugin. When you are entering edit mode your plugin is not calling the wp_head but enqueuing all frontend scripts from other plugins. So, some files are missing the required variable initialization.

    However, I have added the following code in /wpdm-premium-packages/assets/js/wpdmpp-front.js to handle this situation,

    if(wpdmpp_base_url == undefined ) var wpdmpp_base_url = '';

    #78229

    Tom DuHamel
    Member
    This reply has been marked as private.
    #78226

    In reply to: Link Template issues


    Brian
    Member
    This reply has been marked as private.
    #77948

    Shahriar
    Moderator

    Please add the following code to the bottom of your active theme’s functions.php file to redirect users to the homepage,

    add_action('wp_logout', 'wpdm_logout_redirect');
    function wpdm_logout_redirect(){
        wp_redirect(home_url(""));
        exit();
    }

    Shahriar
    Moderator

    Please add the following text to your robots.txt

    User-agent: *
    Disallow: /*?wpdmtask=get_downloads

    That would block any URL with ?wpdmtask=get_downloads from being indexed by a crawler.

    #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.
    #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.
    #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.

    #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

    #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.
    #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

Viewing 25 results - 976 through 1,000 (of 1,656 total)