gravitylover
Forum Replies Created
-
Forum: Plugins
In reply to: [AJAX Thumbnail Rebuild] Not PHP 7.0 compatible@junkcoder This is a simple fix. It will also bring the plugin back into the plugin store in WordPress (as it’s not been updated in 2+ years)
class AjaxThumbnailRebuild { function AjaxThumbnailRebuild() { add_action( 'admin_menu', array(&$this, 'addAdminMenu') ); add_filter( 'attachment_fields_to_edit', array(&$this, 'addRebuildSingle'), 10, 2 ); }
Becomes
class AjaxThumbnailRebuild { function __construct() { add_action( 'admin_menu', array(&$this, 'addAdminMenu') ); add_filter( 'attachment_fields_to_edit', array(&$this, 'addRebuildSingle'), 10, 2 ); }
function AjaxThumbnailRebuild()
>
function __construct()
- This reply was modified 8 years, 1 month ago by gravitylover.
- This reply was modified 8 years, 1 month ago by gravitylover.
- This reply was modified 8 years, 1 month ago by gravitylover.
This would be great!
Forum: Plugins
In reply to: [Gravity Forms Directory] Cannot filter by checkbox fieldsFixed, some modifications needed in gravity-forms-addons.php
Approach 1, wildcard fields:
line 2819:
$fuzzy_field = "$field_id.%"; $in_search_criteria .= $wpdb->prepare( " AND l.id IN (SELECT lead_id from $detail_table_name WHERE (field_number = %s OR field_number LIKE %s) AND value LIKE %s)", $field_id, $fuzzy_field, $value );
line 2847:
$fuzzy_field = "$field_id.%"; $in_search_criteria .= $wpdb->prepare( " AND l.id IN (SELECT lead_id from $lead_detail_table_name WHERE (field_number = %s OR field_number LIKE %s) AND value LIKE %s)", $field_id, $fuzzy_field, $value );
Approach 2: GF style (as seen in forms_model.php)
line 2819:
$upper_field_number_limit = (string) (int) $field_id === (string) $field_id ? (float) $field_id + 0.9999 : (float) $field_id + 0.0001; $in_search_criteria .= $wpdb->prepare( " AND l.id IN (SELECT lead_id from $detail_table_name WHERE field_number BETWEEN %s AND %s AND value LIKE %s)", (float) $field_id - 0.0001, $upper_field_number_limit, $value );
line 2847:
$upper_field_number_limit = (string) (int) $field_id === (string) $field_id ? (float) $field_id + 0.9999 : (float) $field_id + 0.0001; $in_search_criteria .= $wpdb->prepare( " AND l.id IN (SELECT lead_id from $lead_detail_table_name WHERE field_number BETWEEN %s AND %s AND value LIKE %s)", (float) $field_id - 0.0001, $upper_field_number_limit, $value );
Forum: Plugins
In reply to: [Postman SMTP Mailer/Email Log] Connectivity tests always fail?For the Service Available checks, consider using another service for checking SMTP ports
https://tuq.in/tools/porthttps://tuq.in/tools/port.json?ip=smtp.gmail.com&port=25
https://tuq.in/tools/port.json?ip=smtp.gmail.com&port=465
https://tuq.in/tools/port.json?ip=smtp.gmail.com&port=587Forum: Plugins
In reply to: [Postman SMTP Mailer/Email Log] Connectivity tests always fail?Also, AMAZING plugin!
Hello,
I isolated it down to the following alert:
Receive email alerts for successful login attemptsA recent server move meant these emails were being timed out and thus hanging the login process.
Thank you for debugging!
Hello Yorman, could you please post the code again for the script? The following link no longer hosts: https://cixtor.com/pastio/ncxoqm
That would be perfect. If you could have all the filters and uncheck to hide it would be ideal.
Forum: Plugins
In reply to: [Autoptimize] Show / hide advanced setting does not workConflict with another theme setting .hidden!important – resolved
Forum: Fixing WordPress
In reply to: .htaccess being zeroed out (file is set to 444)Thank you, excellent advice!
Forum: Fixing WordPress
In reply to: .htaccess being zeroed out (file is set to 444)I also have exactly the same problem! Did you find a resolution for this?
Forum: Plugins
In reply to: [Twitter Bootstrap for WordPress] WP Admin Errorfix
public function getWordpressUpdates() { $oCurrent = $this->getTransient( 'update_plugins' ); if(isset($oCurrent->response)){ return $oCurrent->response; } }
Forum: Plugins
In reply to: [Sideways8 Custom Login and Registration] Plugin ErrorsCorrection on last post, line 135:
} else { // Check if we are processing (and process if needed) if ( isset( $_POST['s8-login'] ) ) { $s8_login_errors = $this->login_user(); } // Do our stuff $this->title = __('Login'); $this->content = '[s8-login-form s8_internal="true"]'; //$this->display_template('login'); }
Forum: Plugins
In reply to: [Sideways8 Custom Login and Registration] Plugin ErrorsNotice: Undefined index: action in /home/campers/public_html/wp-content/plugins/s8-custom-login-and-registration/s8-login-registration.php on line 75
Notice: Undefined index: action in /home/campers/public_html/wp-content/plugins/s8-custom-login-and-registration/s8-login-registration.php on line 93
line 75
if(isset($wp_query->query_vars[self::ep_login]) && $_GET['action'] == 'logout') {
>
if(isset($wp_query->query_vars[self::ep_login]) && isset($_GET['action']) && $_GET['action'] == 'logout') {
line 93
if(isset($_GET['action'])){
>
if(isset($_GET['action'])){ switch($_GET['action']) {
line 135
add:
}
(to close the if statement)