sanaconeltantra
Forum Replies Created
-
Hey there!
Had the same error because we are running PHP 8 and you need to add (array) :
}else if(count((array)$get)){
To avoid the error on this file :
[08-May-2023 22:21:57 UTC] PHP Fatal error: Uncaught TypeError: count(): Argume nt #1 ($value) must be of type Countable|array, null given in /usr/local/lsws/Ex ample/html/wordpress/wp-content/plugins/custom-wp-rest-api/admin/api_new.php:55
Please fix this great plugin ??
Forum: Plugins
In reply to: [Simple Lightbox] Not working from a popupHi,
Yes popupmaker is a plugin https://www.ads-software.com/plugins/popup-maker/
But the issue happens with all kinds of popups.
On this page https://arquitexture.mx/popup-lightbox/ you can see 3 cases :
- Simple lightbox works fine inside the page for Pelé
- Simple lightbox does not work for Maradona in the popup from popup maker that should appear when you open the page
- Simple lightbox does not work for Zizou in the popup from a Gravity nested form that should appear when you click on Add player https://gravitywiz.com/documentation/gravity-forms-nested-forms
Thanks for your help
Hi Bel,
Thanks for your quicky reply which is not really a solution but it helps!
I could stop using a lightbox plugin and use your method which works fine for static URLs but my image URLs are loaded dynamically. How can I pass the image URL to the second popup?
NB : Actually I cannot use a popup to show the gravity form as it is a nested form :
https://gravitywiz.com/documentation/gravity-forms-nested-forms/- This reply was modified 2 years ago by sanaconeltantra.
Great to hear thank you guys!
Dokan already has a basic Vendor ticket module but it’d be great to have them all centralized in your pluginLooks like the error is gone, the option is ON and no warning but how can I know if the cache is working properly on mobiles?
NB : Sorry for the title I thought I had copied the error and not the other post url!It is OK I had to uncheck this option Replace the flat groups directory with a hierarchical directory.
I couldn’t find any hook in your plugin on save review so I went with that code. Is that ok?
function rx_calc_rating( $comment_ID, $comment_approved ) { if (get_comment_type($comment_ID) == 'review' && $comment_approved == 1 ) { $current_comment = get_comment( $comment_ID ); $current_post_id = $current_comment->comment_post_ID ; global $wpdb; $rx_global_rating = $wpdb->get_var( $wpdb->prepare( "select sum(rc.rating) / count(*) as rating from wp_comments as c inner join wp_reviewx_criterias as rc on rc.review_id = c.comment_ID where c.comment_type = 'review' and c.comment_approved not in ('trash', 'spam') and c.comment_post_ID = %d group by c.comment_post_ID", $current_post_id ) ); update_post_meta( $current_post_id, '_rx_cpt_rating', $rx_global_rating); } } add_action( 'comment_post', 'rx_calc_rating', 10, 2 );
I suppose I could use the filter pmpro_has_membership_access_filter and return true when the conditions are met (or not) for the user to have access but I hope you can come up with a solution that doesn’t involve modifying this snippet every time I set up a new membership.
I guess I could hook into pmpro_added_membership_level, add a category that has the same name as the membership created. This way I’ll be able to match the post category with the membership level in the filter above? Author will only have to select this category ex : Membership $author_username
I’ll still have to limit the available categories in the post editing to exclude the other membership categories so I hope we can come up with a better solution =)))https://www.ads-software.com/support/topic/hide-some-categories-in-post-editor/
- This reply was modified 2 years, 11 months ago by sanaconeltantra.
OK thank you.
Is it planned?
Is there a way to achieve it myself thru one of your filters?Amazing guys, really appreciate that, will put 5 stars for the great support!
It worked well, I just needed to add the recipe id as a key :
$triggers = $recipe_data[$recipe_id]['triggers'];
instead of$triggers = $recipe_data['triggers'];
Hi there!
Thank you so much, it does work from a plugin because putting it in the init hook would create many duplicates at each page load.if ( ! class_exists( '\Uncanny_Automator\Copy_Recipe_Parts' ) ) { require_once UA_ABSPATH . 'src/core/admin/class-copy-recipe-parts.php'; } $copy = new \Uncanny_Automator\Copy_Recipe_Parts(); $id = $copy->copy_this_recipe( 2119 ); echo "new recipe id=" . $id;
Now that I get the post id of the duplicate recipe, can I :
– update post_status = publish where post_id = $id or post_parent = $id (triggers and actions)
– update postmeta for the post trigger of forminator and update FRFORM and FRFORM_readable to use the new form id and name
Or do you provide functions to do it more cleanly?Hi!
Thanks for your feedback.
There is a function called copy_this_recipe. It seems to do the job?
Can you just let me know how I can call it because of the namespace?
I tried$new_recipe_id = Uncanny_Automator::copy_this_recipe($recipe_id);
but it’s still not able to find the function.
I’ll then just copy paste the function in your php file and will add some parameters to the new one.
I understand you won’t support that modification, I just want to see if that works at least on a sandbox and then ask for a custom code from your team if that’s possible because I really need this feature.OK I found out that I needed to deactivate the option Enable social avatar so that the avatar does get changed.
There is also a checkbox to Show option for users to update social avatar at BuddyPress profile page
Unfortunately if I activate Social avatar and that BP option it is still not possible to change the avatar so I have to disable the social avatar for now.The avatar appears again when the plugin is activated but Social login is disabled
My bad, some appointment fields had been inserted in the form (by mistake I guess), just needed to remove them!