Before:
Our workflow for certain forum events used to be entirely manual, or relied on clunky, scheduled tasks. For example, when a new topic was posted in our support forum, we wanted to log it in our external ticketing system and send a heads-up to our support team's Discord channel. Without direct integration, this meant:
- A moderator would manually copy-paste the new topic's details into a ticket.
- Another moderator would then manually post a link to the topic in our Discord channel.
- Or, we'd run a daily cron job that scraped the forum for new topics, which meant significant delays and wasn't truly "real-time."
What Changed:
We implemented the dmzx phpBB API extension. While it offers a full REST API for more complex integrations, its webhook capabilities were exactly what we needed for real-time event reactions. After enabling the extension via ACP → Customise → Manage extensions, we configured the webhooks under ACP → Extensions → API Settings → Webhooks.
Here's how we set it up:
- We created a new webhook for the phpbb.topic_add event (fired when a new topic is posted).
- For the Webhook URL, we pointed it to a custom script on our server. This script receives the JSON payload from phpBB containing all the new topic's details.
- Inside that script, we then used the received data to automatically create a ticket in our support system and post a formatted message with a link to the new topic in our Discord channel.
The Result:
The change has been night and day. Now, when a new support topic is posted:
- A new ticket is created in our external system instantly.
- Our support team gets an immediate notification in Discord, complete with a direct link to the new topic.
- No more manual copying, no more delays, and no more missed posts.
What external tools or services do you wish your phpBB board could integrate with more seamlessly using webhooks?
