WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: BuddyPress Admin Bar Mods] Dashboard link (8 posts)

  1. Nicolas Messer
    Member
    Posted 4 years ago #

    Looking at what you plan to add to this Plugin I'm excited to use it for one of my dev projects. I was having one problem with it. My WordPress 2.9.1 install and BuddyPress 1.2 work great together but your Dashboard link sends me to the wrong destination. I'm running my WP install in a subfolder ... could this be part of the problem?

    http://wordpress.org/extend/plugins/buddypress-admin-bar-mods/

  2. Seth Carstens
    Member
    Posted 4 years ago #

    Ah yes, and I haven't tested it on my subfolder install yet. I'll make sure the next release has this fixed, hopefully released sometime this week with some other options I want to start on.

    Thanks for the input.

  3. Nicolas Messer
    Member
    Posted 4 years ago #

    Thanks for the work! I will be testing it and let you know how things work.

  4. balaianu
    Member
    Posted 4 years ago #

    I found that if my WP installation is in a subfolder of the root directory (like: http://website/v1 ) the dashboard link doesnt point to the right destination (http://website/v1/wp-admin), but points to the standard link (http://website/wp-admin)

    Please check into this.

  5. Seth Carstens
    Member
    Posted 3 years ago #

    With wordpress 3.0 finally out, I'll probably start development on this plugin again. I've developed several other plugins now so I'm pretty confident I'll take care of the bugs in 1 fell swoop in the next update in September.

  6. erikshosting
    Member
    Posted 3 years ago #

    I wrote up a tutorial on adding menu items, drop down menus, & drop downs with flyouts Via a plugin file meaning its upgrade safe.
    Could be useful while this plugin is still being developed..

    The link is here:
    http://erikshosting.com/wordpress-tips-code/adding-custom-menus-links-flyout-dropdowns-to-the-buddypress-bar/

  7. ptroxler
    Member
    Posted 3 years ago #

    ha ... this is still broken -- and would be so *easy* to fix in the first place:

    look for this part of the code:

    // **** "Current Site Admin" Menu (visible when not logged in) ******** //
    function bp_adminbar_currentsite_menu() {
    	global $bp; ?>
    	<li class="align-right" id="bp-adminbar-currentsite-menu">
    		<a href="/wp-admin/">Dashboard</a>
    	</li>
    	<?php
    }

    and replace
    <a href="/wp-admin/">Dashboard</a>
    by
    <a href="<?php bloginfo('wpurl'); ?>/wp-admin/">Dashboard</a>

  8. erikshosting
    Member
    Posted 3 years ago #

    drop some php around it so it isn't visible to non-logged in users, or subscribers. There is already a login button on the bp bar anyway..

    function bp_adminbar_currentsite_menu() {
    	global $bp;
    if ( is_user_logged_in() && (current_user_can('edit_posts'))) { ?>
    	<li class="align-right" id="bp-adminbar-currentsite-menu">
    	<a href="<?php bloginfo('wpurl'); ?>/wp-admin/">Dashboard</a>
    	</li>
    <?php
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Topic