Hi,
After a new group has been created (by another CB AutoAction), I want run a Auto Actions that add a default HTML content in the just created group about tab.
I think a CB Auto Action, type PHP, with trigger gj_OnAfterCreateGroup should have a code something like:
Code:
require_once( $_CB_framework->getCfg( 'absolute_path' ) . '/components/com_comprofiler/plugin/user/plug_cbgroupjive/cbgroupjive.class.php' );
$group = cbgjData::getGroups( array( array( 'grp_access', 'mod_lvl2' ), $user ), array( 'id', '=', (int) $grpid ), null, null, false );
$params = $group->getParams();
$content = '<p><h3>Hello world</h3>My <b>HTML</b> text</p>' ;
$params->set( 'about_content', $content );
$group->storeParams( $params );
But it doesn't work
I think I still miss something in the AutoAction code above. For example, will $grpid and $user work on their own, or should I first set them with extra PHP code?
Any help would be very appreciated,
Noa