Adding Custom Hashtag Symbols

4 months 4 weeks ago #306133 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
4 months 3 weeks ago #306152 by krileon
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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
4 months 3 weeks ago #306161 by skilcher
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
4 months 3 weeks ago #306174 by krileon
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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
Moderators: beatnantkrileon
Time to create page: 0.393 seconds
Facebook Twitter Google LinkedIn