Announcement

Collapse
No announcement yet.

weird html in phrase

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • weird html in phrase

    I updated the phrase "notify" to convert it to a nice html email notification instead of the ancient plain text format.

    Here's the very weird thing... I tested it several times today and it worked fine. I received the full html output in mobile and desktop mail clients. That was only 20-30 minutes ago, at least 5-10 tests all good. Now, another member replied to a thread I'm subscribed to and it showed the full code in plain text in the email instead. I'm baffled why it worked before and suddenly now? I did not make any new updates since it was working fine before too.

    The code for phrase "notify"

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Talk Jesus Forums</title>
      </head>
    <body style="margin: 0; padding: 0;" dir="ltr">
    <table width="100%" border="0" cellspacing="0">
      <tbody>
          <tr style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;"><td align="center" style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;">
            <table border="0" cellspacing="0" cellpadding="0"><tbody>
              <tr><td align="center" width="680" style="padding: 10px">
                <a href="http://www.talkjesus.com" target="_blank">
                  <img src="http://www.talkjesus.com/images/metro/blue/misc/logo.png" title="Talk Jesus" style="border:0" alt="Talk Jesus" height="50" width="160"></a>
              </td></tr>
            </tbody></table>
          </td></tr>
    <tr><td style="padding: 20px" align="center">
      <table border="0" cellpadding="0" cellspacing="0"><tbody>
      <tr>
        <td width="400"  style="font-size:14px; line-height: 22px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #89949b;" valign="top" align="center">
          <div style="font-size:22px; line-height: 28px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #68757e; margin-bottom: 5px;">
              <p><img src="http://www.talkjesus.com/images/newsletter/collaboration-100.png" width="50" /></p>
              <p  style="text-decoration: none; color: #008fd5;" target="_blank">
               Dear $touser[username],<br>
              <p style="text-decoration: none; color: #68757e; font-size: 16px" target="_blank">
                <span style="text-decoration: none; color: #E66B1B;">$bbuserinfo[username]</span> has just replied to a discussion you have subscribed to entitled <strong>"$threadinfo[prefix_plain]$threadinfo[title]"</strong></p>
                 <p style="text-decoration: none; color: #68757e; font-size: 16px; font-weight: 600; text-align:left" target="_blank">the messsage...</p>
              <p style="text-decoration: none; color: #68757e; font-size: 14px; border-top: 1px solid #89949b; border-bottom: 1px solid #89949b; padding: 5px; text-align:left" target="_blank">"$pagetext"</p>
              <p>to reply back <a href="$threadlink" style="text-decoration: none; color: #008fd5;" target="_blank">click here</a></p></div>
        </td>
      </tr>
      </tbody></table>
    </td></tr>
        <tr><td style="background-color: #f9f9f9; color: #89949b" align="center">
          
            <p style="margin: 15px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;">
              <a href="http://www.talkjesus.com"  style="text-decoration: none; color: #008fd5;" target="_blank" target="_blank">
              Home</a>
              &nbsp;|&nbsp;
              <a href="http://www.facebook.com/talkjesus" style="text-decoration: none; color: #008fd5;" target="_blank">Facebook</a>
              &nbsp;|&nbsp;
              <a href="http://www.twitter.com/talkjesus" style="text-decoration: none; color: #008fd5;" target="_blank">Twitter</a>
            </p>
          <p style="margin: 15px 0; font-size:13px; line-height: 18px; font-family: 'Lucida Grande', Tahoma, sans-serif;">
            Thank you for being a part of Talk Jesus</p>
        </td></tr>
      </tbody>
    </table>
    </body>
    </html>
    [ Evidence & Prophecies Fulfilled : click ]
    .:. Unanswered Prayers? /read this\

  • #2
    Ok, tracing this down a little bit.

    Here's the thing I noticed. The pmreceived phrase is working perfectly fine with the HTML code, but the notify one is still sending plain text code (even though it worked first couple times with same code). This is baffling me.

    notify phrase:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Talk Jesus Forums</title>
      </head>
    <body style="margin: 0; padding: 0;" dir="ltr">
    <table width="100%" border="0" cellspacing="0">
      <tbody>
          <tr style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;"><td align="center" style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;">
            <table border="0" cellspacing="0" cellpadding="0"><tbody>
              <tr><td align="center" width="680" style="padding: 10px">
                <a href="http://www.talkjesus.com">
                  <img src="http://www.talkjesus.com/images/metro/blue/misc/logo.png" title="Talk Jesus" style="border:0" alt="Talk Jesus" height="50" width="160"></a>
              </td></tr>
            </tbody></table>
          </td></tr>
    <tr><td style="padding: 20px" align="center">
      <table border="0" cellpadding="0" cellspacing="0"><tbody>
      <tr>
        <td width="400"  style="font-size:14px; line-height: 22px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #89949b;" valign="top" align="center">
          <div style="font-size:22px; line-height: 28px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #68757e; margin-bottom: 5px;">
              <p><img src="http://www.talkjesus.com/images/newsletter/collaboration-100.png" alt="New Reply" width="50"></p>
              <p  style="text-decoration: none; color: #008fd5;">
               Dear $touser[username],<br>
              <p style="text-decoration: none; color: #68757e; font-size: 16px">
                <span style="text-decoration: none; color: #E66B1B;">$bbuserinfo[username]</span> has just replied to a discussion you have subscribed to entitled <strong>"$threadinfo[prefix_plain]$threadinfo[title]"</strong></p>
                 <p style="text-decoration: none; color: #68757e; font-size: 16px; font-weight: 600; text-align:left">the messsage...</p>
              <p style="text-decoration: none; color: #68757e; font-size: 14px; border-top: 1px solid #89949b; border-bottom: 1px solid #89949b; padding: 5px; text-align:left">$pagetext</p>
              <p>to reply back <a href="$threadlink" style="text-decoration: none; color: #008fd5;">click here</a></p></div>
        </td>
      </tr>
      </tbody></table>
    </td></tr>
        <tr><td style="background-color: #f9f9f9; color: #89949b" align="center">
         
            <p style="margin: 15px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;">
              <a href="http://www.talkjesus.com"  style="text-decoration: none; color: #008fd5;">
              Home</a>
              &nbsp;|&nbsp;
              <a href="http://www.facebook.com/talkjesus" style="text-decoration: none; color: #008fd5;">Facebook</a>
              &nbsp;|&nbsp;
              <a href="http://www.twitter.com/talkjesus" style="text-decoration: none; color: #008fd5;">Twitter</a>
            </p>
          <p style="margin: 15px 0; font-size:13px; line-height: 18px; font-family: 'Lucida Grande', Tahoma, sans-serif;">
            Thank you for being a part of Talk Jesus</p>
        </td></tr>
      </tbody>
    </table>
    </body>
    </html>
    pmreceived phrase:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Talk Jesus Forums</title>
      </head>
    <body style="margin: 0; padding: 0;" dir="ltr">
    <table width="100%" border="0" cellspacing="0">
      <tbody>
          <tr style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;"><td align="center" style="background-color: #43a6df;border: 0;border-bottom: 2px solid #2475ab;-webkit-box-shadow: inset 0 -2px #2475ab;box-shadow: inset 0 -2px #2475ab;">
            <table border="0" cellspacing="0" cellpadding="0"><tbody>
              <tr><td align="center" width="680" style="padding: 10px">
                <a href="http://www.talkjesus.com">
                  <img src="http://www.talkjesus.com/images/metro/blue/misc/logo.png" title="Talk Jesus" style="border:0" alt="Talk Jesus" height="50" width="160"></a>
              </td></tr>
            </tbody></table>
          </td></tr>
    <tr><td style="padding: 20px" align="center">
      <table border="0" cellpadding="0" cellspacing="0"><tbody>
      <tr>
        <td width="400"  style="font-size:14px; line-height: 22px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #89949b;" valign="top" align="center">
          <div style="font-size:22px; line-height: 28px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #68757e; margin-bottom: 5px;">
              <p><img src="http://www.talkjesus.com/images/newsletter/inbox-100.png" alt="New Message" width="50"></p>
              <p  style="text-decoration: none; color: #008fd5;">
               Dear $touserinfo[username],<br>
              <p style="text-decoration: none; color: #68757e; font-size: 16px">
                You have received a new private message from <span style="text-decoration: none; color: #E66B1B;">$fromusername</span>, entitled <strong>"$plaintext_title"</strong>.</p>           
              <p>To read and respond back to this message, you must
              <a href="http://www.talkjesus.com/private.php" style="text-decoration: none; color: #008fd5;">log in here</a>.</div>
        </td>
      </tr>
      </tbody></table>
    </td></tr>
        <tr><td style="background-color: #f9f9f9; color: #89949b" align="center">
         
            <p style="margin: 15px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;">
              <a href="http://www.talkjesus.com"  style="text-decoration: none; color: #008fd5;">
              Home</a>
              &nbsp;|&nbsp;
              <a href="http://www.facebook.com/talkjesus" style="text-decoration: none; color: #008fd5;">Facebook</a>
              &nbsp;|&nbsp;
              <a href="http://www.twitter.com/talkjesus" style="text-decoration: none; color: #008fd5;">Twitter</a>
            </p>
          <p style="margin: 15px 0; font-size:13px; line-height: 18px; font-family: 'Lucida Grande', Tahoma, sans-serif;">
            Thank you for being a part of Talk Jesus</p>
        </td></tr>
      </tbody>
    </table>
    </body>
    </html>
    Ran both through the W3 validator, no errors. They're also virtually almost 100% the same code, except 2 pieces which is the actual vbphrases that are different, nothing else.

    Any one have an idea?
    [ Evidence & Prophecies Fulfilled : click ]
    .:. Unanswered Prayers? /read this\

    Comment


    • #3
      It's been a few days. I would appreciate some support here.
      [ Evidence & Prophecies Fulfilled : click ]
      .:. Unanswered Prayers? /read this\

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X