![]() |
Web Push notifications using OneSignal
1 Attachment(s)
Description:
OneSignal has an API that allows us to send unlimited web and push notifications for FREE. When I came to know about it, I spent several days and months searching for compatible plugins for vB4. Finally decided to learn and create my own based on pierce's similar mod for Xenforo. Push notifications is a great way to keep your members engaged. It keeps driving them back to your site. This mod works great on mobile browsers as well. This is the lite version which allows you to send web push notifications to your users whenever:
Installation:
Disclaimer: I am not associated with onesignal in any way. This is just something that I found useful for my forum and wanted to share with everyone else. If I get enough support then I plan to add notifications for moderators' actions and for quotes and tags as well. Download latest version: 1.3.5 If upgrading from previous version, replace the functions file as well. Change log: 1.3.5 - Typo fixed 1.3.0 - Separated multiple consecutive notifications for different threads 1.2.0 - Added privacy for replies in private sections and Subscribe button at the end of posts 1.1.0 - Fixed issue with sub-forum 1.0.1 - Fixed Table Prefix bug 1.0.0 - Initial Release |
Screenshots:
Subscribed thread notifications on Mobile (Android) https://vborg.vbsupport.ru/ on desktop/laptop https://vborg.vbsupport.ru/external/2018/07/10.png on MAC OS https://vborg.vbsupport.ru/external/2018/07/11.png New PM notification https://vborg.vbsupport.ru/external/2018/07/12.png Post like notification https://vborg.vbsupport.ru/external/2018/07/13.png Demo on vB4Mobile.com and IslamicBoard.com |
This looks extremely interesting
|
Quote:
|
something that I noticed is that the server load spikes when this is active - testing more
|
Quote:
|
looking forward to testing this, not sure when i will be able to, but the other mod like this i tried had some fatal conflicts somewhere with other mods or whatever i was using.
|
Quote:
|
Good afternoon.
I installed the mod, did everything according to the instructions, notifications come only from the themes of one forum, from other forums it comes only to e-mail. What could be the problem? Thank you! |
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!
|
Even if the topic name in English, and the text of the response in Russian, the notification is not sent.
|
Quote:
I have tested this with another language and it worked fine for me without any issues. |
Quote:
if I send test messages from the OneSign panel, there are no errors. When I create a topic on the forum, the name in English, I write in it in English, there are no problems, push message comes. I think that the error with the processing of php mod ... or the encoding does not understand. I do not see any errors in the logs. And I tried to translate phrases in a php file, for example, "replied to", immediately ceases to send push messages. |
and perhaps when sending push to convert the encoding cp1251 to utf-8? I see that the problem is this. Thank you.
|
Quote:
That would be the right decision! Moreover, I have a very small notice on the 27 "screen, and it's easier for me to click and read on the site." It's also more convenient for me to follow the link on a mobile phone. |
Hi, I've followed your instructions exactly, but notifications to subscribe are not showing.
I'm just running a test board at the moment to see the capabilities of the software and it is located at Code:
https://www.mydomain.com/forum Code:
https://www.mydomain.com Thanks. Update: Sorry I was being impatient. It's showing now, but as my connection is private it's blocking notifications. I'll see how it runs for other people though, thanks for providing this plugin. |
1 Attachment(s)
Quote:
|
Quote:
PM removed from the code? I change the text in the script if the English language works, if the Russian text does not send messages. I do not understand the problem. and the transition from push notification to the wrong place where the new answer, but simply to the home page. |
Quote:
|
<a href="https://www.carhelp.info/showthread.php?p=1544887&utm_source=onesignal&utm_ medium=push&utm_campaign=onesignal" target="_blank">https://www.carhelp.info/showthread....aign=onesignal</a> Here such link comes in push, I think the end superfluous?
|
Quote:
and this is a link where you had to switch by click to push. https://www.carhelp.info/forums/show...87#post1544887 |
If you are using this you may want to take a look here - https://xenforo.com/community/thread...e-this.153212/
IMO there are GDPR implications. |
Quote:
Filters {"key":"uid","field":"tag","value":"10234362","rel ation":"="} all links in notifications have the wrong view. How to fix it? Thank you! |
Quote:
|
Quote:
|
Quote:
https://www.carhelp.info/forums/admi...ogroup=address Have you entered the correct url for your forum there? Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
but the question is why the link to push notification comes here is this: PHP Code:
PHP Code:
|
PHP Code:
PHP Code:
|
1 Attachment(s)
Quote:
The sub-folder link for your forum is hard-coded in the links. |
Quote:
when you go to the topic, opens the page you want, but you need to scroll the page to the post. If there are ideas how to correct I will be very grateful! :up::up::up: |
Hello.
Recently, I install this fantastic mod, but I don't sure if work correct. Appears the icon, push in the icon notification and appears: Subscribe to notifications. Ok, but if push again, appears the same (not for disable notifications, for example). This work like indicate? Thanks and regards! |
Notification not works in 3.8x i already reply there
|
Since I installed in vb 4.2.5 I received notifications (by forum) for new threads and pm, but onesignal not indicate, not push notification with this mod.
I don't know what happens, because, I don't have any error... Regards. |
Hi, my problem was solved.
I upload the files that we download of onesignal in my forum directory (my site its: www.mydomain.com/forum) and upload the files of onesignal in /forum folder. Error, I upload to root folder (public_html) and now, yes, work fine. Regards. |
Quote:
Quote:
Quote:
|
Quote:
Quote:
But after this change, I have replys in suscribe threads but not have notifications in this bell. Thanks and regards! |
Hello.
I continue with the tests, like indicate in last reply, yes, now when I click on the bell again, it shows the unsubscribe button like you image, appears work fine. But when I have new reply on one thread or quoted, I don't received any notification in this bell. I received notification in browser but I think this is because, also, I have installed Advanced User Tagging But the bull not indicate any notification. Thanks and regards. |
Quote:
https://vbulletin.org/forum/showpost...89&postcount=2 then it is working fine. The notifications are not inside the bell. It is actually browser notification. On desktop as well as on smartphone. |
All times are GMT. The time now is 03:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|