Disable auto link for any text starting with "www"

Do you want to say something about UT99.org?
User avatar
Barbie
Godlike
Posts: 2481
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Disable auto link for any text starting with "www"

Post by Barbie » Thu Sep 08, 2022 11:24 am

How can I disable the automatically link creation for any text starting with "www"?
Example:

Code: Select all

www.nowhere
is rendered as a link: www.nowhere
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1774
Joined: Sat Mar 21, 2020 5:32 am

Re: Disable auto link for any text starting with "www"

Post by Buggie » Thu Sep 08, 2022 11:37 am

when your www.nowhere then nothing wrong with that.

Code: Select all

[inlinecode]www.nowhere[/inlinecode]

User avatar
Barbie
Godlike
Posts: 2481
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Disable auto link for any text starting with "www"

Post by Barbie » Thu Sep 08, 2022 12:04 pm

Thanks for answer, but that changes the display from rendering as link to rendering as code.
I tried also the numerical encoding for "w" (w) but that does not work as you see.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1774
Joined: Sat Mar 21, 2020 5:32 am

Re: Disable auto link for any text starting with "www"

Post by Buggie » Thu Sep 08, 2022 12:16 pm

Try crazy unicode dot.
www․nowhere

․

User avatar
Barbie
Godlike
Posts: 2481
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Disable auto link for any text starting with "www"

Post by Barbie » Thu Sep 08, 2022 12:52 pm

Buggie wrote:
Thu Sep 08, 2022 12:16 pm
․
Haha, nice workaround, thanks.

@Shade: Something like [noBBCode]…[/noBBCode] would of course be a cleaner solution.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

User avatar
Shade
Site Admin
Posts: 1435
Joined: Sun Jan 27, 2008 12:03 pm
Personal rank: Founder of UT99.org
Location: Germany

Re: Disable auto link for any text starting with "www"

Post by Shade » Thu Sep 08, 2022 9:29 pm

Barbie wrote:
Thu Sep 08, 2022 12:52 pm
@Shade: Something like [noBBCode]…[/noBBCode] would of course be a cleaner solution.
I tried finding an extension for that but couldn't find any. But maybe I didn't use the right terms for the search.
Maybe you have some luck: https://www.phpbb.com/customise/db/extensions-36

Btw, if you don't use any BBCode in your post at all, you can still check the box "Disable BBCode" for that post.

Buggie
Godlike
Posts: 1774
Joined: Sat Mar 21, 2020 5:32 am

Re: Disable auto link for any text starting with "www"

Post by Buggie » Thu Sep 08, 2022 9:32 pm

www.test
[hr][/hr][autm][/autm]
Post above with disabled bbcode. Link replacement it is not part of bbcode.[hr][/hr][autm][/autm]Also it is bug. Posts merged when bbcode disabled and not. So it goes to hell[hr][/hr][autm][/autm]"Do not automatically parse URLs" do the job.

User avatar
Barbie
Godlike
Posts: 2481
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Disable auto link for any text starting with "www"

Post by Barbie » Fri Sep 09, 2022 10:11 am

Buggie wrote:
Thu Sep 08, 2022 9:35 pm
"Do not automatically parse URLs" do the job.
That's what I needed. Thanks. IMO it should be enabled by default.
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

User avatar
Shade
Site Admin
Posts: 1435
Joined: Sun Jan 27, 2008 12:03 pm
Personal rank: Founder of UT99.org
Location: Germany

Re: Disable auto link for any text starting with "www"

Post by Shade » Fri Sep 09, 2022 10:47 am

Oh wow, I was blind. I never use these checkboxes. But glad that the option already exists. :lol2: