notification on pm and topics in menu
2 posters
Page 1 of 1
notification on pm and topics in menu
Hello! I know the toolbar functions with some notification, but i wanted to hear if those notifications could be moved to pop up in the bottom of the page, without the toolbar. And that the count for how many new PM's and posts in a topic, that you haven't checked can be shown in the menu?
Completly as if you got a new PM, and it says : you have 2 new messages ( in the menu )
www.vielamort.net
Completly as if you got a new PM, and it says : you have 2 new messages ( in the menu )
www.vielamort.net
Last edited by IdaTR on May 28th 2018, 9:30 am; edited 1 time in total
Re: notification on pm and topics in menu
Hello @IdaTR,IdaTR wrote:Hello! I know the toolbar functions with some notification, but i wanted to hear if those notifications could be moved to pop up in the bottom of the page, without the toolbar. And that the count for how many new PM's and posts in a topic, that you haven't checked can be shown in the menu?
Completly as if you got a new PM, and it says : you have 2 new messages ( in the menu )
www.vielamort.net
The notifications can be moved with a javascript, but you have to have the toolbar. These notifications work with the toolbar and with the toolbar not activated there is not a possibility you'd have the "Live Notifications" (Those that appear when the reply/pm was made). Although, you can create other scripts that will do what you want but when someone refreshes. Let me give you an example of both cases:
Toolbar activated:
I am writing in a topic and you send me a PM. With the toolbar activated I will see a notification popup at that time while I'm typing my message.
Toolbar not activated:
I am writing in a topic and you send me a PM. With the toolbar not activated, I will see that you send me a message when I finish with my post, or once I have refreshed the page.
In both cases, you'll need a script for both functions you seek. Please let me know of which case you are interested in, and also, please let me know if I could use a test account on your forum to test the codes. If there is one, please send it to me via PM. If not, it's still fine. Access to the Panel is not needed to the test account.
Regards,
Luffy.
Re: notification on pm and topics in menu
Luffy wrote:[...] please let me know if I could use a test account on your forum to test the codes. If there is one, please send it to me via PM. If not, it's still fine. Access to the Panel is not needed to the test account.
Thank you.
Re: notification on pm and topics in menu
For your PM's count and the box to appear next to your envelope icon add this Javascript in all the pages:
This code, count's how many times the NEW PM icon is in the inbox and returns the number.
Now for the other notifications, you need to add a script for each section which is unlikely to work because of the too many requests, so the notifications for the topics cannot be that easily implemented.
- Code:
$.get('/privmsg?folder=inbox', function(data) {
var unread = $('ul.topiclist.pmlist li.row.row1 dl.icon[style="background-image: url(https://i62.servimg.com/u/f62/16/08/75/89/center13.png);"]', data).length;
$('i.fas.fa-envelope').append('<span class="countPM">(' + unread + ')</span>');
if(unread==0) {
$('li#nav_app_inbox').remove('.countPM');
}
});
- Code:
span.countPM {
background: red;
font-size: 11px;
font-weight: 700;
padding: 3px;
border-radius: 2px;
margin: -5px 0px 0px -5px;
position: absolute;
}
This code, count's how many times the NEW PM icon is in the inbox and returns the number.
Now for the other notifications, you need to add a script for each section which is unlikely to work because of the too many requests, so the notifications for the topics cannot be that easily implemented.
Re: notification on pm and topics in menu
dont really see how it works ? :s
And okay thats alright.
EDIT: NVM, i found out that my JS wasn't on. However i have another question, is it possible to only have the numbers shown when the user gets a pm?
Edit Edit: but it is possible for the notification for the topics? Will it overload the website?
And okay thats alright.
EDIT: NVM, i found out that my JS wasn't on. However i have another question, is it possible to only have the numbers shown when the user gets a pm?
Edit Edit: but it is possible for the notification for the topics? Will it overload the website?
Re: notification on pm and topics in menu
IdaTR wrote:dont really see how it works ? :s
And okay thats alright.
EDIT: NVM, i found out that my JS wasn't on. However i have another question, is it possible to only have the numbers shown when the user gets a pm?
Edit Edit: but it is possible for the notification for the topics? Will it overload the website?
Hello,
When the user gets a pm, this will appear because the PMs shown in that red box are those who are not read. Therefore, once you get a PM you will see this after you refresh.
As for the topics, no you can't do it without the toolbar..
Re: notification on pm and topics in menu
I see.. its not possible to make the toolbar part of the menu? it has to be something for it self?
Re: notification on pm and topics in menu
If the copyrights are bought for your forum then you can change the toolbar yes. Otherwise no.
Re: notification on pm and topics in menu
I see.. My other question, is it possible to have the shown number only appear when there is an actually pm? (:
Re: notification on pm and topics in menu
This code works if there is an unread PM. This is the only way you can check the PM's because your forumotion bar is turned of. Otherwise we could check the bar if there's a recent PM and change that. But with this code, the numbers there will appear whenever you have any unread PM.IdaTR wrote:I see.. My other question, is it possible to have the shown number only appear when there is an actually pm? (:
Re: notification on pm and topics in menu
But is it possible to have the bar shown as display: none, but still have the notifications shown?
Re: notification on pm and topics in menu
If you have the copyrights bought for your forum you can make the modifications on the Toolbar. Just know that
will remove the entire element. Whatever that element includes! 
|


» how do i add a dropdown menu on new latest topics to display the number of topics shown
» pm and topic notification in menu
» How can I create dropdown menu on options "Mark all topics read / Start Watch this forum"?
» Adding reputation to mobile theme makes notification & home menu disappear
» Is there email notification for new posts/topics?
» pm and topic notification in menu
» How can I create dropdown menu on options "Mark all topics read / Start Watch this forum"?
» Adding reputation to mobile theme makes notification & home menu disappear
» Is there email notification for new posts/topics?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum