XF 1.5 How to add a hyperlink in phrase?

abdfahim

Well-known member
Is it possible to hyperlink a word in the phrase? Right now, if I do like below, it takes it literally without parsing as HTML.

<a href="xenforo.com">This is link to XF site</a>
 
Actually, hyperlink works in some phrases like "your_account_is_currently_awaiting_confirmation_confirmation_sent_to_x", but not in some other phrases like "search_could_not_be_completed_because_search_keywords_were_too". Is it as designed?
 
Can anyone please give a hint how can I put a hyperlink in the phrase search_could_not_be_completed_because_search_keywords_were_too?

I think a template update is required, but I am not sure what changes I should make.
 
That I know I can do, but I have to hard code the phrase in that case, right? For example, I have a phrase

my_phrase = If you want this, <a href="www.example.com">click here</a>.

In some XF templates, if I use that phrase, it takes it literally without html parsing
Code:
{xen:phrase my_phrase}
OUTPUT said:
If you want this, <a href="www.example.com">click here</a>.


Now, to use regular html, I have to hard code the phrase like because doing that won't serve my purpose, right?
Code:
<a href="www.example.com">{xen:phrase my_phrase}</a>.
 
Last edited:
Back
Top Bottom