wezzy
Forum Replies Created
-
Forum: Reviews
In reply to: [Timely All-in-One Events Calendar] Updates Break EverythingHi Sean,
yes the reason is that we always provide a next month and a prev month link on every calendar page. So when the google bot parse your site it catch those links and then parse the next and prev month and again and again because we do not pose any limit to the next or prev month button.That’s why we recommend to setup a robot.txt file to limit the crawler:
https://support.time.ly/limiting-excessive-google-crawls/Forum: Reviews
In reply to: [Timely All-in-One Events Calendar] Do not use this pluginHi David,
we don’t use a company accounts we are are using our private accounts to reply on this forum, that’s why you are seeing many different accounts that reply to the topics. Anyway we consider your suggestion to use just one company account for sure.Thanks for the suggestion
Forum: Reviews
In reply to: [Timely All-in-One Events Calendar] Updates Break EverythingHi,
if you had the problem with the upgrade maybe we can restore your events:Performance is one of the main focuses for the imminent version 2.0, maybe give it a try when it’s ready ??
Forum: Reviews
In reply to: [Timely All-in-One Events Calendar] Do not use this pluginMay I ask you what kind of problem have you found with our plugin ?
Thanks
Forum: Reviews
In reply to: [Timely All-in-One Events Calendar] Latest Update Ruined ItHi, if you have the problem upgrading the standard version of the plugin please have a look at this page:
https://community.time.ly/forum/troubleshooting/general_aa/8914-restore-events-displayed-as-1969-after-the-upgradeHope this helps
Forum: Plugins
In reply to: [Plugin: Notify on comment] No Moderation Required But Email Still SentHi ill.selettore,
you and jean01 are right at the current time NotifyOnComment doesn’t know the askimet response for the comment but i don’t think that it’s too difficult to add this features. Looking to jean snippet i think that should work if you place the @wp_mail() inside the if() you don’t have to receive the mail not just a blank mail.I haven’t tested this but i think that it shuld works and it’ better than a check only for @wp_mail()
<?php /* Plugin Name: Notify on comment Plugin URI: https://www.artbits.it Description: Send a notification on comment to the author of the post Version: 1.03 Author: Fabio Trezzi Author URI: https://www.artbits.it */ function notifyOnComment_send($commentID){ global $wpdb; // Get the email of the post's author $comment = get_comment($commentID); // Do not send email for comments marked as Spam $modereation_required = get_option('moderation_notify'); $approved = $comment->comment_approved ; if(!$modereation_required || $approved == 1 || $approved == "spam"){ return true; } $post = get_post($comment->comment_post_ID); $user = get_userdata($post->post_author); $to = $user->user_email; // Set the send from $admin_email = get_option('admin_email'); $headers= "From:$admin_email\r\n"; $headers .= "Reply-To:$admin_email\r\n"; $headers .= "X-Mailer: PHP/".phpversion(); $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'"); $moderationOpt = get_option('notifyOnComments_moderationRequired'); if($moderationOpt == 'true'){ // Only send the notification if the comments requires to be moderated $approved = $comment->comment_approved; if($approved != 0) return; // No need to send the mail the comment is already approved } $template = get_option('notifyOnComments_emailTemplate'); // If not setted load the default from file if($template || $template == "") $template = file_get_contents(dirname(__FILE__) . '/defaultTemplate.php'); // Replace all the constant with the rights values $template = str_replace("{postID}", $post->ID, $template); $template = str_replace("{postTitle}", $post->post_title, $template); $template = str_replace("{author}", $comment->comment_author, $template); $template = str_replace("{authorIp}", $comment->comment_author_IP, $template); $template = str_replace("{authorDomain}", $comment_author_domain, $template); $template = str_replace("{authorEmail}", $comment->comment_author_email, $template); $template = str_replace("{authorUrl}", $comment->comment_author_url, $template); $template = str_replace("{commentContent}", $comment->comment_content, $template); $template = str_replace("{commentLink}", get_permalink($comment->comment_post_ID), $template); $template = str_replace("{commentID}", $commentID, $template); $template = str_replace("{commentsWaiting}", $comments_waiting, $template); $template = str_replace("{siteUrl}", get_option('siteurl'), $template); $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title ); @wp_mail($to, $subject, $template, $headers); return true; } function notifyOnComment_menu() { $path = dirname(__FILE__); $pathElements = explode('/', $path); add_options_page('NotifyOnComments options', 'NotifyOnComments', 'manage_options', $pathElements[count($pathElements) - 1] . '/options.php'); } add_action('comment_post', 'notifyOnComment_send'); add_action('admin_menu', 'notifyOnComment_menu'); ?>