BuddyDev

Search

[Resolved] Buddypress Group Tabs Creator Pro showing tab to everyone instead of admins

  • Participant
    Level: Initiated
    Posts: 4
    tse11 on #20658

    Hi there,

    I just purchased this plugin and it is exactly what I’ve been looking for, however, I am trying to hide the tab to only group admins and when I select this option, I am still able to see the tab even if I’m logged out in another browser. Is there something I’m missing, or is this a known issue?

    Also, I was wondering if there was any way to make the TAB LINK open in a new window when clicked on?

    Thank you in advance for your help!

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #20659

    Hi,
    Welcome to BuddyDev and thank you for using the plugin.

    I am sorry for the inconvenience with the visibility. We had a bug on Add New Tab which caused it.

    I have fixed and uploaded a new version

    https://buddydev.com/plugins/buddypress-group-tabs-creator-pro/

    Please upgrade and the visibility will work.

    For opening in new tab:- The link generation is managed by BuddyPress, so it is difficult for us to manage the property.

    There are solution though. If you know the nav items you want users to open in a new browser tab, we can use javascript to inject target=_”_blank” to the links to force it open in new tab.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    tse11 on #20667

    Thank you very much, that looks like it is working now!

    Yes, I know which link (it’s only one) that I need to open in a new window. Can you please let me know where I can modify that? Thanks again.

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #20681

    Thank you.

    Here is the code that opens all group tabs in new browser tab.

    
    jQuery('body.single-item.groups .item-list-tabs a').attr('target', '_blank');
    
    

    You need to put it in the theme’s js file.

    WE can modify the above code to filter links based on id or classes. Please share me either the css id or css classes for the nav items and I will assist further.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    tse11 on #20702

    Hi Brajesh,

    Thank you for your help! I attempted to place your code in my theme’s javascript, but I have several files in my theme’s js folders and cannot find the right place to put it.

    Also, the ID class that I’d like to open the tab in a new window is “studio.”

  • Participant
    Level: Initiated
    Posts: 4
    tse11 on #20703

    I am also seeing another issue: I have changed the “Members” tab to “Followers” and when I changed that the member count on the groups are not displaying there.

    Please see images to know what I am referring to:

    https://ibb.co/w0yX5CC

    https://ibb.co/wcdqNRS

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #20707

    Hi,
    The issue with count was a possible degradation for the update label. I have fixed it. Will be releasing an update later today and write back.

    For adding the js, you can use the “#studio” as

    
    jQuery('body.single-item.groups .item-list-tabs #studio').attr('target', '_blank');
    
    

    Assuming the id is for anchor.

    For placing the js, pleas ask the theme developer if they have provided a way(most themes do it in child theme custom js file) or you can use a plugin like
    https://wordpress.org/plugins/custom-css-js/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #20715

    Please upgrade to 1.0.7
    https://buddydev.com/plugins/buddypress-group-tabs-creator-pro/

    It supports the counts in labels. The counts will be preserved.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    tse11 on #20734

    Thank you very much, Brajesh! The new version has fixed that issue and I was able to find the place to put the js code for opening a link in a new window as well!

    I am very impressed with the support here…thanks again!

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #20748

    Thank you for the kind words.

    Have a great day.

    Regards
    Brajesh

The topic ‘ [Resolved] Buddypress Group Tabs Creator Pro showing tab to everyone instead of admins’ is closed to new replies.

This topic is: resolved