coolph
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Progressive Web Apps] Delete PluginSeems like you have got a cache plugin installed. Try purging cache.
PS: I’m not the plugin author.
Forum: Plugins
In reply to: [Super Progressive Web Apps] Failed to fetch errorHi,
I’m facing the same issue. Please add try-catch block and try to release the update asap.Also getting, getting a warning in chrome that it will stop installing the PWA which doesn’t support offline pages starting with Chrome version 93. Any workarounds for this?
Site cannot be installed: Page does not work offline. Starting in Chrome 93, the installability criteria is changing, and this site will not be installable. See https://goo.gle/improved-pwa-offline-detection for more information.
Thank you for quick update! Have a nice weekend.
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Not able to rateThanks.
Please consider adding title attribute to your li elements to display the hover text as a tooltip text.Also it would be nice if you can provide option to change the star color on mouseover event as well in Style – Rating Widget.
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Not able to rateAlso you might want to update how you read user IP. For users like me who are using cloudflare on their server, your plugin was showing the server IP as the user IP.
Here’s code from another plugin WP-PostRatings that correctly returns user IP.
public function getRealIPAddr() { foreach ( array( 'HTTP_CF_CONNECTING_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR' ) as $key ) { if ( array_key_exists( $key, $_SERVER ) === true ) { foreach ( explode( ',', $_SERVER[$key] ) as $ip ) { $ip = trim( $ip ); if ( filter_var( $ip, FILTER_VALIDATE_IP ) !== false ) { return esc_attr( $ip ); } } } } }
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Not able to rateThanks. Working now.
Is it possible to use two instance of rating widget on same page say one for post quality and the other one for difficult level?
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Not able to rateOkay, I have added the shortcode
[ratemypost]
to below post. Please check and let me know once you’re done with your analysis.https://www.techiedelight.com/merge-two-bsts-into-doubly-linked-list-sorted-order/
Also Tabby Responsive Tabs plugin seems to be broken when I add
[ratemypost]
to this post. C++ and Java section should be displayed as tabs like in other pages.I have been using Jetpack since past 2.5 years. Earlier Jetpack used to use the “more” tag to truncate the post content. This behavior was changed sometime back.
Authors include the “more” tag in their posts for a reason, as they don’t want to display first several lines of the post in feeds. I strongly suggest to consider the “more” tag if present.
Forum: Plugins
In reply to: [Blackhole for Bad Bots] Version 2.4 Messing up DatabaseHi Stefan,
Great work! I have been using your plugin for over 2 years.I have updated the plugin to the latest version and my database size increased by 40 MB in just 10 days. I can’t let the database size increase like that.. Kindly add the functionality to reset the database.
Resetting the logs didn’t delete entries from the database. For time being, I have migrated to the older version. Please provide me the SQL queries to delete those records.
Update: I just used WP-Optimize plugin to optimize the database which reduced the
wp_offa_options
table size from 40 MB (149K records) to just 1.2 MB (2.2K records). There were 980 bad bots for my website.From my database backup –
“INSERT INTOwp_offa_options
VALUES” (148 hits in 1 file)Each record in
wp_offa_options
is occupying 296kb (taking 1000 lines in notepad++). That’s not small at all. I can send you the record(s) for your analysis.Thanks.
Forum: Plugins
In reply to: [Ad Invalid Click Protector (AICP)] Not working anymoreI’m also using ithemes security plugin (https://www.ads-software.com/plugins/better-wp-security/) which is reporting the IP correctly. Below’s the source code they’re using to read user IP. I’m not familiar with PHP, could you take a look please and let me know if you can change anything from your side or I can change anything in my wg-config.php file?
/** * Returns the actual IP address of the user. * * Determines the user's IP address by returning the forwarded IP address if present or * the direct IP address if not. * * @since 4.0.0 * * @return String The IP address of the user */ public static function get_ip( $use_cache = true ) { if ( isset( $GLOBALS['__itsec_remote_ip'] ) && $use_cache ) { return $GLOBALS['__itsec_remote_ip']; } $ip = apply_filters( 'itsec-get-ip', false ); if ( false !== $ip ) { $ip = filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE | FILTER_FLAG_NO_PRIV_RANGE ); if ( ! empty( $ip ) ) { $GLOBALS['__itsec_remote_ip'] = $ip; return $ip; } } unset( $ip ); $headers = array( 'HTTP_CF_CONNECTING_IP', // CloudFlare 'HTTP_X_FORWARDED_FOR', // Squid and most other forward and reverse proxies 'REMOTE_ADDR', // Default source of remote IP ); $headers = (array) apply_filters( 'itsec_filter_remote_addr_headers', $headers ); $proxy = ITSEC_Modules::get_setting( 'global', 'proxy' ); switch ( $proxy ) { case 'disabled': return $GLOBALS['__itsec_remote_ip'] = $_SERVER['REMOTE_ADDR']; case 'manual': $header = ITSEC_Modules::get_setting( 'global', 'proxy_header' ); if ( in_array( $header, $headers, true ) ) { $headers = array( $header ); } break; } if ( ! in_array( 'REMOTE_ADDR', $headers, true ) ) { $headers[] = 'REMOTE_ADDR'; } // Loop through twice. The first run won't accept a reserved or private range IP. If an acceptable IP is not // found, try again while accepting reserved or private range IPs. for ( $x = 0; $x < 2; $x ++ ) { foreach ( $headers as $header ) { if ( ! isset( $_SERVER[ $header ] ) ) { continue; } $ip = trim( $_SERVER[ $header ] ); if ( empty( $ip ) ) { continue; } if ( false !== ( $comma_index = strpos( $_SERVER[ $header ], ',' ) ) ) { $ip = substr( $ip, 0, $comma_index ); } if ( 0 === $x ) { // First run through. Only accept an IP not in the reserved or private range. $ip = filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE | FILTER_FLAG_NO_PRIV_RANGE ); } else { $ip = filter_var( $ip, FILTER_VALIDATE_IP ); } if ( ! empty( $ip ) ) { break; } } if ( ! empty( $ip ) ) { break; } } if ( empty( $ip ) ) { // If an IP is not found, force it to a localhost IP that would not be blacklisted as this typically // indicates a local request that does not provide the localhost IP. $ip = '127.0.0.1'; } $GLOBALS['__itsec_remote_ip'] = (string) $ip; return $GLOBALS['__itsec_remote_ip']; }
Here’s another plugin WP-PostRatings that correctly returns user IP.
### Function: Get IP Address if ( ! function_exists( 'get_ipaddress' ) ) { function get_ipaddress() { foreach ( array( 'HTTP_CF_CONNECTING_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR' ) as $key ) { if ( array_key_exists( $key, $_SERVER ) === true ) { foreach ( explode( ',', $_SERVER[$key] ) as $ip ) { $ip = trim( $ip ); if ( filter_var( $ip, FILTER_VALIDATE_IP ) !== false ) { return esc_attr( $ip ); } } } } } }
Forum: Plugins
In reply to: [Ad Invalid Click Protector (AICP)] Not working anymoreThe issue is real and your plugin isn’t the only one reading incorrect user IP after the Apache upgrade. Lots of debate going on.
https://www.ads-software.com/support/topic/wrong-ip-addresses-in-security-log/
https://www.ads-software.com/support/topic/iq-blocker-stopped-working/Please see if you can find any fix for this.
Forum: Plugins
In reply to: [Ad Invalid Click Protector (AICP)] Not working anymoreI have contacted you using contact button on your blog 3 days back. Not sure you got my message.
Forum: Plugins
In reply to: [Ad Invalid Click Protector (AICP)] Not working anymoreAre you planning on contacting me or not?
Forum: Plugins
In reply to: [Ad Invalid Click Protector (AICP)] Not working anymoreLet take this conversation to private please. Please contact me before I can provide you with any more information.