Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Web Push notifications using OneSignal Details »»
Web Push notifications using OneSignal
Version: 1.3.5, by iA1 iA1 is offline
Developer Last Online: Jul 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.2.x Rating:
Released: 07-10-2018 Last Update: 05-06-2019 Installs: 33
Supported Uses Plugins
Re-useable Code Additional Files 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.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

Download Now

File Type: zip OneSignal_webpush_1.1.0.zip (5.6 KB, 23 views)
File Type: zip OneSignal_webpush_vB4_1.2.0.zip (5.9 KB, 24 views)
File Type: zip OneSignal_webpush_1.3.0.zip (6.1 KB, 26 views)
File Type: zip OneSignal_webpush_1.3.5.zip (5.9 KB, 98 views)

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.
    3 благодарности(ей) от:
    Budget101, carik, louva-a-Deus

    Comments
      #72  
    Old 02-10-2019, 05:27 PM
    Mathsman Mathsman is offline
     
    Join Date: Aug 2010
    Posts: 9
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    vBulletin 4.2.2 Patch Level 6 i use.

    HTML Code:
    https://onesignal.com/api/v1/players/293256a8-90d3-4237-8d04-d74e73245e65
    I get the error on the page.

    HTML Code:
    {"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.
    Reply With Quote
      #73  
    Old 05-03-2019, 11:50 PM
    haithngn haithngn is offline
     
    Join Date: Nov 2017
    Posts: 4
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    4.2.5 does not work, please help to check
    Reply With Quote
      #74  
    Old 05-05-2019, 11:25 AM
    Mark.B Mark.B is offline
    Senior Member
     
    Join Date: Feb 2004
    Posts: 1,354
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by haithngn View Post
    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.
    Reply With Quote
      #75  
    Old 05-07-2019, 11:50 AM
    haithngn haithngn is offline
     
    Join Date: Nov 2017
    Posts: 4
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    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 ?
    Reply With Quote
      #76  
    Old 05-07-2019, 04:25 PM
    iA1 iA1 is offline
     
    Join Date: Jul 2018
    Posts: 150
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Kane@airrifle View Post
    Get this error when enabling this mod.

    Code:
    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.

    Quote:
    Originally Posted by haithngn View Post
    Please give me a help ?
    PM me your domain name and a test user account.

    Quote:
    Originally Posted by Mathsman View Post
    vBulletin 4.2.2 Patch Level 6 i use.

    HTML Code:
    https://onesignal.com/api/v1/players/293256a8-90d3-4237-8d04-d74e73245e65
    I get the error on the page.

    HTML Code:
    {"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.
    Reply With Quote
    Благодарность от:
    Kane@airrifle
      #77  
    Old 05-08-2019, 09:21 AM
    nanox nanox is offline
     
    Join Date: May 2013
    Posts: 32
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Where can i translate the notifications? Ive tried the "search phrases.
    Reply With Quote
      #78  
    Old 05-08-2019, 03:25 PM
    nanox nanox is offline
     
    Join Date: May 2013
    Posts: 32
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I cant get the notifications to work, my default language includes special characters. Is this the problem?
    Reply With Quote
      #79  
    Old 05-12-2019, 02:40 AM
    iA1 iA1 is offline
     
    Join Date: Jul 2018
    Posts: 150
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by nanox View Post
    Where can i translate the notifications? Ive tried the "search phrases.
    You will have to edit the file functions_OneSignal.php

    Quote:
    Originally Posted by nanox View Post
    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.
    Reply With Quote
      #80  
    Old 10-15-2019, 12:19 PM
    red-dna red-dna is offline
     
    Join Date: Mar 2006
    Posts: 39
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    What about vb 4.08 ?
    I try to install but i get a blank page
    Reply With Quote
      #81  
    Old 10-15-2019, 12:33 PM
    Dave Dave is offline
     
    Join Date: May 2010
    Posts: 2,583
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by red-dna View Post
    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)
    Reply With Quote
    2 благодарности(ей) от:
    Mr Peabody, RichieBoy67
    Reply

    Thread Tools

    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


    All times are GMT. The time now is 12:11 AM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2024, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.05682 seconds
    • Memory Usage 2,354KB
    • Queries Executed 29 (?)
    More Information
    Template Usage:
    • (1)SHOWTHREAD
    • (1)ad_footer_end
    • (1)ad_footer_start
    • (1)ad_header_end
    • (1)ad_header_logo
    • (1)ad_navbar_below
    • (1)ad_showthread_beforeqr
    • (1)bbcode_code
    • (4)bbcode_html
    • (7)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (4)pagenav_pagelink
    • (11)post_thanks_box
    • (6)post_thanks_box_bit
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (3)post_thanks_postbit
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (4)postbit_attachment
    • (11)postbit_onlinestatus
    • (11)postbit_wrapper
    • (1)spacer_close
    • (1)spacer_open
    • (1)tagbit_wrapper 

    Phrase Groups Available:
    • global
    • inlinemod
    • postbit
    • posting
    • reputationlevel
    • showthread
    Included Files:
    • ./showthread.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/functions_bigthree.php
    • ./includes/class_postbit.php
    • ./includes/class_bbcode.php
    • ./includes/functions_reputation.php
    • ./includes/functions_post_thanks.php 

    Hooks Called:
    • init_startup
    • init_startup_session_setup_start
    • init_startup_session_setup_complete
    • cache_permissions
    • fetch_postinfo_query
    • fetch_postinfo
    • fetch_threadinfo_query
    • fetch_threadinfo
    • fetch_foruminfo
    • style_fetch
    • cache_templates
    • global_start
    • parse_templates
    • global_setup_complete
    • showthread_start
    • showthread_getinfo
    • forumjump
    • showthread_post_start
    • showthread_query_postids
    • showthread_query
    • bbcode_fetch_tags
    • bbcode_create
    • showthread_postbit_create
    • postbit_factory
    • postbit_display_start
    • post_thanks_function_post_thanks_off_start
    • post_thanks_function_post_thanks_off_end
    • post_thanks_function_fetch_thanks_start
    • fetch_musername
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • post_thanks_function_fetch_thanks_bit_start
    • post_thanks_function_show_thanks_date_start
    • post_thanks_function_show_thanks_date_end
    • post_thanks_function_fetch_thanks_bit_end
    • post_thanks_function_fetch_post_thanks_template_start
    • post_thanks_function_fetch_post_thanks_template_end
    • postbit_imicons
    • bbcode_parse_start
    • bbcode_parse_complete_precache
    • bbcode_parse_complete
    • postbit_attachment
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete