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.0.1, by iA1 (Coder) iA1 is offline
Developer Last Online: Oct 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (3 votes - 3.33 average) Installs: 7
Released: 11 Jul 2018 Last Update: 12 Jul 2018 Downloads: 29
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.


Change log:
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

  #16  
Old 17 Sep 2018, 18:50
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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.


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.
Reply With Quote
  #17  
Old 17 Sep 2018, 21:35
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by carik View Post
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.
Attached Files
File Type: php functions_OneSignal.php (5.8 KB, 4 views)
__________________
Get your own favorite style made responsive for vBulletin 3 and vBulletin 4.
Reply With Quote
  #18  
Old 18 Sep 2018, 18:14
carik carik is offline
 
Join Date: Jul 2010
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.
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.

Last edited by carik; 18 Sep 2018 at 18:27.
Reply With Quote
  #19  
Old 18 Sep 2018, 18:27
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by carik View Post
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.
__________________
Get your own favorite style made responsive for vBulletin 3 and vBulletin 4.
Reply With Quote
  #20  
Old 18 Sep 2018, 18:32
carik carik is offline
 
Join Date: Jul 2010
https://www.carhelp.info/showthread....aign=onesignal Here such link comes in push, I think the end superfluous?
Reply With Quote
  #21  
Old 18 Sep 2018, 18:41
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
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/show...87#post1544887
Reply With Quote
  #22  
Old 18 Sep 2018, 20:43
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
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.
__________________
Better VB.org search
Reply With Quote
  #23  
Old 19 Sep 2018, 11:18
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
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!
Reply With Quote
  #24  
Old 19 Sep 2018, 11:19
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by z3r0 View Post
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.
your mobile phone transmits a lot more personal data.
Reply With Quote
  #25  
Old 19 Sep 2018, 11:24
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
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.
Reply With Quote
  #26  
Old 19 Sep 2018, 13:47
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by carik View Post
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/admi...ogroup=address

Have you entered the correct url for your forum there?

Originally Posted by carik View Post
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.
__________________
Get your own favorite style made responsive for vBulletin 3 and vBulletin 4.
Reply With Quote
  #27  
Old 19 Sep 2018, 13:49
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by carik View Post
https://www.carhelp.info/showthread....aign=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.
__________________
Get your own favorite style made responsive for vBulletin 3 and vBulletin 4.
Reply With Quote
  #28  
Old 19 Sep 2018, 14:06
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
Check your forum url settings in Admincp -> Settings -> Options -> Site Name / URL / Contact Details
https://www.carhelp.info/forums/admi...ogroup=address

Have you entered the correct url for your forum there?
Yes, it's all true. links to e-mail come correct.



Originally Posted by iA1 View Post
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.
Reply With Quote
  #29  
Old 19 Sep 2018, 14:10
carik carik is offline
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
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:

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.
Reply With Quote
  #30  
Old 19 Sep 2018, 14:36
carik carik is offline
 
Join Date: Jul 2010

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

???

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

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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 15:10.

Layout Options | Width: Wide Color: