1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Modifying Email Templates

Discussion in 'Styling and Customization Questions' started by Warchamp7, Apr 9, 2015.

  1. Warchamp7

    Warchamp7 Active Member

    I'm working on changing the styling and in conversation_reply_messagetext, there's a section that places {xen:raw $message.messageHtml} into a block. Where is the template for that so I can adjust the styling on it? I can't seem to find it
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The email templates are available in debug mode only: admin.php?email-templates/
     
  3. Warchamp7

    Warchamp7 Active Member

    Yes I know, I've already modified some, but I can't find which template generates the content of the post in the conversation reply template

    Code:
    <td width="100%" style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 11pt; line-height: 1.4">
            {xen:raw $message.messageHtml}
        </td>
    Where or how does $message.messageHtml get constructed in conversation_reply_messagetext?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not really sure what you're asking.

    It is passed to the template from the PHP file/code.
     
  5. Warchamp7

    Warchamp7 Active Member

    If there is a quote though, it has styling and such.

    In those cases, the contents of $message.messageHtml can look like
    Code:
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="
                background-color: #FFF4E5;
                border: 1px solid #F9D9B0;
                border-radius: 5px;
                margin: 1em 86px 1em 0">
    <tbody>
    <tr>
    <td style="
                    background-color: #F9D9B0;
                    border: 1px solid #F9D9B0;
                    border-bottom-color: #F9BC6D;
                    border-radius: 4px;
                    font-size: 11px;
                    font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
                    line-height: 1.4;
                    padding: 3px 8px;
                    margin: 0;
                    color: #141414">[Quoted User Name]
    </td>
    </tr>
    <tr>
    <td style="
                    font-size: 9pt;
                    font-style: italic;
                    font-family: Georgia, 'Times New Roman', Times, serif;
                    line-height: 1.4;
                    padding: 10px;
                    margin: 0">[Quoted Message Text]
        </td>
    </tr>
    </tbody>
    </table>
    [Normal Message Text]
    
    Image:
    [​IMG]

    I want to change the styling on the quote in this case, and I can't find where that markup comes from
     
    Last edited: Apr 9, 2015
  6. Warchamp7

    Warchamp7 Active Member

    Any idea about the quotes @Brogan? :\
     
  7. Warchamp7

    Warchamp7 Active Member

    Anyone who's worked with email templates know where I can find the template that controls the styling of quotes?
     
  8. nothingatall

    nothingatall Member

    Good to know I wasn't the only one this is driving crazy.
     
    Warchamp7 likes this.
  9. Steve F

    Steve F Well-Known Member

    Arty likes this.
  10. Arty

    Arty Well-Known Member

    URL of add-on mentioned above has changed: https://xenforo.com/community/resources/email-customizer.5118/ (explanation is posted in add-on discussion)

    Its hardcoded. See library/XenForo/BbCode/Formatter/HtmlEmail.php
     
    Warchamp7 likes this.

Share This Page