hey .. since the buddypress v12.000 is the counter everytime on “0”.. have you an idea, what is the problem ?
here is the code:
Please open mediapress/modules/buddypress/groups/mpp-bp-groups-group-extension.php
In that file, on line 29, just before args, please add the following codeif ( bp_is_group() ) {
$count = mpp_get_gallery_count( array(
‘component’ => ‘groups’,
‘component_id’ => groups_get_current_group()->id,
) );
} else {
$count = 0;
}and then in the args, on line 29, Please change this
‘nav_item_name’ => __( ‘Gallery’, ‘mediapress’ ),
to
‘nav_item_name’ => sprintf( __( ‘Gallery <span>%d</span>’, ‘mediapress’ ), $count ) ,thx for help…
Hi Maurice,
Sorry about that. The problem is BuddyPress 12.0 has messed up the routing leading to a lot of trouble. The official release specified using BP classic will keep back compat. It seems from your reply, that is not true either.Please allow us this week to work on MediaPress. @ravisharma will be back to work tomorrow and we are going to work on MediaPress for next couple of days.
Regards
BrajeshHello Maurice,
Thank you for your patience. Please let me know which template pack you are using i.e. BuddyPress Legacy or BuddyPress Nouveau. You can check this under Settings > BuddyPress > Options > BuddyPress Core > Template Pack in the backend.
Regards
RaviHello Maurice,
Please revert the changes you have made in the code and use the code from the following gist repo.
https://gist.github.com/raviousprime/df00ef5d45426c7766833d40c8bf34f6
Please let me know if it helps or not.
Regards
Ravi
You must be logged in to reply to this topic.