-
Author
-
September 9, 2013 at 23:00 #2552CenkParticipant
I don’t get a notification pop-up when I receive a comment. Is there a way to make it possible?
Thanks!
September 10, 2013 at 07:36 #2573SQadminKeymasterHi, There is currently no notification for post comments.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 10, 2013 at 17:48 #2608CenkParticipantAnd is there a way to include the comments in the messages notification? For Example: Somebody comments on my post, and I get a message notification.
September 11, 2013 at 09:10 #2632SQadminKeymasterHi, You need to edit header.php and modify line 130 inside div with class=”kleo-notifications” to add another notification.
Add it just after the div starts: http://d.pr/n/61DpHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 11, 2013 at 11:24 #2634CenkParticipantI paste the code after <div class=”kleo-notifications”> But it doesn’t work somehow.
<li class=”relative”>” class=”tiny secondary button radius”><i class=”icon-user hide-for-medium-down”></i> <?php _e(“PROFILE”, ‘kleo_framework’); ?><div class=”kleo-notifications”><?php $comments_count = wp_count_comments(); if ($comments_count->moderated) { ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?><?php if( bp_is_active(‘messages’) && messages_get_unread_count() > 0 ) { ?>” data-width=”210″ title=”<?php _e(“New messages”, ‘kleo_framework’);?>” class=”kleo-message-count “><?php echo messages_get_unread_count(); ?><?php } ?><?php if (bp_is_active(‘friends’) && bp_friend_get_total_requests_count() > 0): ?> ” data-width=”210″ title=”<?php _e(“Friend requests”, ‘kleo_framework’);?>” class=”kleo-friends-req “><?php echo bp_friend_get_total_requests_count(); ?><?php endif;?></div>
September 11, 2013 at 22:53 #2674SQadminKeymasterWell you need to post a new comment to appear 🙂
It counts comments that are waiting moderation so you should comment as another user.
I made a code change so it only appears to admin users:
http://d.pr/n/61DpHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 12, 2013 at 13:10 #2714CenkParticipantI made a comment as another user. Still no results.
<?php /* Only show if Buddypress is installed */ ?><?php if (function_exists(‘bp_is_active’)): ?><li class=”relative”>” class=”tiny secondary button radius”><i class=”icon-user hide-for-medium-down”></i> <?php _e(“PROFILE”, ‘kleo_framework’); ?><div class=”kleo-notifications”><?php<?php $comments_count = wp_count_comments(); if ($comments_count->moderated && is_super_admin()) { ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?><?php if( bp_is_active(‘messages’) && messages_get_unread_count() > 0 ) { ?>” data-width=”210″ title=”<?php _e(“New messages”, ‘kleo_framework’);?>” class=”kleo-message-count “><?php echo messages_get_unread_count(); ?><?php } ?><?php if (bp_is_active(‘friends’) && bp_friend_get_total_requests_count() > 0): ?> ” data-width=”210″ title=”<?php _e(“Friend requests”, ‘kleo_framework’);?>” class=”kleo-friends-req “><?php echo bp_friend_get_total_requests_count(); ?><?php endif;?></div>
September 12, 2013 at 22:13 #2743SQadminKeymasterWe tested it and works. Like I said before,it counts comments waiting for moderation so make sure your new comments are set to be moderated before going public
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The topic ‘How to add a comment notification pop-up?’ is closed to new replies.