Notification widget in all pages
3 posters
Page 1 of 1
Notification widget in all pages
Hi! It's me again.
I installed in one of my forums the code from this topic: https://help.forumotion.com/t139188-notifications-without-displaying-toolbar#944510
It works perfectly but only on the index page. When I move to other parts of the forum the notifications disappear. I mean, the widget stays in its place but the list of notifications don't show up.
Can anyone help me to make it work? Thanks!
I installed in one of my forums the code from this topic: https://help.forumotion.com/t139188-notifications-without-displaying-toolbar#944510
It works perfectly but only on the index page. When I move to other parts of the forum the notifications disappear. I mean, the widget stays in its place but the list of notifications don't show up.
Can anyone help me to make it work? Thanks!
Re: Notification widget in all pages
Do you have notifications when you load other pages?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notification widget in all pages
@SLGray No, the notifications don't show up when I load other pages.
It works in the index
It works in the index
- Spoiler:
- Spoiler:
Re: Notification widget in all pages
Do you go to the other page after checking the notifications?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notification widget in all pages
@SLGray Check as in click the link of "Private Message", for example? No, I don't.
I sent myself a PM while I was on a subforum to see if it would show up. Instantly appeared the notification/pop-up in the top right corner (the one that disappears after a little while) but nothing on the widget. Just in case, I didn't click anything on the widget (except for the scrollbar) or the pop-up.
If it helps, the toolbar is still there, hidden with CSS (margin-top: -30px).
I sent myself a PM while I was on a subforum to see if it would show up. Instantly appeared the notification/pop-up in the top right corner (the one that disappears after a little while) but nothing on the widget. Just in case, I didn't click anything on the widget (except for the scrollbar) or the pop-up.
If it helps, the toolbar is still there, hidden with CSS (margin-top: -30px).
Re: Notification widget in all pages
Did you use the phpBB 3 version?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notification widget in all pages
Have you checked your browser's console for any errors?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notification widget in all pages
Checked that and as far as I know, there are no errors. Tried it on a different forum and still nothing.
But while I was installing it I found this line:
But while I was installing it I found this line:
- Code:
"if (_pathName == '/portal' || _pathName == '/forum' || _pathName == '/')"
Re: Notification widget in all pages
Do you have other JavaScripts?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Notification widget in all pages
Hello @Lady loki,
the line
tells you that the script code can be executed only if the variable pathName (the page you are in) is /portal or /forum or /.. I'd suggest to replace:
with:
this way the condition will always be true and the #javascript code should be always executed
Give a try
the line
- Code:
if (_pathName == '/portal' || _pathName == '/forum' || _pathName == '/') {
tells you that the script code can be executed only if the variable pathName (the page you are in) is /portal or /forum or /.. I'd suggest to replace:
- Code:
_pathName == '/portal' || _pathName == '/forum' || _pathName == '/'
with:
- Code:
_pathName == _pathName
this way the condition will always be true and the #javascript code should be always executed
Give a try
Re: Notification widget in all pages
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum