There are a couple ways you can add new entries. You can directly insert a new entry into the database as it's specifically designed to be generic. You can use the below method being used in the plugin file (requires CB API to be present and plugin loaded).
Code:
$activity = new cbactivityActivity( $_CB_database );
$activity->set( 'user_id', (int) $user->get( 'id' ) );
$activity->set( 'type', 'profile' );
$activity->set( 'subtype', 'registration' );
$activity->set( 'title', 'has joined [sitename_linked]' );
$activity->set( 'icon', 'nameplate' );
$activity->set( 'date', cbactivityClass::getUTCDate() );
$activity->store();
Below is similar to the above, but it uses data API to grab an object (empty or otherwise).
Code:
$activity = cbactivityData::getActivity( array( 'id', '=', $id ), null, null, false );
$activity->set( 'user_id', (int) $user->get( 'id' ) );
$activity->set( 'type', 'profile' );
$activity->set( 'subtype', 'registration' );
$activity->set( 'title', 'has joined [sitename_linked]' );
$activity->set( 'icon', 'nameplate' );
$activity->set( 'date', cbactivityClass::getUTCDate() );
$activity->store();
I recommend reviewing plugin.cbactivity.php to see various additions. There are over 400 icons powered by
glyphicons.com/
. You can download the free package to see what they all look like. The icon name you'd use is just the name of the icon (e.g. "nameplate").