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 ...
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...
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;...
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 ...
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 ...
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...
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...
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...
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...
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
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...
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.