wpdever
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Notification Bell] Add notifications programmaticallyHi,
This hook “wnbell_user_notifications_output” should be enough to get your notification to appear in the box. That’s the one I use for the addons and it’s in both the shortcode.php and outputs.php files.
It would be better to start a new topic if you need anything else, just in case the original poster keeps getting email notifications for every reply here.
Forum: Plugins
In reply to: [WP Notification Bell] Add notifications programmaticallyHi,
There are no examples, but you can check the includes/buddypress.php or includes/bbpress.php files in the plugin for an idea on how to save the notification.
Forum: Plugins
In reply to: [WP Notification Bell] Issue with mobile site.Hi,
I’m unable to see the image you sent.
Can you check in the page with the shortcode ‘s source code if you can find an element with this class : wnbell-closebtn ?
In case you do, can you change its css to this to test if it’s not visible due to its position:.wnbell-closebtn{ background-color: #24a0ed; width: 200px; height: 200px; top:0; left:0; right:0; }- This reply was modified 4 years, 3 months ago by wpdever.
Forum: Plugins
In reply to: [WP Notification Bell] Issue with mobile site.Hi,
There should normally be an x icon at the top right when in smaller screens.
Which ‘display options’ do you have in the settings page (add to menu…)? And did you add a value in the ‘box header’ field?Forum: Plugins
In reply to: [WP Notification Bell] Option to remove/clear notificationsHi,
You can use this to change the number of notifications inside the box:
add_filter('wnbell_notifications_display_count','change_notification_count',10); function change_notification_count(){ $count= 7; return $count; }And replace 7 with the count you need.
For the second question, the closest feature to what you need I have right now is to hide notifications after they were seen by the user. Here’s the code for this :
add_filter("wnbell_notification_conditions", "add_notification_conditions"); function add_notification_conditions() { $condition = ""; $current_user_id = get_current_user_id(); $seen_posts = get_user_meta($current_user_id, 'wnbell_seen_notification_post', true); if (!$seen_posts) { return $condition; } $condition = " AND posts.ID NOT IN(" . wnbell_escape_array($seen_posts) . ") "; if(count($seen_posts)>=20){ $arr = array_slice($seen_posts, -5); $last_id = filter_var(max($arr), FILTER_SANITIZE_NUMBER_INT); $condition .= " AND posts.ID > $last_id "; } return $condition; }But you can add a delete button using this hook ‘wnbell_item_append’ then you can store the id of that notification in an array in user_meta so you can use it in the previous code instead of the $seen_posts variable.
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginI just released an update that should fix the problem with logged in users. I’ll release another one for logged out users as soon as I can.
Let me know if it’s fixed on your side.Forum: Plugins
In reply to: [WP Notification Bell] Remove link code if no URL is setHi,
I originally only considered the use case of linking the notification with a page or post with more details. But I’ll remove the a tag for empty url fields in the next update. Thanks for the suggestion.
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginI’ll release an update in a few hours to fix it. I’ll leave a message here to let you know.
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginI can’t replicate this issue but I can try to add something in the notification page. Which shortcode do you use to display notifications on the page?
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginDid you find this problem in both options 2 and 4? And do you open the page in a new tab or the same one?
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginI’ve just released an update that should fix the issue. If you’re using option 4, you need to add your url in the ‘Notification page url’ field and in the ‘URL’ field in your menu item in Appearance->Menus.
Let me know if it works on your side.Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginWhich display option are you using? I was able to find the issue after testing the 2nd and 4th option (add floating icon and add badge count to existing menu item). Let me know if it’s one of these 2 so I can release an update.
Forum: Plugins
In reply to: [WP Notification Bell] Page Redirect isn’t Working with Premium PluginHi,
Have you added the url in the ‘Notification page url’ in the settings? If so, does it keep showing the drop down or does it redirect to the wrong link?
Forum: Plugins
In reply to: [WP Notification Bell] Page update supportHi,
At the moment, there is no plan to add a page update feature. If this changes, I’ll leave a comment on this topic.
I’m not sure I understand what you mean by custom notifications. Where exactly should I look on your website?
Hi,
The comment date display is available in the premium version but for the title, I’ll add it in the next update.
Users can’t individually opt out of getting comment notifications if that’s what you mean. I might consider adding this feature in a few months but right now, it’s not in the priorities for this plugin.