Disable auto link for any text starting with "www"

Do you want to say something about UT99.org?
Post Reply
User avatar
Barbie
Godlike
Posts: 2792
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 »

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: 2698
Joined: Sat Mar 21, 2020 5:32 am

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

Post by Buggie »

when your www.nowhere then nothing wrong with that.

Code: Select all

[inlinecode]www.nowhere[/inlinecode]
User avatar
Barbie
Godlike
Posts: 2792
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 »

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: 2698
Joined: Sat Mar 21, 2020 5:32 am

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

Post by Buggie »

Try crazy unicode dot.
www․nowhere

․
User avatar
Barbie
Godlike
Posts: 2792
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 »

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: 1480
Joined: Sun Jan 27, 2008 12:03 pm
Personal rank: Founder of UT99.org
Location: Germany
Contact:

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

Post by Shade »

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.
UT99.org Discord Server: https://discord.gg/6CP2UjZ
UT Server Browser: https://ut99.org/servers
Buggie
Godlike
Posts: 2698
Joined: Sat Mar 21, 2020 5:32 am

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

Post by Buggie »

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: 2792
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 »

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.
Attachments
PHPBB-no-autolink.jpg
"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: 1480
Joined: Sun Jan 27, 2008 12:03 pm
Personal rank: Founder of UT99.org
Location: Germany
Contact:

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

Post by Shade »

Oh wow, I was blind. I never use these checkboxes. But glad that the option already exists. :lol2:
UT99.org Discord Server: https://discord.gg/6CP2UjZ
UT Server Browser: https://ut99.org/servers
Post Reply