vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - Web Push notifications using OneSignal (https://vborg.vbsupport.ru/showthread.php?t=326558)

iA1 07-10-2018 09:00 PM

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:
  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
      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.
  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.
    https://vborg.vbsupport.ru/external/2018/07/7.png
  5. 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

iA1 07-11-2018 12:39 PM

Screenshots:


Demo on vB4Mobile.com and IslamicBoard.com

scottkoz20 07-11-2018 03:46 PM

This looks extremely interesting

iA1 07-11-2018 05:09 PM

Quote:

Originally Posted by scottkoz20 (Post 2595494)
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

iA1 07-11-2018 05:58 PM

Quote:

Originally Posted by scottkoz20 (Post 2595498)
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

Quote:

Originally Posted by scottkoz20 (Post 2595498)
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!


All times are GMT. The time now is 07:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02107 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete