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)

carik 09-15-2018 01:26 PM

Even if the topic name in English, and the text of the response in Russian, the notification is not sent.

iA1 09-15-2018 05:54 PM

Quote:

Originally Posted by carik (Post 2596364)
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!

I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.

carik 09-15-2018 06:03 PM

Quote:

Originally Posted by iA1 (Post 2596366)
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.

thanks for the answer.
if I send test messages from the OneSign panel, there are no errors. When I create a topic on the forum, the name in English, I write in it in English, there are no problems, push message comes. I think that the error with the processing of php mod ... or the encoding does not understand. I do not see any errors in the logs. And I tried to translate phrases in a php file, for example, "replied to", immediately ceases to send push messages.

carik 09-15-2018 06:25 PM

and perhaps when sending push to convert the encoding cp1251 to utf-8? I see that the problem is this. Thank you.

carik 09-17-2018 01:22 PM

Quote:

Originally Posted by iA1 (Post 2596366)
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.

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.

Cable_Player 09-17-2018 04:50 PM

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.


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.

iA1 09-17-2018 07:35 PM

1 Attachment(s)
Quote:

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

carik 09-18-2018 04:14 PM

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.

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

iA1 09-18-2018 04:27 PM

Quote:

Originally Posted by carik (Post 2596411)
:up: 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.

carik 09-18-2018 04:32 PM

<a href="https://www.carhelp.info/showthread.php?p=1544887&utm_source=onesignal&utm_ medium=push&utm_campaign=onesignal" target="_blank">https://www.carhelp.info/showthread....aign=onesignal</a> Here such link comes in push, I think the end superfluous?


All times are GMT. The time now is 04:56 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.01260 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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