Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Web Push notifications using OneSignal Details »
Web Push notifications using OneSignal
Mod Version: 1.3.5, by iA1 (Coder) iA1 is online now
Developer Last Online: Aug 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (3 votes - 3.33 average) Installs: 20
Released: 11 Jul 2018 Last Update: 07 May 2019 Downloads: 89
Supported Uses Plugins Additional Files Re-usable Code Translations  

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:
  1. someone replies on their subscribed threads
  2. sends them a PM
  3. likes one of their posts (dbtech thanks)

Installation:
  1. Register an account at OneSignal.com
    • Click on Add a new app to register your forum there
    • Select Web Push as the platform
    • Configure Web Push by selecting Typical Site and enter you forum details
    • 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.
    • 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.
  2. Download attached zip file. Upload the file functions_OneSignal.php under /includes directory
  3. Install the product using the xml file
  4. Go back to onesignal.com, under settings, click on Keys & IDs.
  5. Copy these keys and paste them in the settings in admincp.


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.0
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

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
End-User Options Roost Web Push burtonmiller vBulletin 4.x Add-ons 2 29 Jul 2014 18:53

  #31  
Old 19 Sep 2018, 19:56
iA1 iA1 is online now
 
Join Date: Jul 2018
Originally Posted by carik View Post
I do not have such settings anywhere.
but the question is why the link to push notification comes here is this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but here is the email:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Attached Files
File Type: php functions_OneSignal.php (5.9 KB, 3 views)
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #32  
Old 19 Sep 2018, 22:30
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
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!

Reply With Quote
  #33  
Old 16 Dec 2018, 23:31
gnrx gnrx is offline
 
Join Date: Apr 2009
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!
Reply With Quote
  #34  
Old 17 Dec 2018, 03:58
Goomzee Goomzee is offline
 
Join Date: Apr 2008
Real name: Tariq Rathore
Notification not works in 3.8x i already reply there
__________________
Mortal Kombat Nexus Mortal Kombat X MKWallpapers MK Komics
Mortal Kombat Winamp skins, Animations, Movies, Dragon Renders on your 1 click
Pakistan 1st and Largest Mortal Kombat Gaming website
Reply With Quote
  #35  
Old 17 Dec 2018, 07:40
gnrx gnrx is offline
 
Join Date: Apr 2009
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.
Reply With Quote
  #36  
Old 17 Dec 2018, 14:16
gnrx gnrx is offline
 
Join Date: Apr 2009
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.
Reply With Quote
  #37  
Old 17 Dec 2018, 18:38
iA1 iA1 is online now
 
Join Date: Jul 2018
Originally Posted by carik View Post
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.


Originally Posted by gnrx View Post
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:


Originally Posted by gnrx View Post
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #38  
Old 17 Dec 2018, 20:28
gnrx gnrx is offline
 
Join Date: Apr 2009
Originally Posted by iA1 View Post
When you click on the bell again, it shows the unsubscribe button, like this:
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!
Reply With Quote
  #39  
Old 18 Dec 2018, 14:10
gnrx gnrx is offline
 
Join Date: Apr 2009
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.
Reply With Quote
  #40  
Old 18 Dec 2018, 14:25
iA1 iA1 is online now
 
Join Date: Jul 2018
Originally Posted by gnrx View Post
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.
If you get notification as shown in screenshot in post #2
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #41  
Old 18 Dec 2018, 15:55
gnrx gnrx is offline
 
Join Date: Apr 2009
Originally Posted by iA1 View Post
If you get notification as shown in screenshot in post #2
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.
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!!
Reply With Quote
  #42  
Old 19 Dec 2018, 19:03
khalled khalled is offline
 
Join Date: Apr 2007
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
Reply With Quote
  #43  
Old 19 Dec 2018, 21:01
iA1 iA1 is online now
 
Join Date: Jul 2018
Originally Posted by khalled View Post
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #44  
Old 22 Dec 2018, 13:36
gnrx gnrx is offline
 
Join Date: Apr 2009
Today, I view I have the same problem:
Originally Posted by Cable_Player View Post
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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the settings on OneSignal it does not allow me to enter that location, only
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

- 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
Originally Posted by iA1 View Post
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!
Reply With Quote
  #45  
Old 22 Dec 2018, 18:22
iA1 iA1 is online now
 
Join Date: Jul 2018
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:16.

Layout Options | Width: Wide Color: