XF 1.2 Adjusting Social Media Text

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:
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:
Back
Top Bottom