-
Babak Fakhamzadeh replied to the topic How to attach custom activities to groups? in the forum Creating & Extending 5 years, 4 months ago
I can call a custom template for my custom page like so:
function my_new_group_show_screen_content() {
echo bp_buffer_template_part( 'groups/group-custom', null, false );
}Then, just for testing, on that template, I record a visit to that page as an activity, like so:
$defaults = array(
[Read more]
'user_id' => '1',
'action' => 'A user just… -
Babak Fakhamzadeh replied to the topic How to attach custom activities to groups? in the forum Creating & Extending 5 years, 4 months ago
A first step could be to add a custom tab on the groups pages. This works for that:
This worked for me:
function setup_group_nav(){
[Read more]
global $bp;
/* Add some group subnav items */
$user_access = false;
$group_link = '';
if( bp_is_active('groups') && !empty($bp->groups->current_group) ){
$group_link =… -
Babak Fakhamzadeh replied to the topic Add Custom Tab to Groups Directory in the forum Creating & Extending 5 years, 4 months ago
I looked at the code for the plugin ‘Events Manager’, and managed to put together the following which worked for me:
function setup_group_nav(){
[Read more]
global $bp;
/* Add some group subnav items */
$user_access = false;
$group_link = '';
if( bp_is_active('groups') && !empty($bp->groups->current_group) ){
$group_link =… -
Babak Fakhamzadeh replied to the topic Add Custom Tab to Groups Directory in the forum Creating & Extending 5 years, 4 months ago
I also just discovered this 🙁
-
Babak Fakhamzadeh started the topic How to attach custom activities to groups? in the forum Creating & Extending 5 years, 4 months ago
I have a custom post type,
my_cpt
.
I can make creations of posts of type my_cpt visible in activity feeds with this (in bp-custom.php):add_post_type_support( 'my_cpt', 'buddypress-activity' );
This does not make this type of activity available when creating a new activity. How can I make this happen, in the same way that I can select a group…[Read more]
@mastababa
Active 1 month, 2 weeks ago