10Quality
Forum Replies Created
-
Forum: Plugins
In reply to: [License Keys for WooCommerce] Specific Use Case ScenarioHi Anthony,
Your case scenario is very specific, the issue I am seeing is that I am not sure if you can add some sort of licensing restriction to a PDF file, I know you can add a password restriction, but for that you don’t need our plugin, you can simply send the customers the passwords upon purchasing the e-book from WooCommerce.
Our plugin is more aimed for software license keys, like for instances if you are developing a paid app for phones, or a paid desktop app, or a paid theme or plugin, or something related.
The only way our plugin could work in you case scenario if you develop and APP viewer
for mobile devices that uses our licensing system to activate or deactivate e-books. That could work too.Regards.
Forum: Plugins
In reply to: [Post Gallery] Fatal error: Call to undefined function wp_create_nonce()We were able to reproduce this in our testing environment once. I happened when WordPress failed to create the cache or log folders.
Please create them manually, this will solve the issue. You will need to create the following structure inside the wp-content folder.
wp-content/wpmvc/log
wp-content/wpmvc/cacheForum: Plugins
In reply to: [License Keys for WooCommerce] Making request from ajaxVersion 1.2.0 includes an option in the settings to override WordPress headers and to set any CORS related headers for the API.
Please check it out, make sure Allow Credentials (Access-Control-Allow-Credentials) is set to
trueto allow successful javascript calls.Forum: Plugins
In reply to: [Post Gallery] Fatal error: Call to undefined function wp_create_nonce()This was most likely caused by cache folder permissions, we have moved logs/cache to another path (inside wp-content) to avoid this type of issues.
Forum: Plugins
In reply to: [Post Gallery] Plugin doesn’t work with WPML – No supportWe did some testing and the assets are correctly linked using WPML; although we did further research to determine what may be affecting your setup specifically and we believe that it has something to do with wordpress home_url() function.
As you can see, WPML uses its own:
https://wpml.org/wpml-hook/wpml_home_url/But WPML also hooks into wordpress filters to apply the correct relative path to all core wordpress functions, like home_url() which is the one we use in our plugin (see code), so there should be no reason for this is not working for you.
Here is a fix you can add into your project to solve this issue, allowing for our plugin to be updated in the future without affecting your setup:
add_filter( 'asset_base_url', function( $url ) { $url = str_replace( '/wp-content', '/' . ( defined( 'ICL_LANGUAGE_CODE' ) ? ICL_LANGUAGE_CODE : 'en' ) . '/wp-content', $url ); return $url; } );Lets us know if that worked for you.
Forum: Plugins
In reply to: [License Keys for WooCommerce] Making request from ajaxIf you are getting a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” sounds that you are having an issue with the way your wordpress setup is configured to handle requests headers.
We would recommend you to take a look at how you can modify them since we ain’t modifying them at all in the plugin.
Usually this can be fixed by modifying the
.htaccessfile on your wordpress root. Here is an article that explaing this better:
https://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/Plugins like W3 Total Cache may also be affecting the CORS origin issue.
Regards.
Forum: Plugins
In reply to: [Post Gallery] auto-publishingWhat do you mean? Can you please give us an example of what you are trying to achieve?
Forum: Plugins
In reply to: [License Keys for WooCommerce] How to implement a license into productForum: Plugins
In reply to: [License Keys for WooCommerce] How to implement a license into productHi, there is a simple key validation script you can take a look at:
https://wordpress.org/support/topic/simple-key-validating/Forum: Plugins
In reply to: [License Keys for WooCommerce] WooCommerce v3.5.1 Heads Up messageSo far, no reported issues with WooCommerce 3.5.1
Forum: Plugins
In reply to: [Post Gallery] meta key of the gallerySure, the meta key would be
_gallery(it stores a list of attachment IDs).Forum: Plugins
In reply to: [License Keys for WooCommerce] Check for valid keyAlso any option to see license activations in admin dashboard
Using the WordPress.org version no. But with our paid extension yes (here), it comes with manage pages to view and edit customer license keys from the admin dashboard.
is there a way to check license key if it’s valid or not? I mean the key which is not activated yet, just to see if the entered value is a valid key or not.
With the api no, since the activation endpoint already does the process and there is not need to do a previous request just to validate.
But if you wish to do this, you can accomplish this by using the LicenseKey model class:
<?php use LicenseKeys\Models\LicenseKey; if ( LicenseKey::find( '[a-customer-license-key]' ) ) { // FOUND } else { // NOT FOUND }a query to db for retrieving that information with a custom plugin?
You can always use the model explained above to query the db, the model uses the FindTrait.php, which you can review, to provided proven query functionlity.
An example:
<?php use LicenseKeys\Models\LicenseKey; $license_keys = LicenseKey::fromOrder( $order_id );If you wish to extend the query functionality to add custom queries you can do this bu creating you own model that extends from the existing one:
<?php use WPMVC\MVC\Collection; use LicenseKeys\Models\LicenseKey as Model; class MyLicenseKey extends Model { public static function all() { $license_keys = new Collection; // TODO QUERY CODE return $license_keys; } }We changed the way language resources are loaded on version 2.2.8. Please open a new ticket if the issue still exists.
Forum: Plugins
In reply to: [Post Gallery] Fatal ErrorHave you changed hosting? Which hosting are you using?
The issue is related to the function used to define wordpress root folder and where is the plugins usually installed, which should be under folder
wp-content, but yours looks to be different.We would love to know more about your setting in order to make proper changes and fix this issue on your setup.
Forum: Plugins
In reply to: [Post Gallery] Plugin doesn’t work with WPML – No supportThanks for reporting, any special WPML setting that we should consider?