Disable auto link for any text starting with "www"

Do you want to say something about UT99.org?
User avatar
Barbie
Godlike
Posts: 2911
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
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3130
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: 2911
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.
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3130
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: 2911
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.
"If Origin not in center it be not in center." --Buggie
User avatar
Shade
Site Admin
Posts: 1481
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 »

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: 3130
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: 2911
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.
You do not have the required permissions to view the files attached to this post.
"If Origin not in center it be not in center." --Buggie
User avatar
Shade
Site Admin
Posts: 1481
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 »

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