Tim Hasting Posted September 22, 2023 Share Posted September 22, 2023 Hello, I have added a link to the description but the link is not clickable. It is possible to make link clickable on description? Thank you Quote Link to comment Share on other sites More sharing options...
Tech Support Posted September 22, 2023 Share Posted September 22, 2023 Please go to Website UI -> Pages -> View Video page -> video_view block template. Find this: <em>{{$data.description|replace:"\n":"<br>"}}</em> And change like this: <em>{{$data.description|replace:"\n":"<br>"|show_links}}</em> By default it will create the following link: <a href="https://google.com" rel="nofollow" target="_blank">https://google.com</a> If you want to remove rel="nofollow", then change the code to this: <em>{{$data.description|replace:"\n":"<br>"|show_links:false}}</em> 1 Quote Link to comment Share on other sites More sharing options...
Tim Hasting Posted September 22, 2023 Author Share Posted September 22, 2023 IT'S WORKS THANK YOUU 😍 Quote Link to comment Share on other sites More sharing options...
Tim Hasting Posted September 22, 2023 Author Share Posted September 22, 2023 (edited) One question again. How to change the https://google.com to Download Before <a href="https://google.com" rel="nofollow" target="_blank">https://google.com</a> After <a href="https://google.com" rel="nofollow" target="_blank">Download</a> Thank you Edited September 22, 2023 by Tim Hasting change text Quote Link to comment Share on other sites More sharing options...
Tech Support Posted September 22, 2023 Share Posted September 22, 2023 In this case you would better use bbcode to have this. First you need to modify the following file on server filesystem (using FTP client or server File manager): /admin/include/bbcode.php This file has the following line commented out: //$bbcode["|\[a *href *=[ '\"]*([^ '\"\]]*)[^]]*](.*)\[/a]|si"] = '<a href="\\1">\\2</a>'; You need to remove the first //: $bbcode["|\[a *href *=[ '\"]*([^ '\"\]]*)[^]]*](.*)\[/a]|si"] = '<a href="\\1">\\2</a>'; Then in template that you have just changed you need to use bbcode modifier instead of show_links: <em>{{$data.description|replace:"\n":"<br>"|bbcode}}</em> And in video description you can specify link like this: [a href=https://google.com]Download[/a] 1 Quote Link to comment Share on other sites More sharing options...
Tim Hasting Posted September 22, 2023 Author Share Posted September 22, 2023 IT'S WORKS AGAIN THANK'S 😍😍 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.