This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Problem with email template
#1
Bug 

When trying to edit HTML templates for email messages after adding this line of HTML code, the script throws an error

Code:
<p style="text-align: center;"><img style="border: 0px; outline: currentcolor; text-decoration: none;" src="https://winiso.pl/_media/info/winiso-logo-v2.png" alt="WinISO.pl - Logo" width="250" height="65" border="0" /></p>

I would like to point out that i managed to add the above code to one message boxes: Subscription confirmation. For other templates, the script displays the error: Please review the errors below. 

   

The entire message template looks like this. 

Code:
<body style="font-family: Helvetica, sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.3; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #f4f5f6; margin: 0; padding: 0;">
<table class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f4f5f6; width: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#f4f5f6">
<tbody>
<tr>
<td style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top;" valign="top">&nbsp;</td>
<td class="container" style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top; max-width: 800px; padding: 0; padding-top: 24px; width: 800px; margin: 0 auto;" valign="top" width="800">
<div class="content" style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 800px; padding: 0;"><!-- START CENTERED WHITE CONTAINER -->
<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background: #ffffff; border: 1px solid #eaebed; border-radius: 16px; width: 100%;" border="0" width="100%" cellspacing="0" cellpadding="0"><!-- START MAIN CONTENT AREA -->
<tbody>
<tr>
<td class="wrapper " style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top; box-sizing: border-box; padding: 24px;word-break: break-word;" valign="top">
<p style="font-family: Helvetica, sans-serif; font-size: 16px; font-weight: normal; margin: 0; margin-bottom: 16px;">Witaj <strong>[name]</strong></p>
<p>Administrator umieścił komentarz dotyczący <u>[page reference]</u>, kt&oacute;ry znajdującej się pod następującym adresem:</p>
<p><strong><span style="text-decoration: underline; color: #3366ff;">[comment url]</span></strong></p>
<p style="font-family: Helvetica, sans-serif; font-size: 16px; font-weight: normal; margin: 0; margin-bottom: 16px;">Treść komentarza opublikowanego przez <strong>[poster]</strong>:</p>
<blockquote>
<p style="font-family: Helvetica, sans-serif; font-size: 16px; font-weight: normal; margin: 0; margin-bottom: 16px; word-break: break-all;"><em>[comment]</em></p>
</blockquote>
</td>
</tr>
<!-- END MAIN CONTENT AREA --></tbody>
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; padding-top: 24px; text-align: center; width: 100%;">
<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" border="0" width="100%" cellspacing="7" cellpadding="0">
<tbody>
<tr>
<td class="content-block" style="font-family: Helvetica, sans-serif; vertical-align: top; color: #9a9ea6; font-size: 16px; text-align: center;" align="center" valign="top">Aby zarządzać swoją subskrypcją, kliknij w <span style="color: #808080;"><a style="color: #808080;" href="[user url]" target="_blank">ten link</a>.</span></td>
</tr>
<tr>
<td class="content-block" style="font-family: Helvetica, sans-serif; vertical-align: top; color: #9a9ea6; font-size: 16px; text-align: center;" align="center" valign="top">[signature]</td>
</tr>
<tr>
<td class="content-block powered-by" style="font-family: Helvetica, sans-serif; vertical-align: top; color: #9a9ea6; font-size: 16px; text-align: center;" align="center" valign="top">Powered by <a style="color: #9a9ea6; font-size: 16px; text-align: center; text-decoration: none;" href="http://htmlemail.io"><u>HTMLemail.io</u></a></td>
</tr>
</tbody>
</table>
</div>
<!-- END FOOTER --> <!-- END CENTERED WHITE CONTAINER --></div>
</td>
<td style="font-family: Helvetica, sans-serif; font-size: 16px; vertical-align: top;" valign="top">&nbsp;</td>
</tr>
</tbody>
</table>
</body>
Reply
#2

Yeah that looks like a bug with how it's not showing the field specific error messages. I'll fix that in the next version.

The error will likely be because of the maximum number of characters which is set to 5,000.

If you open the file /comments/backend/controller/settings/email_editor.php and replace all instances of 5000 with a higher number then it should save fine.

I'll increase that in the next version as well.

Have you completed the interview?
Reply
#3

Thanks. This solved the problem.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
23-Feb-2024, 07:25 PM
Last Post by Steven
23-Nov-2017, 08:09 PM
Last Post by kooler
27-Aug-2013, 02:02 PM
Last Post by Steven
20-Jul-2013, 01:22 PM
Last Post by Steven
19-Mar-2013, 02:37 PM
Last Post by Steven
02-Jul-2012, 08:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)