• 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

Warchamp7

Active member
#1
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:

Brogan

XenForo moderator
Staff member
#2
I believe that is part of the helper in the share_page template.

You may be able to edit the template to suit.
 

Warchamp7

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

Code:
{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: