10Quality
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Gallery] Problem loading gallery photosCould you extend the issue please.
Make sure you have read the FAQ, since there is a topic there for displaying multiple galleries:
https://wordpress.org/plugins/simple-post-gallery/#faqForum: Plugins
In reply to: [Post Gallery] Mobile View lightboxThis plugin is fully responsive as well as the pro one.
The lightbox does work on mobile, as we testes multiple time.
If you are having issues with it, then it might be possible that the issue relies on a Javascript error, preventing lightbox to popup.
Review your site by looking the if there are errors reported on the browser console.
Report us back with any finding. regards
Forum: Plugins
In reply to: [License Keys for WooCommerce] Fatal error on activationTry disabling the cache:
Look for file:
woo-license-key/app/Config/app.phpAnd change the enabled setting to false.
'enabled' => false,Forum: Plugins
In reply to: [License Keys for WooCommerce] Fatal error on activationThis is a rule set by the hosting there is not much we can do on our end if your hosting is blocking this access.
You have 2 options:
1) Disable cache
Look for file:
woo-license-key/app/Config/app.phpAnd change the enabled setting to false.
'enabled' => false,2) Try to create the needed structure by yourself using and FTP client like FileZila.
The structure should be:
[wordpress root]/wpmvc/logs
[wordpress root]/wpmvc/cacheMake sure the logs and cache folders have write permissions.
Regards.
Forum: Plugins
In reply to: [License Keys for WooCommerce] Order status not set to ‘Completed’WooCommerce is the one in charge of handling the completed email and its rules.
As much as we would love to help you, this is an ticket and concern that you should post on the WooCommerce support instead 🙂
Forum: Plugins
In reply to: [License Keys for WooCommerce] What is the ctoken purpose in the API responseThe “ctoken” is the “cart token” that can be used to provide renewal and or extension cart url inside your products. We will be adding more documentation for this since this is paid feature. You are welcome to send us an email about this since we can not talk about paid products here (in WordPress.org).
Currently the activation holds the IP (which is detected in the request), the activation ID (timestamp) and the domain (which is a custom string).
If you wish to store more information on the activation, you can do this by using hooks. Here is a Github gist you can use as example:
https://gist.github.com/10quality-info/96f02cb65d2854ce04ed459038822d1bWe can provide you more hooks for if you wish to make this parameters required during the API call. Also if you wish to append some of this information during the “validate response”. All of these can be customized with available hooks.
Forum: Plugins
In reply to: [License Keys for WooCommerce] Activation failedThe plugin uses WordPress MVC framework which creates the following file structure at the root of your wordpress setup:
/wpmvc/logs
/wpmvc/filesIf you wish you can turn of write permissions of the root directory and manually create the /wpmvc folder and give write permissions to that folder instead. That should work to.
Forum: Plugins
In reply to: [License Keys for WooCommerce] differentiate productsHey, sorry for not responding this previously, we were working the new release and decided to respond you later.
While the current version of the plugin does not provide this option in form of a wizard or form, you can surely achieve this using hooks.
First, make sure to add a custom meta field where to store the product prefix, you can use WordPress “Advance Custom Fields” plugin to achieve this without much coding.
Then implement the following hook.
// Hook called before creating license key add_filter( 'woocommerce_license_key_meta_value', function( $license_key, $item, $product ) { // Get the product prefix, the following example uses ACF code $prefix = get_field( 'prefix', $product->get_id() ); // Append prefix to code $license_key['code'] = $prefix . $license_key['code']; // Return data return $license_key; }, 10, 3 );Forum: Reviews
In reply to: [License Keys for WooCommerce] Simple key validatingHi David, thanks for the awesome review.
Sure, we’ll be glad to help you! In which coding language are you looking to implement the license key validation?
This can be implemented on any coding language.
If its PHP, you can use our PHP library (php5 version recommended):
https://github.com/10quality/license-keys-php-client/tree/php5This package provides a complete documentation here: https://github.com/10quality/license-keys-php-client/wiki
If you are looking to implement this on an existing plugin or theme of yours, then maybe you can do something like this (on functions.php or plugin.php):
require_once '[path-to-package-folder]/src/LicenseRequest.php'; require_once '[path-to-package-folder]/src/Client.php'; require_once '[path-to-package-folder]/src/Api.php'; use LicenseKeys\Utility\Api; use LicenseKeys\Utility\Client; use LicenseKeys\Utility\LicenseRequest; define( 'MY_PRODUCT_LICENSE_OPTION', '_my_product_license' ); // Activate product function my_product_activate( $license_key ) { $response = Api::activate( Client::instance(), // Client instance function() use( $license_key ) { return LicenseRequest::create( 'https://your-domain.com/wp-admin/admin-ajax.php', // API's base url 'YOUR-STORE', // API's store code 'SKU', // Related product SKU $license_key , LicenseRequest::DAILY_FREQUENCY ); }, function( $license ) { // Here we save the license string into wordpress update_option( MY_PRODUCT_LICENSE_OPTION, $license, true ); } ); return $response->error === false; } // Validate product function my_product_is_valid() { return = Api::validate( Client::instance(), // Client instance function() { return new LicenseRequest( get_option( MY_PRODUCT_LICENSE_OPTION ) ); }, function( $license ) { // We update license string update_option( MY_PRODUCT_LICENSE_OPTION, $license ); } ); } // Deactivate product function my_product_deactivate() { $response = Api::deactivate( Client::instance(), // Client instance function() { return new LicenseRequest( get_option( MY_PRODUCT_LICENSE_OPTION ) ); }, function( $license ) { // We clear license string if ($license === null) update_option( MY_PRODUCT_LICENSE_OPTION, null ); } ); return $response->error === false; }Make sure to any instace of “MY_PRODUCT” with the name of your product (don’t use spaces or any weird character aside from underscore “_” or dashes “-“).
Once those functions are in place you can use them as follows (anywhere in your project):
– To activate the product
// To activate the product if ( my_product_activate( '[A CLIENT LICENSE KEY]' ) ) { // Product has been activated } else { // Product has not been activated. An error occured // You will need more coding knowledge to read the response and display // the error properly. But this is much simple }– To hide features in your code
if ( my_product_is_valid() ) { // Only activated products can reach this code }– To hide features in a template
<div> <?php if ( my_product_is_valid() ) : ?> <a>My paid featured link</a> <?php endif ?> </div>– To deactivate a product
// To activate the product if ( my_product_deactivate() ) { // Product has been deactivated } else { // Product has not been deactivated. An error occured // You will need more coding knowledge to read the response and display // the error properly. But this is much simple }Hope this helps. If you are not working with PHP, you can use the API using normal HTTP requests. Just let us know what are you using and I can provide you a code snippet, but the logic is the same, you need to understand those 3 states of the license key ACTIVATION, VALIDATION and DEACTIVATION.
Best regards.
- This reply was modified 7 years, 9 months ago by 10Quality.
Forum: Reviews
In reply to: [Post Gallery] Whew-hoo!!Glad our plugin fit your expectations and thank you for your review awesome review!
Forum: Reviews
In reply to: [Post Gallery] Simple & Easy to UseThank your for your review, you are awesome!
Hope to continue helping you with any troubles!
Forum: Plugins
In reply to: [Post Gallery] Image src path unknownYou are welcome, to bad we weren’t able to solve the issue on the server, it looked it was related to missing images.
Any how, here we are for if you need more help, drop us a review when ever you have time 🙂
Best regards
Forum: Plugins
In reply to: [Post Gallery] Image src path unknownOk, so based on this:
https://stackoverflow.com/questions/42373946/if-image-src-is-unknown-replace-with-missing-pngIt might be related to an image missing on your server. Have you migrated this from another server?
Try clearing the plugin’s cache by:
- Using the Cache option on
[WP-Dashboard]/Settings/Galleries/Cache - Deleting folder
[WP root]/wpmvc/cache
Forum: Plugins
In reply to: [Post Gallery] Image src path unknownUmm, no error related to this plugin…
What PHP version is your server running?
Another thing, it could be cache related due to filesystem permissions, so try to disable the plugin’s cache, to do this, head to
wp-content/plugins/simple-post-gallery/app/Config/app.phpand then look for:'cache' => [ 'enabled' => true, ... ],replace it with:
'cache' => [ 'enabled' => false, ... ],This is the file:
https://plugins.trac.wordpress.org/browser/simple-post-gallery/trunk/app/Config/app.php- This reply was modified 7 years, 11 months ago by 10Quality.
Forum: Plugins
In reply to: [Post Gallery] Image src path unknownNow that is a first, have you made any customizations worth mentioning?
Otherwise please share with us the following files for review:
– error_log (php’s error log)
– [wp root]/wpmvc/logs/*.log (and any log with any error wirth mentioning.)You can share it here or send them to our email, which ever feels you better.
Thanks for sharing your issue.
- This reply was modified 7 years, 11 months ago by 10Quality.