Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Hashtag plugin
jaspervdmeer
New
hello,
I am using the Hashtag on a financial forum and I was wondering if it's possible to change the actual # of a hashtag to a $, so it becomes a "cashtag". Is there any way this can be edited somewhere?
2
Comments
Funny idea! I cannot answer for this plugin, but I would guess that it at least in parts rely on Vanillas hashtag features. For that you would have to create a plugin with a custom MentionsFormatter (since hashtag formatting is handled in class
Format
s methodmentions()
.That would have to look similar to this (untested):
I'n not sure if that would be enough already. The hashtag functionality isn't made to be configurable in concern to which character it uses. There might be more tweaks needed
Oh that's plenty of code for me to work with. Thanks for taking the time to create this snippet and its explanation. I'll try to implement it and will let you know what comes out of it!
Thanks!
it relies heavily on the Tagging plugin for a lot of its logic. It's a required plugin to be activated before activating this one.
Yes, indeed I relied and created dependency on the Tagging plugin. I am traveling and haven't looked at my code but I think that if you really want to implement your change you'd have to change both plugins... Good luck and thank you for trying my plugin.