XF 1.2 Adjusting Social Media Text


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:


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.


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: