I am no longer maintaining this mod, as I am no longer using Titan Embeds. Feel free to fork and improve as you wish.
To install this mod:
- Go to titanembeds.com, sign in with your discord account, and configure your embed. You'll need the embed code later in the install.
- Place the
main_chat.php
file into theapplication/views/_base_override/main/pages/
folder of your Nova. - Navigate to
Control Panel > Site Settings > Messages & Titles
- Click on
Add New Message
- Message Label:
Discord Chat Info
- Message Key:
titan_info
- Type:
Messages
- Content: Any pre-amble you want, then copy and paste the embed code from the Titan website here.
- Message Label:
- Click on
Add New Message
again.- Message Label:
Discord Chat Header
- Message Key:
titan_header
- Type:
Page titles
- Content: Whatever you want to name your chat page.
- Message Label:
- Look for the
application/controlers/main.php
file. If you've not modified it, replace it with the includedmain.php
file. If you've previously modified it, save a copy tomain.php.old
, then copy and paste lines 16–25 in before the last}
in your existingmain.php
file. - Test your embed, it should be located at
your.site/main/chat
(oryour.site/index.php/main/chat
if you haven't done the pretty url mod.)