BuddyDev

Search

[Resolved] Tabs Creator Pro, 404 not found

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #17633

    Hi Brajesh, I am having trouble with the Private Message component, when my Message tab is enabled, for hiding subnavs ‘starred’ and ‘compose’ tabs.

    Clicking ‘Private Message’ next to the profile, returns a 404 page not found. this is only a problem when creating a new private message , not for existing messages

    Here is the settings:

    Is enabled? x
    Only enabled tabs will be visible. x
    Set it as default component?
    Are we modifying predefined tab? x
    Are we modifying a tab added by BuddyPress or some other plugin? x

    Add this tab for? All Members
    Tab Visibility Anyone

    Same settings for Subnav 1 and 2
    except visibility: Administrator

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #17635

    I have located the issue.

    When the Compose sub nav tab is hided (enabled), the Private Message button does not work.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #17641

    Hi Carsten,
    It is expected.

    BuddyPress Private message buttons are hard coded to http://example.com/members/messages/compose url. If you remove the ‘compose’ sub tab, that link breaks.

    A solution is to remove the private message button too if removing compose screen.

    Regards
    Brajesh

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #17646

    But you would not expect that just changing the tab visibility would break the link, but it does, why?

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #17647

    Hi Carsten,

    The problem is link needs to be accessible/available to the user. When you change tab’s visibility, the links become unavailable for certain users and that’s why the private message button gets broken.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #17648

    In other words, I mean the screen the button links to, becomes unavailable for certain users. That’s why any linking pointing to these screen become broken.

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #17649

    I see, thanks, I expected tab visibility just to be CSS

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #17650

    No, It does not uses css. It removes them completely using

    
    
    bp_core_remove_nav_item();
    bp_core_remove_subnav_item()
        
    

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved