jinbatsu
Forum Replies Created
-
Forum: Plugins
In reply to: [Heartbeat Control] Cannot set the frequency anymoreWell, to fix the slider for modify the frequency is:
setting.php, line 30, after register style, add this code:
wp_enqueue_style( 'slider_ui' );
Result, should look like this:
Code to change:
Forum: Plugins
In reply to: [Heartbeat Control] v1.2: How do you set the frequency onWell, to fix the slider for modify the frequency is:
setting.php, line 30, after register style, add this code:
wp_enqueue_style( 'slider_ui' );
Result, should look like this:
Code to change:
Forum: Plugins
In reply to: [Heartbeat Control] I want to understand the new UI :-)Well, to fix the slider for modify the frequency is:
setting.php, line 30, after register style, add this code:
wp_enqueue_style( 'slider_ui' );
Forum: Plugins
In reply to: [Heartbeat Control] I want to understand the new UI :-)Update, after I try update to 1.2 with my PHP 7.1.10 it works, and no error warning or notice in error log. The downside about this version is, we cannot modify the frequency like before, that’s it.
Forum: Plugins
In reply to: [Heartbeat Control] I want to understand the new UI :-)@kent-brockman, thank you for the info.
I will stay at version 1.1.3 for a while until those error fixed at later release.Forum: Plugins
In reply to: [Heartbeat Control] Settings didn’t transfer@jeffmatson, Ok thank you.
Forum: Plugins
In reply to: [Heartbeat Control] Settings didn’t transferYes mee to, I’m not sure.
I set like this:
1. Modify Heartbeat
2. Post Editor
4. 60 secPlease see screenshot.
https://pasteboard.co/GNhgOs0f.jpgIs this correct?
If I want only active only in Post Editor?Thank You
Also please fix this Warnimg issue:
PHP Warning: A non-numeric value encountered
wp-content/plugins/mycred/modules/mycred-module-hooks.php on line 2771This:
'default_interval' => abs( $this->prefs['interval']*1000 ),
Should be like this:
'default_interval' => abs( intval($this->prefs['interval'])*1000 ),
Everytimes update, I always edit this manual.
Please include those fix.
Thank You.Forum: Plugins
In reply to: [Simple Google reCAPTCHA] Adding Google Recaptcha to Page CommentsDirty Fix:
/simple-google-recaptcha/simple-google-recaptcha.php
At line 63:
if (did_action("login_init") > 0 || function_exists('is_account_page') || function_exists('bp_get_signup_page') || (is_single() && comments_open()) && !is_user_logged_in()) {
Replace with this:
if (did_action("login_init") > 0 || function_exists('is_account_page') || function_exists('bp_get_signup_page') || (is_singular() && comments_open()) && !is_user_logged_in()) {
The different is_single only for post and attachment, but not for page, so change with is_singular.
Source:
https://developer.www.ads-software.com/reference/functions/is_single/
https://developer.www.ads-software.com/reference/functions/is_singular/- This reply was modified 7 years, 7 months ago by jinbatsu.
Forum: Plugins
In reply to: [WP Super Cache] Possible bug in WordPress Super Cache preloading processHello, thank you for the info.
Now, Version: 1.4.9 is still using “ORDER BY ID ASC”.
So, we should do manually edit if we want to preload News Post.
And, edit manual again if this plugin has updates.Hello @gabegabe, it is only temporary personal unofficial solution.
So, if this plugin update, we should do manually change it again.
Until the official fixing this issue ofcourse.Solution:
1. Make sure Caldera Form field for image upload is checked Add to Media Library2. Code edit:
Filename: wp-content/plugins/caldera-form-metabox/includes/to-post-type.php
around line 300, replace with this code:// do upload + attach if( !empty( $config['featured_image'] ) ){ $featured_image = Caldera_Forms::get_field_data( $config['featured_image'], $form ); //var_dump($featured_image); $ids = array(); foreach( (array) $featured_image as $filename ){ //$featured_image_id = cf_custom_fields_attach_file( $filename, $entry_id ); $featured_image_id = attachment_url_to_postid( $filename ); update_post_meta($entry_id, '_thumbnail_id', $featured_image_id ); $ids[] = $featured_image_id; } if ( ! empty( $ids ) ) { $ids_string = implode( ',', $ids ); $result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $ids_string )", $entry_id ) ); } }
Around line 390, replace with this:
if( Caldera_Forms_Field_Util::is_file_field( $field, $form ) ){ //echo $field['ID'] . ' = ' . $config['featured_image'] . '<br>'; if( $field['ID'] == $config['featured_image'] ){ continue; // dont attach twice. } foreach( (array) $value as $file ){ cf_custom_fields_attach_file( $file , $entry_id ); } }
Comments:
1. Media attachment has already uploaded by Caldera Form Core, so we do not need reupload using cf_custom_fields_attach_file.
2. To attach file into post, we just need update post_parent.Me too, it happens like that.
3 same photos, but in the file is one.Forum: Themes and Templates
In reply to: [Hueman] Pagination not displayed in Home/BlogEvem I deactivate WP-PageNavi Plugin, in home page, there are no next page.
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] syntax error in PHP ver 5.3.28Open file:
/wp-content/plugins/jssor-slider/front_views/slide_show.phpReplace with this:
` // start: PHP version < 5.4 Compability
/*
$arrowSkin = JssorSliderHelper::arrowSkin( $arrow )[0];
$arrowWidth = JssorSliderHelper::arrowSkin( $arrow )[1];
$arrowHeight = JssorSliderHelper::arrowSkin( $arrow )[2];
$arrowBorder = JssorSliderHelper::arrowSKin ( $arrow )[3];
*/
$arrowSkin = JssorSliderHelper::arrowSkin( $arrow );
$arrowSkin = $arrowSkin[0];
$arrowWidth = JssorSliderHelper::arrowSkin( $arrow );
$arrowWidth = $arrowWidth[1];
$arrowHeight = JssorSliderHelper::arrowSkin( $arrow );
$arrowHeight = $arrowHeight[2];
$arrowBorder = JssorSliderHelper::arrowSKin ( $arrow );
$arrowBorder = $arrowBorder[3];
// end: PHP version < 5.4 Compability$arrowL = ‘jssor’ . $arrow . ‘l’;
$arrowR = ‘jssor’ . $arrow . ‘r’;$use_bullets = $settings[‘use_bullets’];
$bullet_show = ( $settings[‘bullet_show’] ) ? ( $settings[‘bullet_show’] ) : ‘1’ ;
$bullet_action = ( $settings[‘bullet_action’] ) ? ( $settings[‘bullet_action’] ) : ‘1’;
$bullet_spacing = ( $settings[‘bullet_spacing’] ) ? ( $settings[‘bullet_spacing’] ) : ’10’;
$bullet = $settings[‘bullet_skin’];
// start: PHP version < 5.4 Compability
// PHP version < 5.4 Compability
/*
$bulletStyle1 = JssorSliderHelper::bulletSkin( $bullet )[0];
$bulletStyle2 = JssorSliderHelper::bulletSkin( $bullet )[1];
$bulletNT = JssorSliderHelper::bulletSkin( $bullet )[2];
*/$bulletStyle1 = JssorSliderHelper::bulletSkin( $bullet );
$bulletStyle1 = $bulletStyle1[0];
$bulletStyle2 = JssorSliderHelper::bulletSkin( $bullet );
$bulletStyle2 = $bulletStyle2[1];
$bulletNT = JssorSliderHelper::bulletSkin( $bullet );
$bulletNT = $bulletNT[2];
// end: PHP version < 5.4 CompabilityI hope this plugin also support for next version for compability php 5.3.x.
Thank You, Great Plugins!