brdiscord
Chevereto Member
You're probably here because you want to change the default email templates, Here's how:
First, Navigate to /app/themes/Peafowl/mails
Copy all the php files to /app/themes/Peafowl/overrides/mails
Now you can start editing.
First you should start with header.php and footer.php
I suggest adding your logo into header.php (as shown in red)
Make sure you change the width and height so your image isn't stretched, I suggest a maximum width of 500px, I also suggest that if your image uses white text you change it to black with a white background.
Second you can tinker with footer.php (shown in blue)
I suggest you add some links to key parts of your site, For example, Terms of Service, Privacy Policy, FAQ etc.
If you don't have an FAQ page, tomsit has already written a great guide which you can follow so check that out!
Finally the account-*.php files, You can realistically leave these alone, I'd just go in and correct some of the grammar personally.
If you want to add extra lines to these you can add this:
Do note that these files basically just insert HTML into the email, So you can do almost whatever you want within HTML's scope, I suggest reading this guide from w3schools.
Let me know if you have any other questions/if I missed something.
Anyway, Enjoy.
First, Navigate to /app/themes/Peafowl/mails
Copy all the php files to /app/themes/Peafowl/overrides/mails
Now you can start editing.
First you should start with header.php and footer.php
I suggest adding your logo into header.php (as shown in red)
Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<html>
<a href="YOUR SITE LINK HERE"><img src="YOUR IMAGE LINK HERE" alt="emailbanner" style="width:000px;height:000px;"></a>
<body>
Make sure you change the width and height so your image isn't stretched, I suggest a maximum width of 500px, I also suggest that if your image uses white text you change it to black with a white background.
Second you can tinker with footer.php (shown in blue)
I suggest you add some links to key parts of your site, For example, Terms of Service, Privacy Policy, FAQ etc.
Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<br><br>--<br>
<?php _se('This email was sent from The %w %u', ['%w' => CHV\getSetting('website_name'), '%u' => G\get_base_url()]); ?>
<br><br>
<a href="TOS LINK">Terms of Service</a> - <a href="PRIVACY LINK">Privacy</a> - <a href="FAQ LINK">FAQ</a> - <a href="DONATION LINK">Donate</a>
</body>
</html>
If you don't have an FAQ page, tomsit has already written a great guide which you can follow so check that out!
Finally the account-*.php files, You can realistically leave these alone, I'd just go in and correct some of the grammar personally.
If you want to add extra lines to these you can add this:
Code:
<?php _se('ANY TEXT OR HTML'); ?>
<br><br>
Do note that these files basically just insert HTML into the email, So you can do almost whatever you want within HTML's scope, I suggest reading this guide from w3schools.
Let me know if you have any other questions/if I missed something.
Anyway, Enjoy.