• This looks like a pretty nice plugin. I’ve been doing a bit of testing on my local machine and am considering using it for production.

    I added in a “Product Title” field to the plugin because I think it would be useful to be able to create licenses that are associated for particular products.

    I also customized some of the responses the plugin gives. For instance, when activating the same domain multiple times, I pass a “success” message rather than an error. The way the plugin is out of the box, if you want to server side validate a license for a given domain, you have to use the check action first and pull in whats registered and compare the domain on the client to what is registered. If the current domain is already registered, the client is okay, but if it isn’t you then send another request to activate. Would it be better to just allow redundant activate actions to ‘succeed’ without re-adding the entry on the server rather than having to make two requests to the server?

    Nice plugin, just a few suggestions I’m throwing out there that perhaps you could add to the plugin by default in the future. I’m not really a PHP programmer (I do other languages), just know enough to tweak the plugin a bit. If I use the changes I made in production I won’t be able to get plugin updates. I figure I’d throw these suggestions out there though.

    https://ww.wp.xz.cn/plugins/software-license-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I can add a new column in the table to store product reference (it can be for anything like name or an ID or some other reference). Will that work?

    The plugin will return an error if the key is active and you try to use it again (without deactivating it). Because, you could be installing WordPress in the same domain then activate the key 3 times which is not really the purpose. So I wanted to make sure, it doesn’t have the hole.

    I can always introduced another API option which can be used to activate the key but it doesn’t give an error if the request comes from an already activated domain.

    Thread Starter josecortez2001

    (@josecortez2001)

    Yeah I think adding a new column would be great. I added $product_name in my local version.

    I see what you mean about activating in the same domain multiple times. I didn’t think of that since I’m testing using it in a native app and I’m passing in a different kind of unique string for the domain. I guess it depends on what you are using the plugin to validate.

    I also think that this looks like it could really be a nice full-featured solution for developers if you added a feature in the plugin GUI that allowed us to customize the server response. All the responses seem to be either ‘success’ or ‘error’ along with a string with a bit of info. On the client it could be difficult to parse what type of error you got to show an appropriate dialog.

    Depending on what the plugin is being used to validate, it may be useful to create customized responses with additional parameters such as an ‘error code’, the client would have a constant for the given ‘error code’ and would take appropriate action for a given error. This would take the plugin to a higher level. I realize this feature may be asking for a lot, but figured I’d throw it out there too.

    Thanks again for this.

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

The topic ‘Product Names & Server Responses’ is closed to new replies.