Search found 47 matches

by dbj
Sat Nov 12, 2022 9:14 pm
Forum: Extension Writers Discussion
Topic: Set extension language independent from user language
Replies: 0
Views: 686

Set extension language independent from user language

Hey, I'm maintaining an extension that sends notifications. Currently, the extension uses the same language as the user that triggered the notification, which may be strange if there is more than one language installed - some notifications may be in different language than others. So I want to make ...
by dbj
Sat Oct 29, 2022 2:46 pm
Forum: Extension Writers Discussion
Topic: Remove content in [quote] tags for post preview
Replies: 7
Views: 699

Re: Remove content in [quote] tags for post preview

Take another look at the regex: It's specifying the text starts with either <r> or <t> , i.e., it's already parsed text. You are right, so can I safely assume that in events like core.submit_post_end I will always get parsed text, so that would mean I could safely use: $content_without_quotes = $ph...
by dbj
Sat Oct 29, 2022 12:41 pm
Forum: Extension Writers Discussion
Topic: Remove content in [quote] tags for post preview
Replies: 7
Views: 699

Re: Remove content in [quote] tags for post preview

So I looked deeper into the code and found this: public function remove_nested_quotes($max_depth) { global $phpbb_container; if (preg_match('#^<[rt][ >]#', $this->message)) { $this->message = $phpbb_container->get('text_formatter.utils')->remove_bbcode( $this->message, 'quote', $max_depth ); return;...
by dbj
Sat Oct 29, 2022 10:06 am
Forum: Extension Writers Discussion
Topic: Remove content in [quote] tags for post preview
Replies: 7
Views: 699

Re: Remove content in [quote] tags for post preview

Added: it's been brought to my attention that this request is probably specific to notifications of phpBB posts, on Discord. >>> striking out my reply as it's not relevant You are correct, I would like to use this in my Discord notification extension :D It may not be exactly what you're after, but ...
by dbj
Fri Oct 28, 2022 10:37 am
Forum: Extension Writers Discussion
Topic: Remove content in [quote] tags for post preview
Replies: 7
Views: 699

Remove content in [quote] tags for post preview

In order to generate a preview text for notifications, I'm using strip_bbcode() and then shorten the text to a specified length (e.g. 200 characters). Now, if someone quotes a post the preview text may contain only the quoted post, so the preview may look odd (it may even suggest that the author of ...
by dbj
Sat Oct 15, 2022 3:47 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

A new version (3.0.4) with updated fr translation is in the validation queue.

Also note there are additional translations provided by other users:

https://www.phpbb.com/customise/db/exte ... pic/237636
by dbj
Wed Feb 16, 2022 2:52 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

As this is not phpBB core functionality, I would need to have a look at how the extensions interact. Maybe I need a special handling to check if this extension is installed and then redact the user name. I will have a look at it as soon as I have time. My highest priority is still getting this exten...
by dbj
Mon Feb 14, 2022 9:41 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

Hi, I updated the namespace in order to submit it to the extension database. Thus, the path should now be: phpBB/ext/mober/discordnotifications/ If you see a file called "composer.json" in this directory, the path is correct. If you were using the old extension before, you should disable a...
by dbj
Thu Jan 13, 2022 11:40 am
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

Excellent, I made a bot on discord, can this extension be used with a bot? I don't know what your bot does or how it works, so I can't tell ;) This extension works with Webhooks. If your bot is compatible to Discord Webhooks, you could specify your bot endpoint in the extension and then the notific...
by dbj
Mon Jan 10, 2022 5:22 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

Hope you don't mind me asking, but is this in development? & by release ready, under review do you mean it will be available on here? Yes it is. As of now, I would consider it stable because it has all the features I wanted to add and also some bugs fixed. You can already install and use the ex...
by dbj
Thu Dec 23, 2021 3:11 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

I made this extension release-ready, it is now "under review".

I had to remove the french translation because it is incomplete after my changes. Sadly, I don't speak any french. I would be happy to accept a pull request on Github :D
by dbj
Wed Dec 08, 2021 12:53 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

This will be my first extension release, so I have to look up the whole process first :) Please let met check next week, when I'm on vacation.
by dbj
Sun Nov 14, 2021 12:15 pm
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

Basically I made this fork to support different channels per board, not because the old one was broken. But while doing this, I also made some fixes to the codebase, like better support for multibyte characters. Also, I added a German translation. Let me look into making this extension into a proper...
by dbj
Thu Nov 11, 2021 10:34 am
Forum: Extensions in Development
Topic: [3.3][ALPHA] Discord Notifications
Replies: 35
Views: 10981

Re: [3.3][ALPHA] Discord Notifications

Currently, it's a bit of on-off. I don't know how many people are using or would like to use this extension, so I'm not sure if making a proper extension is worth the time. But if you have a suggestion or found a bug, I would like to fix that.

Go to advanced search