Hashtags
[deleted]
010101 It does solve my issue, when i click on a hashtag now it goes /forum, but it the link does not work.
Flarum \ Http \ Exception \ RouteNotFoundException
/d/all
`switch ($routeInfo[0]) {
case Dispatcher::NOT_FOUND:
throw new RouteNotFoundException($uri);
case Dispatcher::METHOD_NOT_ALLOWED:
throw new MethodNotAllowedException($method);
case Dispatcher::FOUND:
$handler = $routeInfo[1];
$parameters = $routeInfo[2];
return $handler($request, $parameters);
}`
Hi, is possible to get list (links) to the hashtags? Because I'm looking for an extension to add date to a thread, and I have thought maybe to add a hashtag in the title, to show date of expiration.
For example. Title: Contest XYX #06/06/2020
And then I search for all threads with this hashtag (date of expiration).
Or maybe will I have a disaster, with 50000000 hashtags? :/
debynory as far as I know, all this extension does it turn hashtags into search links. Nothing else.
- Edited
That is correct. This is about as simple as a hashtag extension can get. It looks for a “#” and turns the following word into a link which searches the forum when clicked.
I think the regular expression used is beautiful because I’ve seen very few cases where it does not work and it’s a very short regular expression. It’s pretty cool.
So, a more experienced developer could use the regular expression and some of the JavaScript from this extension, and then do whatever needs to be done to ensure the hashtag is logged in the database and that popularity is tracked. It’d be a “next level” extension for Flarum. We have mentions. Why not have a full Twitter like hashtag system?
- Edited
huuduy216 Unless you deactivated it, it’s not loading. There would be some JavaScript at the end of you site’s source code. Try deactivating and reactivating and delete all caches and cookies. Do you use Cloudflare or anything else which could be caching?
Also try php flarum cache:clear
.
huuduy216 discuss your issue there https://discuss.flarum.org/d/4699-money-extension as that's the extension you are probably referring to
[deleted]
@010101 do you consider fixing my issue at sometime?
[deleted]
010101 Works, thank you.
- Edited
Version 2.1 released
- Now this extension works no matter where your forum is installed out of the box with no manual changes. Thanks to @JasperVriends letting me know that
app.forum.attribute('baseUrl')
gets the forum's base URL.
- Edited
Thanks for the great extension!
But it refuses to work for me (
Yes, I updated the cache by all means, cleaned the browser, turned the extension on and off.
But the text after the #symbol is also text.
How can you get the extension to work?