Adding Custom Hashtag Symbols

5 years 9 months ago #306133 by skilcher
Adding Custom Hashtag Symbols was created by skilcher
Is there a way to add a custom hashtag symbol? @ and # works as it should, I would like to add $ to the list because the site I'm developing is for an investment community. Example of use would be: $MSFT and would like that to be hyperlinked showing similar posts of that particular stock symbol on both GroupJive community and profile walls.

Thanks

Please Log in to join the conversation.

5 years 9 months ago #306152 by krileon
Replied by krileon on topic Adding Custom Hashtag Symbols
Not for CB GroupJive Wall, but it's possible for CB Activity. For CB Activity within CB Activity > Parameters > Activity > Parser set "Prepare Content" to "Enable". This allows Joomla content plugins to parse activity posts. Next install CB Replacer Bot, which is a Joomla content plugin for replacing inline text. You'll need to create the appropriate REGEXP to search for your strings and replace them. Aside from that you'd have to try acting on the following triggers in CB Auto Actions to extend the parsing in CB Activity and CB GroupJive Wall with your own.

CB Activity:
$_PLUGINS->trigger( 'activity_onParse', array( &$this, $ignore, $html ) );

CB GroupJive Wall:
$_PLUGINS->trigger( 'gj_onDisplayWall', array( &$row, &$menu, $group, $user ) );


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

5 years 9 months ago #306161 by skilcher
Replied by skilcher on topic Adding Custom Hashtag Symbols
Would you happen to have a detailed explanation of these steps? I'm not familiar with REGEXP and after installing the CB Replacer Bot, lots of perimeters that needs to be filled in.

Thanks

Please Log in to join the conversation.

5 years 9 months ago #306174 by krileon
Replied by krileon on topic Adding Custom Hashtag Symbols
Nope there's no examples for what you're wanting. You'll need to be familiar with REGEXP to implement what you're wanting. The below is a good place to start learning REGEXP.

www.regular-expressions.info/

I also personally use RegexBuddy, which helps a lot in creating and testing REGEXP.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.211 seconds

Facebook Twitter LinkedIn