View Full Version : Integration with vBulletin - Web Push notifications using OneSignal
Description:
OneSignal (https://onesignal.com/) 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 (https://theadminzone.com/resources/xenforo-onesignal-push-notifications-now-with-simple-install.1069/).
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:
someone replies on their subscribed threads
sends them a PM
likes one of their posts (dbtech thanks (https://vborg.vbsupport.ru/showthread.php?t=243510))
Installation:
Register an account at OneSignal.com (https://onesignal.com/)
Click on Add a new app to register your forum there
Select Web Push as the platform
https://vborg.vbsupport.ru/external/2018/07/4.png
Configure Web Push by selecting Typical Site and enter you forum details
https://vborg.vbsupport.ru/external/2018/07/5.png
Add at least one prompt and complete the remaining setup there. Leave most of the options as default. Only change where necessary.
After you click Save, you will get a few files to download.
https://vborg.vbsupport.ru/external/2018/07/6.png
Download those files, extract them and upload them to your forum's root directory.
There is another section on the same page asking you to add code to your site. DO NOT add that code yet. It is automatically done when you install this product.
Download attached zip file. Upload the file functions_OneSignal.php under /includes directory
Install the product using the xml file
Go back to onesignal.com, under settings, click on Keys & IDs.
https://vborg.vbsupport.ru/external/2018/07/7.png
Copy these keys and paste them in the settings in admincp.
https://vborg.vbsupport.ru/external/2018/07/8.png
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 (https://www.vb4mobile.com/forum.php) and IslamicBoard.com (https://www.islamicboard.com)
scottkoz20
07-11-2018, 03:46 PM
This looks extremely interesting
This looks extremely interesting
Glad you liked it. Screenshots are added in the above post.
scottkoz20
07-11-2018, 05:54 PM
something that I noticed is that the server load spikes when this is active - testing more
something that I noticed is that the server load spikes when this is active - testing more
How big is your forum and how many users are active simultaneously?
IggyP
07-12-2018, 02:14 PM
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.
scottkoz20
07-13-2018, 10:11 PM
something that I noticed is that the server load spikes when this is active - testing more
i can't say with certainty that my load spike is your mod. I'll watch it though
carik
09-15-2018, 12:41 PM
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!
carik
09-15-2018, 01:08 PM
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!
carik
09-15-2018, 01:26 PM
Even if the topic name in English, and the text of the response in Russian, the notification is not sent.
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?
I have tested this with another language and it worked fine for me without any issues.
carik
09-15-2018, 06:03 PM
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?
I have tested this with another language and it worked fine for me without any issues.
thanks for the answer.
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.
carik
09-15-2018, 06:25 PM
and perhaps when sending push to convert the encoding cp1251 to utf-8? I see that the problem is this. Thank you.
carik
09-17-2018, 01:22 PM
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?
I have tested this with another language and it worked fine for me without any issues.
And can I make it so that a notification without nicknames, topic names and messages is sent? The usual notification is a "new answer", or "a new personal message". And click on the link to send a link to a topic or personal message.
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.
Cable_Player
09-17-2018, 04:50 PM
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 https://www.mydomain.com/forum
In the settings on OneSignal it does not allow me to enter that location, only https://www.mydomain.com - could this be the reason it isn't showing?
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.
And can I make it so that a notification without nicknames, topic names and messages is sent? The usual notification is a "new answer", or "a new personal message". And click on the link to send a link to a topic or personal message.
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.
Replace the file includes/functions_OneSignal.php with the attached file. You can even open that file in a text editor and modify the messages as you like.
carik
09-18-2018, 04:14 PM
Replace the file includes/functions_OneSignal.php with the attached file. You can even open that file in a text editor and modify the messages as you like.
:up: Yes! working!!!
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.
:up: Yes! working!!!
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.
No, PM is not removed. It is there at line # 51.
carik
09-18-2018, 04:32 PM
<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?
carik
09-18-2018, 04:41 PM
No, PM is not removed. It is there at line # 51.
ok!
and this is a link where you had to switch by click to push.
https://www.carhelp.info/forums/showthread.php?t=147458&p=1544887#post1544887
If you are using this you may want to take a look here - https://xenforo.com/community/threads/onesignal-did-anyone-notice-this.153212/
IMO there are GDPR implications.
carik
09-19-2018, 09:18 AM
No, PM is not removed. It is there at line # 51.
in the delivery report in onesignal if you look there writes here such
Filters {"key":"uid","field":"tag","value":"10234362","relation":"="}
all links in notifications have the wrong view. How to fix it? Thank you!
carik
09-19-2018, 09:19 AM
If you are using this you may want to take a look here - https://xenforo.com/community/threads/onesignal-did-anyone-notice-this.153212/
IMO there are GDPR implications.
your mobile phone transmits a lot more personal data.
carik
09-19-2018, 09:24 AM
No, PM is not removed. It is there at line # 51.
in the settings of the service configured not to open in a new tab, but to switch to the tab if it is open in the browser. still open a new tab. I do not understand why.
in the delivery report in onesignal if you look there writes here such
Filters {"key":"uid","field":"tag","value":"10234362","relation":"="}
all links in notifications have the wrong view. How to fix it? Thank you!
Check your forum url settings in Admincp -> Settings -> Options -> Site Name / URL / Contact Details
https://www.carhelp.info/forums/admincp/options.php?do=options&dogroup=address
Have you entered the correct url for your forum there?
in the settings of the service configured not to open in a new tab, but to switch to the tab if it is open in the browser. still open a new tab. I do not understand why.
This is something which cannot be controlled from this add-on. It can only be configured from OneSignal.
https://www.carhelp.info/showthread.php?p=1544887&utm_source=onesignal&utm_medium=push&utm_campaign=onesignal Here such link comes in push, I think the end superfluous?
The end part is for Google Analytics. If you use analytics, then you can easily check how many users clicked on the notification and visited your forum.
carik
09-19-2018, 12:06 PM
Check your forum url settings in Admincp -> Settings -> Options -> Site Name / URL / Contact Details
https://www.carhelp.info/forums/admincp/options.php?do=options&dogroup=address
Have you entered the correct url for your forum there?
Yes, it's all true. links to e-mail come correct.
This is something which cannot be controlled from this add-on. It can only be configured from OneSignal.
probably because of the incorrect links, there on the service I set everything correctly.
carik
09-19-2018, 12:10 PM
The end part is for Google Analytics. If you use analytics, then you can easily check how many users clicked on the notification and visited your forum.
I do not have such settings anywhere.
but the question is why the link to push notification comes here is this:
https://www.carhelp.info/showthread.php?p=1544887&utm_source=onesignal&utm_medium=push&utm_campaign=onesignal
but here is the email:
https://www.carhelp.info/forums/showthread.php?t=147458&p=1544887#post1544887
a link to the email opens a topic or a PM, and the link from the push notification opens first 404 and then goes to the main page of the forum.
carik
09-19-2018, 12:36 PM
$contentId = $post['postid']; ???
$contentId = $threadid['threadid']&goto=newpost;
I do not have such settings anywhere.
but the question is why the link to push notification comes here is this:
https://www.carhelp.info/showthread.php?p=1544887&utm_source=onesignal&utm_medium=push&utm_campaign=onesignal
but here is the email:
https://www.carhelp.info/forums/showthread.php?t=147458&p=1544887#post1544887
a link to the email opens a topic or a PM, and the link from the push notification opens first 404 and then goes to the main page of the forum.
I have modified the attached file once again for your forum. Try it and let me know if it works.
The sub-folder link for your forum is hard-coded in the links.
carik
09-19-2018, 08:30 PM
I have modified the attached file once again for your forum. Try it and let me know if it works.
The sub-folder link for your forum is hard-coded in the links.
Thank you! Now goes into the topic and to the PM!
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!
Goomzee
12-17-2018, 02:58 AM
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.
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!
Thanks for the feedback. I will try add it in the next update.
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?
When you click on the bell again, it shows the unsubscribe button, like this:
https://vborg.vbsupport.ru/external/2018/12/7.png
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.
Thank you for the confirmation.
When you click on the bell again, it shows the unsubscribe button, like this:
https://vborg.vbsupport.ru/external/2018/12/7.png
Thank you for the confirmation.
Yes, after upload the files of onesign to root folder (not to the folder of forum) now, appears like you indicate, if click in the bell again, now, shows the unsusbscribe button, now, work fine :)
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 (https://vbulletin.org/forum/showthread.php?t=242733)
But the bull not indicate any notification.
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 (https://vbulletin.org/forum/showthread.php?t=242733)
But the bull not indicate any notification.
Thanks and regards.
If you get notification as shown in screenshot in post #2
https://vbulletin.org/forum/showpost.php?p=2595489&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.
If you get notification as shown in screenshot in post #2
https://vbulletin.org/forum/showpost.php?p=2595489&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.
Hi iA1,
Yes, I received notification as shown in the screenshot of post 2 of the link that you indicate, then, its working fine.
I was think that, the notification is in the bell (I don't know for what reasson I was think this).
The notifications like your screenshot appears well.
Like Advanced User Tagging also have Desktop Notifications, I was think wrong about bell notifications.
Thank you very much for your detailed and attention reply.
Again, thank you very much!!
khalled
12-19-2018, 06:03 PM
i install the product from two days and till now i don't get any automatic notification ,
N.B i add Keys & IDs. to the product , also i can send notification manually from OneSignal website and run vBulletin® Version 4.2.5
i install the product from two days and till now i don't get any automatic notification ,
N.B i add Keys & IDs. to the product , also i can send notification manually from OneSignal website and run vBulletin? Version 4.2.5
To get support, please mark as installed and send the link of your forum by PM.
Today, I view I have the same problem:
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 https://www.mydomain.com/forum
In the settings on OneSignal it does not allow me to enter that location, only https://www.mydomain.com - could this be the reason it isn't showing?
Thanks.
Also, My forum ints a: https://www.myforum.com/foro
But in the settings on OneSignal, I can't add /forum, only https://www.myforum.com
Replace the file includes/functions_OneSignal.php with the attached file. You can even open that file in a text editor and modify the messages as you like.
Made the same changes for solved?
Thanks and regards!
I have updated the plugin and applied a fix. Now it should work without any problems on forums that are on a sub-directory.
Download updated files, re-upload functions file under includes folder and re-install the product.
I have updated the plugin and applied a fix. Now it should work without any problems on forums that are on a sub-directory.
Download updated files, re-upload functions file under includes folder and re-install the product.
Thank you very much iA1! I download and re upload and re install the product.
Again, thanks!!!
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:
This has been corrected in the previous update, 1.1.0
Update:
1.2.0 - Added privacy for replies in private sections.
Post content and thread title from private sections will not be displayed on push notifications. Instead, it just asks the recipient to click to view the post.
Added subscribe button after the last posts, before quick-reply box. It will only display if you enable Custom Link Prompt in your OneSignal settings.
khalled
12-24-2018, 03:36 PM
i install the product from two days and till now i don't get any automatic notification ,
N.B i add Keys & IDs. to the product , also i can send notification manually from OneSignal website and run vBulletin? Version 4.2.5
To get support, please mark as installed and send the link of your forum by PM.
Many Thanks iA1 for help in private PM and your valuable advise , which i will share here as i guide for other
Check the steps of installation once again. At the end of step 1, it says:
Download those files, extract them and upload them to your forum's root directory.
There is another section on the same page asking you to add code to your site. DO NOT add that code yet. It is automatically done when you install this product.
See the red part. It seems like you have manually added that code as well. Maybe it is causing the problem.
Many thanks for your help , yes as you said i manually added the code , but after i delete the code , Nothing Happened and there is no new subscriber from yesterday
I checked your website again. There seems to be a problem with the appid. It says in browser console log:
OneSignal: This app ID does match any existing app. Double check your app ID.
Check your OneSignal app id setting in admincp.
My questions is
after your advise , the web site visitors can now subscribe in OneSignal notifications
but when i check the website page source i found that OneSignal code only appear after i inter web site as i user and not appear if i am unregistered visitor , is that mean that only registered visitor can subscribe in the OneSignal notifications
also until now there is no notification send from my forum automatically , and must send notifications manually from https://onesignal.com
Update:
1.2.0 - Added privacy for replies in private sections.
Post content and thread title from private sections will not be displayed on push notifications. Instead, it just asks the recipient to click to view the post.
Added subscribe button after the last posts, before quick-reply box. It will only display if you enable Custom Link Prompt in your OneSignal settings.
Thanks for your work!!!
Hello.
Just, after 2 minutos post my last reply (before post I was update this mod), one user reply a private thread.
I received the notification that: The user x has replied a private thread (in english and my forum is spanish :)) but click in the link and go to www.mydomain.com (my forum is in: www.mydomain.com/foro).
Edit: also, I try the new function: Added subscribe button after the last posts, before quick-reply box. It will only display if you enable Custom Link Prompt in your OneSignal settings.
I create a Custom Link Prompt in OneSignal settings, I try, appears before quick response, click in the link I go to page that appears:
Forum notice
The specified action is invalid
undefined
The url that appears in my browser is: https://www.mydomain.com/foro/inlinemod.php?threadid=409061&p=
But after this, the bell indicate that, I are suscribed.
Regards and Happy Christmas!!!
My questions is
after your advise , the web site visitors can now subscribe in OneSignal notifications
but when i check the website page source i found that OneSignal code only appear after i inter web site as i user and not appear if i am unregistered visitor , is that mean that only registered visitor can subscribe in the OneSignal notifications
also until now there is no notification send from my forum automatically , and must send notifications manually from https://onesignal.com
Yes, this plugin is only for logged-in members, because it only sends notification to members who are subscribed to a thread.
I have not added the functionality to send push notifications to guest users.
To test working, subscribe a thread and ask someone to reply on it. Or ask someone to send you a PM. You can also send me a test user account by PM.
Hello.
Just, after 2 minutos post my last reply (before post I was update this mod), one user reply a private thread.
I received the notification that: The user x has replied a private thread (in english and my forum is spanish :)) but click in the link and go to www.mydomain.com (my forum is in: www.mydomain.com/foro).
I will try to add phrases in the next update. For now, go to Plugin Manager in admincp and edit the plugin named 'Send newpost notification' under the product 'Web Push notifications using OneSignal'. You can edit the text in these two lines:
$extraData['title'] = 'a private thread';
$extraData['message'] = 'Click to view the post';
But make sure to enter only English characters. It does not accept special characters such as ?.
Edit: also, I try the new function: Added subscribe button after the last posts, before quick-reply box. It will only display if you enable Custom Link Prompt in your OneSignal settings.
I create a Custom Link Prompt in OneSignal settings, I try, appears before quick response, click in the link I go to page that appears:
Forum notice
The specified action is invalid
undefined
The url that appears in my browser is: https://www.mydomain.com/foro/inlinemod.php?threadid=409061&p=
But after this, the bell indicate that, I are suscribed.
There could be 2 reasons for seeing the invalid message:
- You were already subscribed
- You were not logged in
You can edit the custom buttom prompt in OneSignal settings and disable the button when a user is already subscribed, like this:
https://vborg.vbsupport.ru/external/2018/12/8.png
I will try to add phrases in the next update. For now, go to Plugin Manager in admincp and edit the plugin named 'Send newpost notification' under the product 'Web Push notifications using OneSignal'. You can edit the text in these two lines:
$extraData['title'] = 'a private thread';
$extraData['message'] = 'Click to view the post';
But make sure to enter only English characters. It does not accept special characters such as ?.
Ok, thanks iA1!
There could be 2 reasons for seeing the invalid message:
- You were already subscribed
- You were not logged in
You can edit the custom buttom prompt in OneSignal settings and disable the button when a user is already subscribed, like this:
https://vborg.vbsupport.ru/external/2018/12/8.png
Yes, the custom buttom prompt in OneSignal I have configured for disable the button when a user is already subscribed.
I login with a user, unsuscrible, refresh my site, go to one thread, click in new option for subscribe (before quick reply) and again, I have the same error message.
But after this, the user are subscribed, appears in the bell and when I go to thread, not appears the option for subscribe.
Also, I view now that, all notifications when click, go to: www.mydomain.com not the subforum folder www.mydomain.com/foro
I need made some change in some file?
Again, thank you very much for your attention and help!
Happy Christmas!!!
I login with a user, unsuscrible, refresh my site, go to one thread, click in new option for subscribe (before quick reply) and again, I have the same error message.
But after this, the user are subscribed, appears in the bell and when I go to thread, not appears the option for subscribe.
We cannot actually control the button because that is generated by OneSignal itself. We are only able to change the place where this is shown to the user.
I noticed similar error when using incognito because the browser could not enable notifications.
Also, I view now that, all notifications when click, go to: www.mydomain.com not the subforum folder www.mydomain.com/foro
I need made some change in some file?
This problem was already solved in previous update. Please test again.
khalled
12-25-2018, 10:23 PM
Yes, this plugin is only for logged-in members, because it only sends notification to members who are subscribed to a thread.
I have not added the functionality to send push notifications to guest users.
To test working, subscribe a thread and ask someone to reply on it. Or ask someone to send you a PM. You can also send me a test user account by PM.
many thanks , it work Now
but what if i want to also send push notifications to guest users , can i add the code manually or that will prevent the plug in from sending notifications about reply and PM to registered user
We cannot actually control the button because that is generated by OneSignal itself. We are only able to change the place where this is shown to the user.
I noticed similar error when using incognito because the browser could not enable notifications.
This problem was already solved in previous update. Please test again.
Sorry for the delay un reply, this christmas days...
Yes, confirm, I have the last version 1.2.0 and now, when I received a push notification, and click, send me to: www.mydomain.com
Not to www.mydomain.com/foro
And not send to the thread reply, or pm folder, only send me to www.mydomain.com
Regards.
Sorry for the delay un reply, this christmas days...
Yes, confirm, I have the last version 1.2.0 and now, when I received a push notification, and click, send me to: www.mydomain.com
Not to www.mydomain.com/foro
And not send to the thread reply, or pm folder, only send me to www.mydomain.com
Regards.
You can send me the link to your forum by PM and a test user account to check.
but what if i want to also send push notifications to guest users , can i add the code manually or that will prevent the plug in from sending notifications about reply and PM to registered user
You can add the code manually for guests as well but I do not recommend that. I tried it but found it problematic. If a subscribed user logs out, his userid will also be removed from OneSignal and he wont receive any notifications for PM or for his threads.
You can send me the link to your forum by PM and a test user account to check.
Thank you very very much!!!
khalled
12-30-2018, 06:18 PM
You can add the code manually for guests as well but I do not recommend that. I tried it but found it problematic. If a subscribed user logs out, his userid will also be removed from OneSignal and he wont receive any notifications for PM or for his threads.
Can you add options to automatically send notifications by new threads to all subscribed user using RSS feed
viverevalencia
01-04-2019, 08:30 AM
Hi there!
I'm testing your plugin, you did a good job!
thanks for sharing it with the community :)
All functionalities for me work well, except PUSH notifications when someone sends a PM to another user with the application installed.
Do you have any idea why PM notifications don't work?
Regards
viverevalencia
01-04-2019, 09:38 AM
Hi there!
I'm testing your plugin, you did a good job!
thanks for sharing it with the community :)
All functionalities for me work well, except PUSH notifications when someone sends a PM to another user with the application installed.
Do you have any idea why PM notifications don't work?
Regards
Hi, I've finally been able to solve the problem.
I deleted line 116 from the file product-onesignal_notifications.xml
And it's worked.
Hi, I've finally been able to solve the problem.
I deleted line 116 from the file product-onesignal_notifications.xml
And it's worked.
Do you mean this line?
$contentType = 'pm';
or this line?
if ($vbulletin->options['iA1_onesignal_notif_active'])
viverevalencia
01-07-2019, 10:33 AM
Do you mean this line?
$contentType = 'pm';
or this line?
if ($vbulletin->options['iA1_onesignal_notif_active'])
this one -> if ($vbulletin->options['iA1_onesignal_notif_active'])
bilgicc
01-14-2019, 02:32 PM
this one -> if ($vbulletin->options['iA1_onesignal_notif_active'])
Deleted this code and only one time notification arrived. After the notification doesn't come when the PM arrives.
Update 1.3.0
Bug fixed for PM notifications
Separated multiple consecutive notifications from different threads
Update 1.3.0
Bug fixed for PM notifications
Separated multiple consecutive notifications from different threads
Thanks for your hard work!!
Scalemotorcars
02-04-2019, 08:19 PM
Onesignal never gave me files to download. All I got was the script to add in the header that the instructions say not to include. What did I miss?
Scalemotorcars
02-04-2019, 09:13 PM
If you didnt get the files I found them listed on the sites help page here.
https://documentation.onesignal.com/docs/web-push-typical-setup#section--span-class-step-step-6-span-upload-onesignal-sdk
I finally got it the 1st notification. Now to see if it keeps working.
Kane@airrifle
02-10-2019, 03:42 PM
Get this error when enabling this mod.
Fatal User Error: syntax error, unexpected 'if' (T_IF) on line 3 in /dbtech/thanks/contenttypes/post/save.php(235) : eval()'d code
Mathsman
02-10-2019, 05:27 PM
vBulletin 4.2.2 Patch Level 6 i use.
https://onesignal.com/api/v1/players/293256a8-90d3-4237-8d04-d74e73245e65
I get the error on the page.
{"errors":["Could not find app_id for given player id."]}
I am getting this issue only in admin user.
---------------------------------------------------------------------
Also, I'm just going to notification in pm's. When quotes are made and other incidents do not go to the notification. I wonder if I'm missing something.
haithngn
05-03-2019, 11:50 PM
4.2.5 does not work, please help to check
Mark.B
05-05-2019, 11:25 AM
4.2.5 does not work, please help to check
YOu need to provide full details of the problem.
"does not work" says absolutely nothing that can be used to assist.
haithngn
05-07-2019, 11:50 AM
I installed this Mod into my vbb site also uploaded the OneSignal SDK files on the root directory of that site.
Then, in the Setiing page 'Web and Push Notifications using OneSignal'
I set Product Is Active: Yes
Provide OneSignal AppID, Authentication Key
But, I do not see any permission alert when I opened my vbb site on the Google Chrome browser.
At the footer I saw a copyright text Web Push Notifications by iA1.
Please give me a help ?
Get this error when enabling this mod.
Fatal User Error: syntax error, unexpected 'if' (T_IF) on line 3 in /dbtech/thanks/contenttypes/post/save.php(235) : eval()'d code
Please install the updated version 1.3.5. I found and fixed a typo in one of the plugins.
Please give me a help ?
PM me your domain name and a test user account.
vBulletin 4.2.2 Patch Level 6 i use.
https://onesignal.com/api/v1/players/293256a8-90d3-4237-8d04-d74e73245e65
I get the error on the page.
{"errors":["Could not find app_id for given player id."]}
I am getting this issue only in admin user.
---------------------------------------------------------------------
Also, I'm just going to notification in pm's. When quotes are made and other incidents do not go to the notification. I wonder if I'm missing something.
PM me your domain name and a test user account.
nanox
05-08-2019, 09:21 AM
Where can i translate the notifications? Ive tried the "search phrases.
nanox
05-08-2019, 03:25 PM
I cant get the notifications to work, my default language includes special characters. Is this the problem?
Where can i translate the notifications? Ive tried the "search phrases.
You will have to edit the file functions_OneSignal.php
I cant get the notifications to work, my default language includes special characters. Is this the problem?
I have not tested with special characters. Most probably they are not supported. I will try updating it later on.
red-dna
10-15-2019, 12:19 PM
What about vb 4.08 ?
I try to install but i get a blank page
What about vb 4.08 ?
I try to install but i get a blank page
On the top of the thread it states "vB Version: 4.2.x" which means they likely only tested it with vBulletin 4.2.* and not your version (which is extremely outdated, you should really upgrade)
Mr Peabody
11-05-2019, 06:50 PM
Seems to be working well on 4.2.5
Cheers!
Seems to be working well on 4.2.5
Cheers!
I have vb 4.2.5 and PHP 7.1 and works fine.
Mr Peabody
12-01-2019, 06:23 AM
Would be good if there was a VB 5 version
cdoyle
09-25-2020, 01:30 PM
I'm having some difficulties getting this to work, or I'm not understanding what it does.
I've signed up for an account at onesignal,
Entered my forum
https://www.caraudiocentral.net
downloaded the files
Uploaded the files to my forum root
https://www.caraudiocentral.net/forums
I then downloaded the plugin, uploaded the 1 file to the includes
and then installed the plugin.
Entered my Keys into the plugin settings
Enabled plugin.
I'm trying with my test accounts to get push notifications and nothing is happening.
I login with my main account on my forum, tried to PM my test account. No notification
Tried replying to a thread. No notification
Are there additional settings that need to be enabled?
Are there settings in the UserCP that a user needs to subscribe? I'm not seeing any but want to make sure.
My forum is running 4.2.5
Is it still enabled at your forum? I do not see the popup for subscribing. Try using the default style.
cdoyle
09-27-2020, 11:22 AM
take a look now. It's odd, all of a sudden the little red bell just appeared.
I hadn't done anything since Friday.
I think it's working, when I reply to PMs from both accounts. I get a little popup lower right corner.
Thanks for the confirmation. Please mark as Installed.
Hostboard
09-28-2020, 04:16 PM
You mention that this is "This is the lite version" Is there a pro?
Yes, this is lite version. I did not see much interest in getting a pro version from the users here, so did not complete the pro version until now. It is almost half done only and I use it on my own forum.
Hostboard
09-28-2020, 10:22 PM
Yes, this is lite version. I did not see much interest in getting a pro version from the users here, so did not complete the pro version until now. It is almost half done only and I use it on my own forum.
Would be interested in know what additional functionality you have incorporated as this is something I have thought about over the years but never saw anything or commissioned to code it.
saadessa1
09-28-2020, 11:10 PM
Thank you so much
Would be interested in know what additional functionality you have incorporated as this is something I have thought about over the years but never saw anything or commissioned to code it.
So far I have enabled subscription for guest visitors as well (default was only for logged in users), push notifications for subscribed forums, notifications to all mods whenever there is a new moderated post or a thread. I have also planned to add notifications for user tags.
Any other feature suggestion is welcome.
cdoyle
10-03-2020, 11:19 AM
notifications to all mods whenever there is a new moderated post or a thread. I have also planned to add notifications for user tags.
This is awesome! Was hoping for a mod like this!
Do you know when this mod will be ready? What are you thinking for cost?
Hostboard
11-07-2020, 01:21 PM
Trying to get this to work but not seeing any popup/subscribe notification.
PM sent...
This addon looks very interesting but I wonder how works with big forums with high traffic.
There is server loads or works just fine?
The load is handled by OneSignal, so there's negligible impact on your own server.
An updated version is almost ready for release. I will try to finalize it within a few days.
cirdok2
10-07-2021, 04:18 PM
Great mod! Is there anything similar for 5.x?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.