Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Sidebar Login” – How to modify WordPress-Plugin for Buddypress

  • Avatar of zeitweise
    zeitweise
    Participant

    @zeitweise

    Hi there,

    I have installed the WordPress Sidebar Plugin” in my Buddypress Installation. It worked fine. I only have one question:

    Once logged in you get three administrative Links where the login form was:

    - Dashboard

    - Profile

    - Logout

    “Profile” however links to buddypress/wp-admin/profile.php while I would like it to link to the Buddypress member profile page

    /buddypress/members/myusername/profile

    This is the code in sidebar-login.php:

    add_option('sidebarlogin_logged_in_links', "<a href="".get_bloginfo('wpurl')."/wp-admin/">".__('Dashboard')."</a>n<a href="".get_bloginfo('wpurl')."/wp-admin/profile.php">".__('Profile')."</a>",'no');

    Can anybody help me find out what I need to correct in this code? That would be very nice!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    get_bloginfo(‘wpurl’).”/wp-admin/profile.php

    should be replaced with a call to: bp_core_get_userurl($bp->loggedin_user->id) which is the url to the currently logged in user. You’ll have to declare ‘global $bp;’ someplace before that in the code.

    Avatar of Kelly Brindle
    kbrindle2002
    Participant

    @kbrindle2002

    Being a nub at anything PHP, is there an example of this somewhere?

    Kel

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.