SandyRig
Forum Replies Created
-
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdateI have released an update please install that and let me know how it goes.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdateWe are aware of an issue with upgrades but that generally fixes it self if the plugin is reactivated because our data migration function is hooked to register activation hook that no longer works for upgrades. It doesn’t break the site, only the plugin stops counting.
But in your case even reactivating the plugin is not working.
I’ll investigate and update over the weekend.
- This reply was modified 7 years, 3 months ago by SandyRig.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdateJust want to confirm that manually reactivating the plugin is not helping.
- This reply was modified 7 years, 3 months ago by SandyRig.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdatePlease run this in your database and let me know the result.
SELECT * FROM wp_options WHERE option_name LIKE 'migrated_to_version'
- This reply was modified 7 years, 3 months ago by SandyRig.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdateThat’s the issue, please deactivate and then re activate the plugin. It’s supposed to create the table on activation.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdatePlease replace the function on line 131 with this and let me know if it solves the issue for you.
function count_total_visitors_views($return){ global $wpdb; $table_name = $wpdb->prefix . 'srs_simple_hits_counter'; if ($return == 'views') { $srs_views = $wpdb->get_results("SELECT SUM(srs_views_count) as total FROM $table_name "); return $srs_views[0]; } else { $srs_visitors = $wpdb->get_results("SELECT SUM(srs_visitors_count) as total FROM $table_name "); return $srs_visitors[0]; } }
Forum: Plugins
In reply to: [SRS Simple Hits Counter] 1.01 UpdateWhat is your PHP and WordPress version
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateNo worries!
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateOk, this is what you need to do. Deactivate the plugin from network dashboard and then activate on individual site dashboards.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateIt works with multisites. Have you enabled the plugin on other child sites.
Please share screenshots on the setting page and the list of your tables.
Also, on plugin dashboard page do you see the graph. If not please press f12, click on console and share the screenshot.
If possible send me admin creds on [email protected] so I can have look to see if everything is setup correctly.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateAlso, can you check in your database if a new table “wp_srs_simple_hits_counter” was created or not, and is your counter not updating at all or it just reset to 0 but counting fine.
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateDo you remember what your last version number was
Forum: Plugins
In reply to: [SRS Simple Hits Counter] Can’t set counter after updateHello,
Sorry for inconvenience. We are aware of the issue. Please deactivate and reactivate the plugin. If this doesn’t solve it, please delete and reinstall the plugin.
Forum: Plugins
In reply to: [Mail Subscribe List] So many problems and unsecure codePlease add nonce to your form. My list got flooded with spam.
I have made the following changes.
on line 71
$return = '<form class="sml_subscribe" method="post" id="sml_subscribe" action="/#sml_subscribe"><input class="sml_hiddenfield" name="sml_subscribe" type="hidden" value="1">'.wp_nonce_field( 'creating_email_subscription', 'email_subscription' );
on line 273
// Handle form Post add_action('init', 'sml_post_action'); function sml_post_action(){ global $wpdb; if ($_POST['sml_subscribe'] &&(isset( $_POST['email_subscription'] ) && wp_verify_nonce( $_POST['email_subscription'], 'creating_email_subscription' ) )) { $name = $_POST['sml_name']; $email = $_POST['sml_email']; if (is_email($email)) { $exists = mysql_query("SELECT * FROM ".$wpdb->prefix."sml where sml_email like '".$wpdb->escape($email)."' limit 1"); if (mysql_num_rows($exists) <1) { $wpdb->query("insert into ".$wpdb->prefix."sml (sml_name, sml_email) values ('".$wpdb->escape($name)."', '".$wpdb->escape($email)."')"); } } } }
Forum: Plugins
In reply to: [SRS Simple Hits Counter] start xounter at 1,500Counter reset option was in the widgets section, but I have now moved it to plugin options page under setting menu. You can change both counters to any value you like.