menhadi
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Mathjax] Reducing the size of the font of equationHi,
Thank for the reply,
How can I share the admin detail? so that you can understand issue clearly.I have already set overflow but it is not working with this plugin and with the previous plugin it was working
Regards
HasanForum: Plugins
In reply to: [Simple Mathjax] Reducing the size of the font of equationHi,
here is the link
https://woocommerce-380471-1456208.cloudwaysapps.com/mechanical-engineering/total-energy-flow-by-first-law-of-thermodynamics/
I have actually two issue1. Fontbecome small after activation the plugin
2. Horizontal scrolling not working in mobile view
Regards
Hasanok
okay, I have one more query is this possible while importing csv the title of pie/graph will be automatically will be the title of csv rather than modifying manually
RegardsHi, the problem is when I am minifying js file otherwise it is working fine.
how to reduce js query since after using shortcode loading time increased drastically?
regads
HasanHi,got it actually there is conflict with the cache plugin
Hi here is the link and in setting I only enable horizontal scroll except that I have not change anything
link
regardsHi,I am facing issue when I enabling horizontal scroll/responsive mode the table is not align (please refer link) could you please suggest what is the issue and help me
link
RegardsGot it Thanks
Hi,
I am not able to find advance setting in the plugin, please help me where to find advance setting.Hi,
is the responsive option available there in the plugin or I have to do it custom css?Forum: Plugins
In reply to: [Site Reviews] Average rating for multiple criterionHi,
It is working but not showing the correct value of rating in my case it is taking the last criterion rating as overall rating.However i was looking average rating of individual criterion and overall rating of all criterion.Forum: Plugins
In reply to: [Site Reviews] Average rating for multiple criterionHi,
please find the code belowadd_filter('site-reviews/config/forms/submission-form', function ($config) { $config['personnel_rating'] = [ 'label' => __('Select a rating for the personnel', 'my-listing'), 'required' => true, 'type' => 'rating', ]; $config['service_rating'] = [ 'label' => __('Select a rating for the service', 'my-listing'), 'required' => true, 'type' => 'rating', ]; return $config; }); /** * Customises the order of the fields used in the Site Reviews submission form. * @param array $order * @return array */ add_filter('site-reviews/submission-form/order', function ($order) { // The $order array contains the field keys returned below. // Simply add any custom field keys that you have added and change them to the desired order. return [ 'rating', 'personnel_rating', // this is a custom field key 'service_rating', // this is a custom field key 'title', 'content', 'name', 'email', 'terms', ]; }); /** * Modifies the submission form field rules * Paste this in your active theme's functions.php file. * @param array $rules * @return array */ add_filter('site-reviews/validation/rules', function ($rules) { $rules['personnel_rating'] = 'required'; $rules['service_rating'] = 'required'; return $rules; }); /** * Triggered immediately after a review is saved * If you are uploading files, this is where you would save them to the database and attach them to the review * Paste this in your active theme's functions.php file. * @param \GeminiLabs\SiteReviews\Review $review * @param \GeminiLabs\SiteReviews\Commands\CreateReview $command * @return void */ add_action('site-reviews/review/created', function ($review, $command) { // You may access the global $_POST and $_FILES here. }, 10, 2); /** * Displays custom fields in the Review's "Details" metabox * Paste this in your active theme's functions.php file. * @param array $metabox * @param \GeminiLabs\SiteReviews\Review $review * @return array */ add_filter('site-reviews/metabox/details', function ($metabox, $review) { $ratingKeys = ['personnel_rating', 'service_rating']; // change these as needed foreach ($review->custom as $key => $value) { if (in_array($key, $ratingKeys)) { $value = glsr_star_rating($value); // render the stars from the rating value } if (is_array($value)) { $value = implode(', ', $value); } $metabox[$key] = $value; } return $metabox; }, 10, 2); /** * Set the default values of the custom fields here * Paste this in your active theme's functions.php file. * @param \GeminiLabs\SiteReviews\Review $review * @return \GeminiLabs\SiteReviews\Review */ add_filter('site-reviews/review/build/before', function ($review) { $review->custom = wp_parse_args($review->custom, [ 'personnel_rating' => 0, 'service_rating' => 0, ]); return $review; }); /** * Manually set the primary rating of the review when it is created. * The rating will be the rounded average of the custom rating fields. * * @param array $values * @return array */ add_filter('site-reviews/create/review-values', function ($values) { $ratings = [ intval(glsr_get($values, 'custom.personnel_rating', 0)), intval(glsr_get($values, 'custom.service_rating', 0)), ]; $ratingsSum = array_sum($ratings); $ratingsCount = count($ratings); $values['rating'] = round($ratingsSum / $ratingsCount); return $values; });
Forum: Plugins
In reply to: [Site Reviews] Average rating for multiple criterionHi,
I tried as explained there but getting following error
There has been a critical error on your website.Learn more about debugging in WordPress.
I modified the above code as per my requirement and put it in function.php
please check it this method is correct