Hi I have recently used Watch Words Replace function as the old theme component Linkify words
This works great. However I have been notified by a user he receives a warning nag pop up that the link has already been used in a topic. As the member is not posting.a link. It is a system function. The user should not have this inconvenience.
Iâve just checked on my test site, and while it shows a match&replace in the test box, in a ârealâ post it does not make the replacement. (watched word to replace = *one)
Ah, that may be why. Iâm on tests-passed, and that one gets more frequent updates.
Though I notice that your link only targets a portion of the username/word rather than the whole lot as mine did. I wonder if youâve also got âwatched words are regular expressionsâ set as well? That may have an effect.
I realized that the problem was when watched_words_regular_expression was enabled. I think I have a better fix for this problem in place and it will be available in tests-passed once the PR is merged:
Without watched words regular expressions set it actually does that automatically. I had to add wildcards * to catch a word that was part of a username/longer word.
With the regular expressions you can do it with boundaries (\b). So \bsteam\b would only catch âsteamâ and not âsteamVRâ or âsomethingsteamâ.
I can replicate the partial substitution if I have watched words regular expressions set in the admin settings, so it may be worth a check?
Stable only has Replace no separate link setting in Watched Words.
With or without regular expression turned on the replace watched words doesnât work with the /bword/b. In fact you need to add the /bword/b for word to be recognized instead of just word
Test Passed works without needing the /bword/b in Link watched words.
So looks like just need to wait for Tests Passed to roll out to Stable.
Ah, I thought it was only the @mentions fix you were missing. Oh well, the Watched Words revamp sounds like itâs got a few useful tweaks for you when you get it. Hopefully it wonât be long.
Indeed can play with some of the new stuff on our test passed testing server. Unfortunately our main is using stable. There are a number of improvements that I canât wait to be available on stable branch.