![Smile :)](./images/smilies/icon_e_smile.gif)
Maybe it's possible to add a parameter to the search to only show exact matches
Same problem Wodan. You can't search for any special characters.Ray wrote: actually doing your own tagging system and use the search-function for it isn't that easy in phpbb, because search replaces any non-alphanum with spaces (i.e. word seperator).
If this wasn't the case it would be easy (I guess) to do an autocorrection for anything starting e.g. with # with a link to searchresults for that tag.
Code: Select all
a.hashtag::before {
content: "#";
}
Well, does the current situation change links that have anchors in them?
Code: Select all
#ifndef TESTING_H
#define TESTING_H
...blah...
#endif
Code: Select all
$text= preg_replace_callback( '/(^|style="[^"#]+|[^\\s]*[\\s]+|>)#([\\p{Lu}\\p{Ll}\\p{N}\\w\\d]+)\\b/um', 'hashtag_callback', $text );
Fixed that, but not historically. I cheated by replacing # with ⌗ (viewdata square) in the url shortener code. But that is invoked upon save of a post, not render.Rimrul wrote: It also affects urls with anchors, i.e.
https://www.phpbb.com/community/viewtop ... #p13329580
Could you maybe just make the URL get shortened to something like this (no spaces around the ellipsis)? https://www.phpbb.com/community/viewtop…#p13329580webwit wrote:Fixed that, but not historically. I cheated by replacing # with ⌗ (viewdata square) in the url shortener code. But that is invoked upon save of a post, not render.Rimrul wrote: It also affects urls with anchors, i.e.
https://www.phpbb.com/community/viewtop ... #p13329580
Ratfink wrote: Okay, here's my proposal. Make the tags by writing a # before the word in your post as it currently works, but hide the # when actually displaying the post. That would fix my major complaint, which is that all those # characters are an eyesore.
Hell, if people actually want to see them, then do what I said above, but give the tag links a class like .hashtag, and add a CSS rule like:
[…]
Then I could remove them with a custom stylesheet, but everyone who isn't a crotchety young man can leave them in place.
I see your point, but the # is also an indicator that it leads to a search of the keyword following it. Otherwise it could be any link. It's also now sort of a standard interface element to denote such links, so to change it to a grey link or something would not work either. It's all or nothing basically. If you or some other club member feels strongly about it, start a club vote, "hash tags, yes or no."