Support » Plugin: Comments - wpDiscuz » Some Shortcodes not converting correctly.

  • Resolved Dane Morgan

    (@danemorgan)


    When a comment is approved, some shortcodes are not working in the email that is sent.

    The [POST_TITLE] and [POST_URL] shortcodes work as expected.

    The [COMMENT_URL] encodes a link tot he post, with the comment anchor as plain text following the link, instead of linking to the comment anchor.

    The [UNSUBSCRIBE_URL] just prints the shortcode without converting it.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @danemorgan,

    The [COMMENT_URL] encodes a link tot he post, with the comment anchor as plain text following the link, instead of linking to the comment anchor.

    It seems you use the Shortcode in the wrong way. Please leave the shortcode view you use to allow us to check it.

    The [UNSUBSCRIBE_URL] just prints the shortcode without converting it.

    Please note there is no [UNSUBSCRIBE_URL] in the comment approved email.

    Thread Starter Dane Morgan

    (@danemorgan)

    Thanks. I will remove the unsubscribe_url shortcode. Currently, this is our email template for comment approval.

    <p>Hi there!</p>
    <p>The comment you left on [POST_TITLE] at [POST_URL] was just approved.</p>
    <p>You can view it here: [COMMENT_URL].</p>
    <p><em>If you're not interested in following this discussion any longer you can unsubscribe here: [UNSUBSCRIBE_URL].</em></p>

    This is the email it generated

    Hi there!

    The comment you left on Email Marketing Service Comparison 2020: GetResponse vs AWeber vs MailChimp vs Constant Contact & More at https://stage.werockyourweb.com/marketing/email/services/ was just approved.

    You can view it here: https://stage.werockyourweb.com/marketing/email/services/#comment-20813.

    If you’re not interested in following this discussion any longer you can unsubscribe here: [UNSUBSCRIBE_URL].

    But the comment link is rendered https://stage.werockyourweb.com/marketing/email/services/#comment-20813

    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @danemorgan,

    Please navigate to the Dashboard > Comments > wpDiscuz > Phrases admin page, copy the content in the “Comment approved message” section and leave it here.

    Thread Starter Dane Morgan

    (@danemorgan)

    <p>Hi there!</p>
    <p>The comment you left on [POST_TITLE] at [POST_URL] was just approved.</p>
    <p>You can view it here: [COMMENT_URL].</p>
    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @danemorgan,

    Sorry for the late response.
    You use the shortcode in the wrong way.

    You should change the following line:

    <p>You can view it here: [COMMENT_URL].</p>

    With the following one and check again:

    <a href="[COMMENT_URL]">[COMMENT_URL]</a>

    Thread Starter Dane Morgan

    (@danemorgan)

    Thank you that fixes it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Some Shortcodes not converting correctly.’ is closed to new replies.