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

XF 1.4 Truncate email text

Discussion in 'XenForo Questions and Support' started by PrettyPixels, Jan 28, 2015.

  1. PrettyPixels

    PrettyPixels Active Member

    I'd like to show only the first 50 words of a response in email subscriptions/notifications, so the member will need to visit the forum to read the rest.

    Can you please tell me if there any easy way to truncate the message sent out for email subscriptions to threads this way?
  2. Rob

    Rob Well-Known Member

    {xen:string wordTrim, $yourvariable, 40}

    Use that in the email template, this will limit to 40 words. Replace yourvariable with whatever outputs the message content
    Stuart Wright and PrettyPixels like this.
  3. PrettyPixels

    PrettyPixels Active Member

    Thanks so much, Rob! :) I'll give that a shot.

Share This Page