Is there any extension that does this?
Have a clickable url as discussion title
So, basically a discussion title that would redirect you to a link?
No, there's no current discussion that does this. There is a Links extension by FOF that allows for links as you see in the header/pullout menu like here, but not ones that can be posted by users a la discussions.
jordanjay29 Are you sure there's no way to use the same format when inserting links in the discussion?
For example:
imagine this is the title
What I think is happening is that the code is stripping all formating from discussion titles. Maybe I could modify that code to only allow hrefs and plain text.
alx I'm sure there's a way to use the same format, but I don't expect it would be a simple thing to do.
Seems like a duplicate of https://discuss.flarum.org/d/20114-have-a-clickable-url-as-discussion-title
Did you intended to delete the discussion ? You only deleted your first post.
I was wondering what code was stripping all title formatting
alx you'll need an extension that extends the validation rules of the discussion.
In this context you probably mean URL ? HREF is the name of an HTML attribute whose value is an URL.
clarkwinkelmann Yes I mean URL, ex:
"This is website is so cool [Link]"
alx I've merged all your related discussions together. Please follow our Community Guidelines, in particular:
Don’t post repeatedly about the same topic, as doing so will tend to have the opposite effect.
Avoid making multiple posts in a row when one would suffice. This is a forum, not a chat room.
Please make only one discussion about the same topic, we can adjust tags as necessary (simply ask a moderator if you want) and it will not get your needs addressed faster. Please be patient and understanding about what is currently possible with Flarum, an extension is going to be needed for a lot of the requests you have. We're willing to help you on that process, but please respect our community rules.
- Edited
Hi, I was wondering if there was an extension that adds this function to flarum.
Example:
https://m.imgur.com/gallery/m4TYvHr
alx your example seems missing.
I still don't understand what you'd like to achieve. Does the title contains text plus a link that should be clickable ? Is it a title plus a link where the text portion of the title becomes a link pointing to the url ? Is it a url-only title ?
There's definitely nothing in core for this. If you want reddit-style but still keep a text title, the easiest would probably be to use Mason to add a new "url" field to discussions, then use a new extension that adds that link below or around the title in the discussion list.
Also, the link in your first post is still dead as I reported in my first answer. Did you have a screenshot to share ?
clarkwinkelmann yes this is exactly what I'm looking for.
The forum I'm building will have a lot of links so I need my users to be able to click on those outside of the discussion.
Option A would be to enable url formatting in the title in order to allow stuff like: "This is discussion title [Link]"
Option B, as you stated, would be something reddit-like.
Let me know your thoughts on what would be the simplest to implement.