Please Log in to join the conversation.
Please Log in to join the conversation.
That very much means you should hire a freelance developer to build out an extension that does fit your needs. It would likely be easier to modify a business directory extension than CB Activity in this case.I already reviewed these extensions a couple of years ago but we have very specific requirements and none of them would fit.
Please Log in to join the conversation.
if ( ( $variables['var2'] !== 'cbactivity' ) || ( ! $variables['var4'] ) || ( ! isset( $variables['var4']['action'] ) ) ) {
return;
}
$queryAction = ( $variables['var4']['action'] ?? '' );
if ( $queryAction !== 'activity' ) {
return;
}
$queryFunc = ( $variables['var4']['func'] ?? 'show' );
if ( $queryFunc !== 'show' ) {
return;
}
$queryId = (int) ( $variables['var4']['id'] ?? 0 );
if ( ! $queryId ) {
return;
}
$activity = new \CB\Plugin\Activity\Table\ActivityTable();
$activity->load($queryId);
if ( ! $activity->getInt( 'id', 0 ) ) {
return;
}
$params = $activity->params() ;
$params['activ'] = htmlspecialchars_decode($params['activ']);
$title = !empty($params['activ']) ? JFilterOutput::stringURLSafe($params['activ']) .'-' : null;
$variables['var3'][] = $title.$queryId;
unset( $variables['var4']['action'] );
unset( $variables['var4']['func'] );
unset( $variables['var4']['id'] );
Please Log in to join the conversation.
$variables['var3'][1] = $variables['var3'][1] . '-CUSTOM_TITLE_HERE';
$variables['var3'][] = 'CUSTOM_TITLE_HERE';
Please Log in to join the conversation.
Please Log in to join the conversation.