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)

gnrx 12-18-2018 02:55 PM

Quote:

Originally Posted by iA1 (Post 2597851)
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!!

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

iA1 12-19-2018 08:01 PM

Quote:

Originally Posted by khalled (Post 2597872)
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.

gnrx 12-22-2018 12:36 PM

Today, I view I have the same problem:
Quote:

Originally Posted by Cable_Player (Post 2596401)
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
Code:

https://www.mydomain.com/forum
In the settings on OneSignal it does not allow me to enter that location, only
Code:

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
Quote:

Originally Posted by iA1 (Post 2596402)
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!

iA1 12-22-2018 05:22 PM

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.

gnrx 12-22-2018 05:58 PM

Quote:

Originally Posted by iA1 (Post 2597900)
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!!!

iA1 12-23-2018 10:30 AM

Quote:

Originally Posted by carik (Post 2596444)
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

Quote:

Originally Posted by khalled (Post 2597872)
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

Quote:

Originally Posted by iA1 (Post 2597874)
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
PHP Code:

Check the steps of installation once againAt the end of step 1it says:
Download those filesextract 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

gnrx 12-24-2018 03:48 PM

Quote:

Originally Posted by iA1 (Post 2597904)
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!!!

gnrx 12-24-2018 03:59 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).

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:

Code:

Forum notice
The specified action is invalid

undefined

The url that appears in my browser is:
Code:

https://www.mydomain.com/foro/inlinemod.php?threadid=409061&p=
But after this, the bell indicate that, I are suscribed.

Regards and Happy Christmas!!!

iA1 12-24-2018 09:08 PM

Quote:

Originally Posted by khalled (Post 2597915)
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.

iA1 12-24-2018 09:20 PM

Quote:

Originally Posted by gnrx (Post 2597917)
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 ?.

Quote:

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:

Code:

Forum notice
The specified action is invalid

undefined

The url that appears in my browser is:
Code:

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

gnrx 12-24-2018 11:43 PM

Quote:

Originally Posted by iA1 (Post 2597919)
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!

Quote:

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

www.mydomain.com
not the subforum folder
Code:

www.mydomain.com/foro
I need made some change in some file?

Again, thank you very much for your attention and help!

Happy Christmas!!!

iA1 12-25-2018 03:24 PM

Quote:

Originally Posted by gnrx (Post 2597921)
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.

Quote:

Also, I view now that, all notifications when click, go to:
Code:

www.mydomain.com
not the subforum folder
Code:

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

Quote:

Originally Posted by iA1 (Post 2597918)
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

gnrx 12-29-2018 11:39 AM

Quote:

Originally Posted by iA1 (Post 2597922)
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.

iA1 12-29-2018 06:17 PM

Quote:

Originally Posted by gnrx (Post 2597957)
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.

iA1 12-29-2018 06:23 PM

Quote:

Originally Posted by khalled (Post 2597925)
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.

gnrx 12-29-2018 10:50 PM

Quote:

Originally Posted by iA1 (Post 2597961)
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

Quote:

Originally Posted by iA1 (Post 2597962)
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

Quote:

Originally Posted by viverevalencia (Post 2598011)
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.

iA1 01-04-2019 06:49 PM

Quote:

Originally Posted by viverevalencia (Post 2598012)
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

Quote:

Originally Posted by iA1 (Post 2598016)
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

Quote:

Originally Posted by viverevalencia (Post 2598034)
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.

iA1 01-25-2019 10:43 AM

Update 1.3.0

Bug fixed for PM notifications
Separated multiple consecutive notifications from different threads

gnrx 01-26-2019 09:38 PM

Quote:

Originally Posted by iA1 (Post 2598234)
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/...-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.

Code:

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.

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.

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

Quote:

Originally Posted by haithngn (Post 2599227)
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 ?

iA1 05-07-2019 04:25 PM

Quote:

Originally Posted by Kane@airrifle (Post 2598434)
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 (Post 2599260)
Please give me a help ?

PM me your domain name and a test user account.

Quote:

Originally Posted by Mathsman (Post 2598436)
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.

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?

iA1 05-12-2019 02:40 AM

Quote:

Originally Posted by nanox (Post 2599265)
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 (Post 2599266)
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

Dave 10-15-2019 12:33 PM

Quote:

Originally Posted by red-dna (Post 2600945)
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)


All times are GMT. The time now is 04:51 PM.

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.01569 seconds
  • Memory Usage 1,880KB
  • 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
  • (12)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_php_printable
  • (34)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
  • (40)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