Clickable links in website and bio for TL0 newuser

AI-generated summary

In a private Discourse forum for trusted members, alexmas seeks to make website and bio links clickable for TL0 users, noting TL1–TL4 are already configured for specific users. Arkshine provides a JavaScript snippet to enable clickable website links by modifying the user controller and user-card-contents component within a theme or component, though notes the bio field is handled server-side and currently cannot be modified to allow clickable links. Jagster suggests bypassing the issue by assigning TL1 to all members immediately, arguing that TL0 is unnecessary in a trusted private forum and that groups might better suit the use case. alexmas thanks both, confirms the JS solution works for the website link, and explains that TL0 is intentionally retained for granular restrictions not achievable via groups, despite the forum’s private nature.

Hi

I have a private discourse with only trusted members, and I need TL0 newuser links in bio and/or website to be clickable (I already use TL1 to TL4 to other specific user).

Is there any way to do that ?
JS script added in default theme ? Official plugin ?

Thanks

Hi, welcome, Alex!

About the website link, you can try to insert this JS into your theme or a component:

Head
<script type="text/discourse-plugin" version="0.8">

api.modifyClass("controller:user", {
    pluginId: 'enalbe-tl0-website-link',
    linkWebsite: true
});

api.modifyClass("component:user-card-contents", {
    pluginId: 'enalbe-tl0-website-link',
    linkWebsite: true
});
</script>

About the Bio, I’m not sure how to do it yet. It’s handled in the backend (excerpt, stripping links).

Yes, and it is taking the most easiest path: adjusting your TLs and giving TL1 to all right away. Privat forum and only trusted members… by definition you shouldn’t use TL0 at all.

I have a feeling you are using TLs such way where groups could work much better.

Thank you Arkshine !
It works well.

Thanks Jakke, but I even if it is a private forum, I have different levels of trusted member.
Trust level settings allow some configurations not available for groups. And TL0 have even more restriction possibility.