Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting data for nav and subnav links for messages

  • @tomstaleen

    Participant

    Hello all,

    I am trying to duplicate the navigation for profile pages (activity, profile, messages, friends, ect.) for my theme. I managed to get everything set up using the global variable $bp with $bp->bp_nav and bp->bp_options_nav in foreach loops. However, it seems that the messages navigation along with its sub navigation doesn’t work outside the profile page while the other navigation parts work fine across my wordpress. I did some soul searching with the plugin and found that removing if ( ! bp_is_my_profile() ) return; lines from bp-messages-loader.php does enable access to the messages array values in $bp. I am not sure if this is necessarily a bug or a security precaution or whatever.

    Is there a more efficient way to get each navigation values or accessing the data through the global variable truly the best way to go? I personally detest abusing global variables for such madness, but it does get the job done quickly.

    Thanks! (:

Viewing 3 replies - 1 through 3 (of 3 total)
  • @djpaul

    Keymaster

    I’ve happened to done some work on this for BuddyPress 1.7. See the commits and discussion on https://buddypress.trac.wordpress.org/ticket/4661

    You’ll have to wait for 1.7 for this to work. I can’t guarantee that making those changes on a 1.6 install will work or be safe: YMMV.

    @djpaul

    Keymaster

    @tomstaleen

    Participant

    Thanks for the response Paul. Looks like great news to get dedicated functions for it. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting data for nav and subnav links for messages’ is closed to new replies.
Skip to toolbar