abdfahim Well-known member Licensed customer Jul 6, 2017 #1 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> Click to expand...
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> Click to expand...
abdfahim Well-known member Licensed customer Jul 7, 2017 #2 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? Upvote 0 Downvote
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?
P Paul B XenForo moderator Staff member Licensed customer Jul 7, 2017 #3 abdfahim said: Is it as designed? Click to expand... Yes. Upvote 0 Downvote
abdfahim Well-known member Licensed customer Jul 13, 2017 #4 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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Licensed customer Jul 14, 2017 #5 Just edit the template and use regular HTML for the URL: https://www.w3schools.com/html/html_links.asp Upvote 0 Downvote
Just edit the template and use regular HTML for the URL: https://www.w3schools.com/html/html_links.asp
abdfahim Well-known member Licensed customer Jul 14, 2017 #6 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>. Click to expand... 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>. Click to expand... 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: Jul 14, 2017 Upvote 0 Downvote
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>. Click to expand... 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>. Click to expand... 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>.