CB Activity 6.x mentions usage is shown in my blog update below.
www.joomlapolis.com/forum/6-news-and-publicity/244334-what-am-i-working-on?start=30#331572
It's the same as any social media site. Type @, start typing a username or name, and it will autocomplete for you. Click the mention and it will then insert into the post. When you save the post it will store that the user was mentioned by that activity entry in a new database table that only has activity_id | user_id.
That would mean that if I mention a combination of firstname lastname not yet registered, it will be displayed as a mention when this user will register to the website ?
For the legacy usage that will work and is currently available now, but for CB Activity 6.x mentions behavior no it will not and in CB Activity 7.x the legacy usage will be removed.
You should keep in mind that CB Activity provides a trigger for its parser. You could quite literally implement whatever parsing behavior you want for posts. The trigger is as follows.
Code:
$_PLUGINS->trigger( 'activity_onParse', array( &$this->parsed, $this->string, $this->words, $this->source, $this->stream, $ignore, $html ) );
So you could in theory make your own shortcode for doing exactly what you want it to do. All of which can be done from CB Auto Actions. Simply add whatever parsing behavior you like against var1. var2 is the original string. var3 is the string split into words. var4 is the source object (usually just the activity or comment object and can be NULL). var5 is the stream object (can be NULL). var6 is an array of parsers being set to ignore. var7 is whether HTML is allowed or not.
Example as follows.
Global
Triggers: activity_onParse
Type: Code
User: Self
Access: Everybody
Action
Method: PHP
Code:
Code:
$variablies['var1'] = str_replace( 'TESTING?', 'SUCCESS!', $variablies['var1'] );
Parameters
References: Variable 1
The above will replace TESTING? with SUCCESS! in any post. Use whatever PHP methods you like here to replace things. Most replaces built into CB Activity are using str_replace or preg_replace_callback.