Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dragonfly67

    (@dragonfly67)

    Thank you very much for this great plugin, I love it.
    Sorry for bothering you with the above question,

    I managed to solve the problem above, by adding a filter
    add_filter(“manage_toplevel_page_[screen->id]”,”addscreeencolumns”);
    and in the function addscreeencolumns($columns)
    merging columns with my array of columns.

    Now I can choose which columns I want to show/hide.

    many regards dragonfly67

    • This reply was modified 3 years, 6 months ago by dragonfly67.

    Thanks from Switzerland. Awesome support from Ewout – as always.

    Thread Starter dragonfly67

    (@dragonfly67)

    sorry made a mistake with the link (href) tag. but the link works and the text and what I mean is readable.

    Thread Starter dragonfly67

    (@dragonfly67)

    sorry for the wrong usage of the link tag. I forgott the closing tag.
    here’s the link to the documentation: Documentation

    @mra13, thank you very much. I just tested with the “The License Creation API secret key” and it works perfectly. Still I do not understand which field the product should be. As an example, I can create the same license with identical field values over and over again and it creates me every time a new license key for the same “unique Transaction ID” even when the “maximum allowed Domains” is set to 1. I’d like to use it for creating license keys for a software. And therefore a user should not be able to create a new license key over and over again.

    I probably do not understand it correctly. I thought the uniqueness of a User/Product combination would be something like email and Transaction id. But somehow its not.

    I can run this sample code over and over again and every time it creates a new license for the same user/product:

    $create_license = array(
    'slm_action' => 'slm_create_new',                // or slm_activate, slm_create_new
    'secret_key' => 'xxxxxxxxxxxx.xxxxxxxx',         // The License Creation API secret key
    'first_name' => 'John',
    'last_name' => 'Doe',
    'email' => '[email protected]',
    'company_name' => 'Testuser for Prod1',
    'txn_id' => 'PROD1',
    'max_allowed_domains' => '1',
    'date_created' =>date("Y-m-d"),
    'date_expiry' =>'2016-01-01',
    );
    
    print_r($create_license);echo '</br>';
    
    // Send query to the license manager server
    $response = wp_remote_get(add_query_arg($create_license, 'http://www.mywebsite.com'), array('timeout' => 20, 'sslverify' => false));
    
    print_r($response);echo '</br>';
    
    // Check for error in the response
    if (is_wp_error($response)){
    echo "Unexpected Error! The query returned with an error.";
    }
    
    // License data.
    $license_data = json_decode(wp_remote_retrieve_body($response));
    
    echo 'License Data:</br></br>';
    print_r($license_data);

    Since I am quite new to WP I didn’t figure out how to use the above php-code to be called from outside WP and still using WP-APIs.

    Hi, I’m not shure if this helps. I also didn’t manage to create a license through the API using the “Secret Key for License Creation” code. With this code I always got the message “wrong secret API Code” or so. So I tried the other one (“Secret Key for License Verification Requests”) and it worked for license creation and activations. May be this helps.

    But there’s still something I don’t understand is, that the API allows to create a new license for the same attributes like First Name, Last Name, Email, Company and so on multiple times. Is this meant to be like that. Shouldn’t it be limited to one license code for an email address or so?
    Or am I missing something here?

    Thread Starter dragonfly67

    (@dragonfly67)

    sorry forgot the

    + Very good Documentation at
    + Lots of shortcodes
    + Button within post/page editing to add downloads
    – missing Log Datatable as mentioned below – can be solved easy

Viewing 7 replies - 1 through 7 (of 7 total)