Search found 118 matches

by caiocald
Mon Dec 07, 2020 3:06 am
Forum: Extension Writers Discussion
Topic: native phpbb notification with android push notification is it possible?
Replies: 2
Views: 490

Re: native phpbb notification with android push notification is it possible?

hi

I think this extension was designed for web push notifications.
The token scheme for push notifications for a website running on Webview in an apk is different.

Both use firebase, but in my case I need it to be compatible with the Android apk WebView function (I think).
by caiocald
Thu Dec 03, 2020 10:58 pm
Forum: Extension Writers Discussion
Topic: native phpbb notification with android push notification is it possible?
Replies: 2
Views: 490

native phpbb notification with android push notification is it possible?

I created an APK for Android from my forum website using the WebView function.

Is it possible to make the user receive a push notification in the APP when receiving a notification in the forum?
by caiocald
Sat Nov 07, 2020 10:31 am
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

It worked!!!
Can you explain the function of "true" to me?
I'm learning programming
by caiocald
Sat Nov 07, 2020 10:26 am
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

Code: Select all

$forum_subject = $this->request->variable('subject', 'Tópico');
by caiocald
Sat Nov 07, 2020 9:52 am
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

this is the notification file <?php public function get_type() { return 'notification.type.pontuacao'; } /** * Notification option data (for outputting to the user) * * @var bool|array False if the service should use it's default data * Array of data (including keys 'id', 'lang', and 'group') */ pub...
by caiocald
Sat Nov 07, 2020 8:26 am
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

What is the collation of notification_data field in phpbb_notifications table ( phpbb_ prefix may vary) in the database? a:4:{s:12:"requester_id";i:36823;s:7:"user_id";i:28027;s:8:"topic_id";i:23473;s:12:"post_subject";s:45:"Desafios para a pr??tica da l...
by caiocald
Thu Nov 05, 2020 11:25 pm
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

ViolaF wrote:
Thu Nov 05, 2020 8:58 pm
Try:

Code: Select all

    * Get the HTML formatted reference of the notification
     *
     * @return string
     */
    public function get_reference()
    {
        return censor_text(utf8_normalize_nfc($this->get_data('post_subject')));
    }
thanks for the help, but it didn't work
by caiocald
Thu Nov 05, 2020 8:31 pm
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Re: Problem with topic title and UTF-8 characters in notifications

Accented characters are in error in notification messages.

I am unable to make the topic title appear normally in website and email notifications.

Example: the "Ç" of "REDAÇÃO" is left with "????"
fdfdfdfdf.PNG
fdfdfdfdf.PNG (5.39 KiB) Viewed 794 times
by caiocald
Thu Nov 05, 2020 7:56 pm
Forum: Extension Writers Discussion
Topic: Problem with topic title and UTF-8 characters in notifications [SOLVED]
Replies: 17
Views: 1147

Problem with topic title and UTF-8 characters in notifications [SOLVED]

Is it something with that part?

Code: Select all

    * Get the HTML formatted reference of the notification
     *
     * @return string
     */
    public function get_reference()
    {
        return censor_text($this->get_data('post_subject'));
    }
by caiocald
Fri Aug 28, 2020 2:39 am
Forum: Extension Writers Discussion
Topic: notification_id as item_id
Replies: 4
Views: 769

Re: notification_id as item_id

If more than one user evaluates the same topic, the author of the topic will only receive ONE notification, understand? You can update already sent notification if more than 1 user perform some action in your notification type. Example is linked above. It will look like f.e. "User1 evaluated y...
by caiocald
Thu Aug 27, 2020 9:42 pm
Forum: Extensions in Development
Topic: [3.2][3.3][RC] User Notification Control [UNC]
Replies: 46
Views: 5020

Re: [3.2][3.3][RC] User Notification Control [UNC]

I enabled email notification for an extension and it didn't work.

by checking the user panel, the boxes appear as if the administrator had disabled them.
by caiocald
Thu Aug 27, 2020 8:55 pm
Forum: Extension Writers Discussion
Topic: notification_id as item_id
Replies: 4
Views: 769

Re: notification_id as item_id

Is there any way to get the "notification-id" column to enumerate the "item-id"? What do you want to achieve basically? It is possible to just update 'old' notifications, you can get an example in phpBB core, like https://github.com/phpbb/phpbb/blob/98515e7c7d31393ee4f00077d7d47...
by caiocald
Thu Aug 27, 2020 2:00 am
Forum: Extension Writers Discussion
Topic: notification_id as item_id
Replies: 4
Views: 769

notification_id as item_id

when configuring notifications for my extension I noticed that in the part: public static function get_item_id($data) { return $data['topic_id']; } the "item-id" column does not allow repetition. That is, if two users trigger notifications, the author will only receive one notification, as...

Go to advanced search