The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

notification on pm and topics in menu

2 posters

Go down

Solved notification on pm and topics in menu

Post by IdaTR May 22nd 2018, 10:06 am

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


Last edited by IdaTR on May 28th 2018, 10:30 am; edited 1 time in total
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 22nd 2018, 11:14 am

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
Hello @IdaTR,

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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 22nd 2018, 1:21 pm

with the toolbar not activated (:!
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 22nd 2018, 2:48 pm

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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 23rd 2018, 12:01 pm

IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 23rd 2018, 12:36 pm

For your PM's count and the box to appear next to your envelope icon add this Javascript in all the pages:
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');
  }
 
  });
and then add this CSS for it:
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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 23rd 2018, 1:00 pm

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?
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 23rd 2018, 3:09 pm

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..
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 23rd 2018, 3:54 pm

I see.. its not possible to make the toolbar part of the menu? it has to be something for it self?
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 23rd 2018, 5:07 pm

If the copyrights are bought for your forum then you can change the toolbar yes. Otherwise no.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 24th 2018, 9:11 am

I see.. My other question, is it possible to have the shown number only appear when there is an actually pm? (:
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 24th 2018, 3:41 pm

IdaTR wrote:I see.. My other question, is it possible to have the shown number only appear when there is an actually pm? (:
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.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 24th 2018, 9:59 pm

But is it possible to have the bar shown as display: none, but still have the notifications shown?
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 24th 2018, 10:01 pm

If you have the copyrights bought for your forum you can make the modifications on the Toolbar. Just know that
Code:
display:none;
will remove the entire element. Whatever that element includes! Wink
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by IdaTR May 28th 2018, 10:30 am

I see (: thanks!
IdaTR
IdaTR
Forumember

Female Posts : 547
Reputation : 1
Language : Danish, english
Location : Denmark

http://www.vielamort.net

Back to top Go down

Solved Re: notification on pm and topics in menu

Post by TheCrow May 28th 2018, 10:32 am

No problem. Wink

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum