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

XF 1.2 Adjusting Social Media Text

Discussion in 'XenForo Questions and Support' started by Warchamp7, Jul 26, 2014.

  1. Warchamp7

    Warchamp7 Active Member

    Is there any syntax when inside a template to do a string replace?

    I'm trying to adjust the tweet text on pages that include the website name. Currently, a tweet might look like so:
    "Lorem Ipsum | MyWebsite http://mywebsite.com/lorem-ipsum via @MyWebsite"

    I want to reduce the redundancy of having "| My Website" in the post, since it's unnecessary
    Last edited: Jul 26, 2014
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I believe that is part of the helper in the share_page template.

    You may be able to edit the template to suit.
  3. Warchamp7

    Warchamp7 Active Member

    Yeah, I've been looking at that, thus wondering if there is {xen} syntax for a string replace.

    {xen:if {$thread.title}, 'data-text="{xen:helper threadPrefix, $thread, escaped}{$thread.title}"'}
    This is what I would need to adjust, but I'm unsure how to do so within a template.
    Last edited: Jul 26, 2014

Share This Page