Search found 8 matches

by Appaulling
Fri Nov 29, 2019 1:27 pm
Forum: Extension Writers Discussion
Topic: Modifying username when submitting posts
Replies: 2
Views: 339

Modifying username when submitting posts

Hi, I am trying to find a way to change the username when submitting posts, so that you can be logged in as "A" but write posts as "Anonymous1234". However, so far all my attempts to do so have not worked out. Subscribing to "submit_post_data" and setting the user_id does not work, because later php...
by Appaulling
Mon Mar 18, 2019 1:13 pm
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

I finally figured it out! :D The problem was actually jabber. Turns out that for sending notifications via IM, phpBB uses templates in language/de/email/short . If that folder is not there then phpBB simply fails with the above error message. I solved the problem by simply creating the short folder...
by Appaulling
Sun Mar 17, 2019 10:45 pm
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

Yes. Here is my full folder structure:
by Appaulling
Sun Mar 17, 2019 2:27 pm
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

Just tried that out, same error message unfortunately :(

Clearing the cache, reinstalling the extension and deactivating all other extensions also has no effect. Could this be a bug in phpBB?
by Appaulling
Sun Mar 17, 2019 12:23 am
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

Out of desperation I tried to simply use the existing template admin_activate . This did not work either (same error message), however twig now at least tried to look at <INSTALL_ROOT>/language/de/email/short . If I change it however to a template that does not exist ( saldfkjowe ) twig then tries t...
by Appaulling
Tue Mar 12, 2019 11:24 am
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

In the ucp_register_after event. This is my listener class: class listener implements EventSubscriberInterface { /** @var \phpbb\notification\manager */ protected $notification_manager; public function __construct(\phpbb\notification\manager $manager) { $this->notification_manager = $manager; } stat...
by Appaulling
Tue Mar 12, 2019 10:55 am
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Re: Problem with email template in custom notification

First of all, vendor and extension should all be lowercase. So I'm afraid I am the bringer of bad news and you'll have to change your namespaces to use a lowercase "p" in paul. Thanks for the note, I've changed that. Looking at the code, you do not have the specify your extension, the language or t...
by Appaulling
Mon Mar 11, 2019 9:48 pm
Forum: Extension Writers Discussion
Topic: Problem with email template in custom notification
Replies: 14
Views: 984

Problem with email template in custom notification

Hi everyone, I am trying to develop an extension that sends a custom notification type every time a new user registers on the board. So far everything is working great, however I have a problem with the email templates. I have a template file located in the ext folder at at Paul/notifyregistration/l...

Go to advanced search