BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: Limit groups per user #45788

    Hi Brajesh

    Wow… thank you for such a super fast response!

    That all makes perfect sense and yes, I was already thinking I might put a link elsewhere if there’s no other option.

    Many thanks and really appreciate your help as always.

    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Group Tabs Pro – modifying existing tab #45570

    Hi Ravi

    I’m pleased to say that seems to work perfectly… and I’ve learnt something too!

    With very many thanks to both you and Brajesh.

    Warm regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Group Tabs Pro – modifying existing tab #45542

    Hi Brajesh

    Thank you for your thoughts… and you’re right (of course ;-)), I now realise that the code I was using to remove the tab added by Events Manager wasn’t actually working.

    The code I was using was an adapted version of something I’d found here ie.

    function buddydev_custom_disable_group_events() {
    
    	if ( ! bp_is_group() ) {
    		return;
    	}
    	$group_id = bp_get_current_group_id();
    	$user_id  = get_current_user_id();
    
    	bp_core_remove_subnav_item( groups_get_current_group()->slug, 'events' );
    }
    
    add_action( 'groups_setup_nav', 'buddydev_custom_disable_group_events' ); 

    Unfortunately, it seems that Events Manager doesn’t use ‘groups_setup_nav’ but instead runs the following –

    add_action( 'bp_init', array(&$this, 'setup_group_nav') );

    from within its own Events Manager component.

    I do appreciate this is probably straying rather far into custom coding (and I’m personally at a loss as to how I’d remove such an action) so I guess in this case I’d better settle for the “simple” (if less elegant) solution of using a different slug… well.. unless you have any better suggestions.

    Warm regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Group tabs #45514

    Hi Brajesh

    As it happens, something along the lines of your suggestion had already crossed my mind 😉

    I always like to try and do things the right/clean way but in this case, it does seem that is the only way… and at least now I know I really was trying to achieve the impossible with the methods I was using.

    How strange that Buddypress doesn’t handle group navs in the same way as profile navs.

    Thank you again for your help.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Group tabs #45512

    Hi Brajesh

    Thank you for getting back to me so promptly.

    Yes I guess I do mean as in the User profile where I’ve successfully created tabs with sub navs in the past. Are you saying that Group profiles don’t work the same, even though you can still use the same (bp_core_new_subnav_item) function for the “top level” tab?

    I do have access to your Group Tabs Creator (although I might need to renew to update to the latest version) but are you suggesting that can create with code what can’t be achieved in a “standard” way ie. a new group tab with two sub navs?

    With many thanks again.
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Group tabs #45508

    Oops… don’t think I can edit the above but the “parent slug” example above should actually have been the parent URL and read as follows – groups/group-name/events…

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Filtering activity feed in BuddyBoss #45438
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: [Resolved] Filtering activity feed in BuddyBoss #45435
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: BuddyBlog Pro maybe(?) #45421

    Thank you Brajesh and your thoughts do help. The (non-Buddypress) site my client is currently using requires that users post all their content (blog posts, events) within their chosen group and I’ve been attempting to replicate that but I’m staring to realise that (for the reasons you mention, amongst others) it may be necessary to “re-educate” users to post via their personal profiles and/or then provide a way of associating posts with a group where possible…

    Thank you for helping me think things through 😉

  • Participant
    Level: Master
    Posts: 279
    NikB on in reply to: BuddyBlog Pro maybe(?) #45397

    Thank you again Brajesh although that’s a shame…

    Given that content creation is such a fundamental part of WordPress, I’m actually quite surprised how hard it’s proving to find a plugin that handles this for Buddypress groups. Maybe I’ll have to have a go at writing something myself… and/or maybe I’ll find there are challenges involved that will explain why others haven’t 😉

    Regards
    Nik