Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'change buddypress menu'

Viewing 25 results - 476 through 500 (of 511 total)
  • Author
    Search Results
  • #48215
    Ted Mann
    Participant

    If anyone is looking to hack the adminbar so that when users log in, they stay on the current blog they’re on, just edit the bp-core-adminbar.php file and change the reference to $bp->root_domain, under the “log in and sign up links” section, to $current_blog. Also, I took out the redirect as well. So, my login widget now looks like this:

    // **** "Log In" and "Sign Up" links (Visible when not logged in) ********
    function bp_adminbar_login_menu() {
    global $bp;

    if ( !is_user_logged_in() ) {
    echo '<li class="bp-login no-arrow"><a href="' . $current_blog . '/wp-login.php">' . __( 'Log In', 'buddypress' ) . '</a></li>';

    // Show "Sign Up" link if registrations are allowed
    if ( get_site_option( 'registration' ) != 'none' ) {
    echo '<li class="bp-signup no-arrow"><a href="' . bp_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
    }
    }
    }

    #47331
    Jeff Sayre
    Participant

    catincoach-

    This thread is very outdated. A lot has changed in BuddyPress since this thread last had activity 3 months ago.

    If you are simply looking for where you can change the text of the menu buttons “Home”, “Blog”, “Members”, “Groups”, “Blogs”, then it is found in the header.php file of both the home and member themes.

    #47219
    carpconnect
    Participant

    Ok i have update to new buddypress which i see changes the method used to set size.

    Ok i have worked out why they are different, the ‘Me’ and ‘My Tags’ menu text are just text whereas the additional menu text that appears when selecting edit profile are links.

    The menu text and links font are not the same, some people may be happy with this but personally i would prefer all text whether it heading or heading/link to be the same if it is in the same location, ie menu bar.

    It looks like this something i will have try and change by creating a new style, though would have preferred this to be part of BP.

    cheers

    #47208
    lynton
    Participant

    Sorry i didnt make it too clear the title of my home page currently reads ” firevine social media marketing network” in the title bar i have decided to change the nature of my site so that title no longer fits, is there any way to change this or would i need to re-install buddypress ?

    i have not yet found a way to change it from my admin menu

    #46761
    devweb
    Participant

    Thanks Manoj,

    Imagine the standard Buddypress layout. Now go to friends on the left menu. I have changed this page to just have the search feature with ‘members’ selected as the search option.You type in a member, it searches and returns the ‘member listing’ and AJAX powered member search feature.

    This is exactly what I want, however, once you search, in the middle bar, default member template, where additional options are listed Eg. My friends, friend requests etc ‘Profile’ ‘Friends’ and the other ‘main’ titles appear with the following URLs:

    http://address/member//profile

    Any ideas howt o get rid of this?

    Thanks again

    #46526

    In reply to: Change Member Theme

    Jeff Sayre
    Participant

    I have read that I should follow the “BuddyPress” option under “Site Admin” menu, in order to change the member theme.

    That is outdated information. If you are using BuddyPress 1.0 and have the bpmember folder installed in /wp-content/bp-themes/, then what I described is correct.

    Log in to WPMU’s backend as site admin, then go to “BuddyPress > General Settings > Select theme to use for BuddyPress generated pages”. After selecting a member theme, make sure you hit the “Save Settings” button.

    #46519

    In reply to: Change Member Theme

    budhajeewa
    Participant

    @ Jeff Sayre :

    Yes, but the thing is, I have read that I should follow the “BuddyPress” option under “Site Admin” menu, in order to change the member theme.

    I am still unable to change the user theme.

    How can I change the member theme ?

    #46469

    In reply to: Change Member Theme

    Jeff Sayre
    Participant

    There is no option called “BuddyPress”, under “Site Admin” menu.

    That is correct.

    BuddyPress has its own menu grouping found at the very bottom of the menu group column. It is just below the Settings menu grouping.

    #46140

    In reply to: Login bar

    jfcarter
    Participant

    @Staceyk18,

    If you mean the buddybar (grey) at the top of the page, you can change it by going into:

    wp-content>plugins>buddypress>bp-core>bp-core-adminbar.php

    and

    wp-content>plugins>buddypress>bp-core>css>admin-bar.css

    If you want to add menus to the login bar, you’re better off setting up a bp-custom.php, this thread will have details on what to do (read thru the whole thread):

    https://buddypress.org/forums/topic.php?id=2186#post-12003

    #44992

    Firstly I notice that your Avatar cropper javascript is failing on registration. Also looks like bits of your site are missing, and messing with the BuddyBar (sub-sub menus aren’t appearing on hover.)

    Otherwise, it’s working the way you have it setup. If what you’re asking is “why doesn’t my home theme look like testbp.org” it’s because you didn’t change your active home theme in WordPress. :)

    Not sure what’s up with your member theme though. Might be missing some files or have some funky CSS or JS somewhere. Haven’t really looked into it for you.

    Paul Wong-Gibbs
    Keymaster

    Lo.

    > Why is it when I add a page to my WordPress site, it doesn’t show up in my BuddyPress navigation?

    Because that’s just the way the default home theme is written. The items listed on that menu aren’t ‘Pages’ in the WordPress sense, anyway, so it makes little sense for the default, out-the-box BuddyPress theme to do that.

    The bit of code you’d need to change (or to add in your custom/duplicate theme) is in header.php. Where you see:

    <ul id="nav">

    Add this underneath:

    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    Documentation for that function is at https://codex.wordpress.org/wp_list_pages

    #44617

    In reply to: first things first

    Maythil
    Participant

    Thanks for a detailed reply, David.

    No, I am not using Mac.

    Yes, I want the width to be 800px (in fact, less than that, to get rid off the horizontal scroll bar at the bottom of my screen).

    I was on a trial-and error spree at a testing site, and was able to found the differences you have mentioned and have reached the same conclusion.

    “the difference between profile pages and other pages seems to be that profile pages have two left sidebars with a fixed width of 138px (#optionsbar and #userbar) while the other pages have a single right sidebar (#sidebar) without any width defined (i.e. 100%). Meanwhile, #main is used on all pages and has a min-width of 680px. So unless you change some CSS code… the profile pages will always be at least 956px wide.”

    Yes I have tried the max/mini width in the base.css, making both 800px, and it works on the main page and the some other pages as well (that is, under the second horizontal menu). It should work (after all IE6 displays all pages in 800px).

    I am not sure how atentive I was to #main. I must try it. I must say your reply has given me some hope and a better idea about things, but I will add that BP still has a bug. On buddypress.org itself you can see that: the header or admin bar is fixed at 800px; it can’t adjust its width with that of the rest of the site. It works well with Firefox if I use: #wp-admin-bar { width: 960px !important; } … but it should work automatically.

    I am also testing Elgg; several adjustments are pretty easier there compared to BP, but I perfectly agree with you: “It has some features I need that BP currently lacks… but BP is clearly much superior otherwise”. in addition BP has a very pleasant, elegant look. This is why I want to stick with BP and spend hours on my WPMU site.

    Regards.

    #44573
    Ezd
    Participant

    Socialpreneur: Ok thanks.

    Would I have to edit the header.php for both the home and bpmember theme? So I would add the same code to both files?

    <div id="header">
    <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>

    <ul id="nav">
    <li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php bp_home_blog_url() ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>

    <?php if ( function_exists( 'groups_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php do_action( 'bp_nav_items' ); ?>
    </ul>
    </div>

    If I wanted to add another menu-link would I have to add something like this to both header.php files? Saying the new page was called ‘pagename’:

    <?php if ( function_exists( 'bp_pagename_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_PAGENAME_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_PAGENAME_SLUG ?>" title="<?php _e( 'Pagename', 'buddypress' ) ?>"><?php _e( 'Pagename', 'buddypress' ) ?></a></li>
    <?php } ?>

    Or is this wrong? Just wanna make sure I do it right. :)

    #44333
    Ezd
    Participant

    Socialpreneur >

    I guess its the header.php file in the bpmember theme that has to be edited and not the header.php in the home theme? Or should the change be added to both header.php files?

    They almost look the same so whats the difference between the two?

    Also how would the code look, there’s a section where it says:

    Bpmember theme’s header.php:

    <div id="header">
    <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>

    <ul id="nav">
    <li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php bp_home_blog_url() ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>

    <?php if ( function_exists( 'groups_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php do_action( 'bp_nav_items' ); ?>
    </ul>
    </div>

    Its probably here the extra code would have to be added? I cant seem to get it to work.

    #43545
    takuya
    Participant

    Ok, I solved this.

    When changing slugs, css needs to be hacked a little to show the icons properly. For example, when you change groups slug to communities in bp-custom like this:

    define('BP_GROUPS_SLUG', 'communities');

    You will need to find the following css entry from base.css locating at bp-themes/buddypress-member/css/.

    li a#user-groups, li a#my-groups {background: url(../images/groups_bullet.gif) 88% 52% no-repeat;}

    Copy above, create a file called custom.css if you haven’t done yet. Modify the css to:

    li a#user-communities, li a#my-communities {background: url(../../images/groups_bullet.gif) 88% 52% no-repeat;}

    And upload custom.css to bp-themes/buddypress-member/css/custom-components/

    That’s it!!

    #43282
    squattingturnip
    Participant

    Thank you, thank you, thank you.

    Your code works like a charm, and you have taught me a great deal about how BuddyPress (and WPMU) works. I really, really appreciate it.

    Incidentally, the changes I made are as follows, in case your or anyone else is curious:

    global $current_user;
    if ( isset( $roles['administrator'] ) || isset( $roles['editor'] ) || isset( $roles['contributor'] ) || is_site_admin() )

    was added to the “my_can_user_create_a_blog” function. Kind of an odd set of conditions, but, well…whatever. I\’m going to do a little bit of digging around later on, and see if I can condense that down a little (initially I’d planned to have it as a sort of “if user level is great than x” thing, but my cursory examination didn’t turn that up, so this is a decent stopgap for now).

    I also added an if statement that draws on the “my_can_user_create_a_blog” function for the “my_blogs_setup_nav” function, so that now everything it does is wrapped thusly:

    if (my_can_user_create_a_blog()==true) {
    ...
    }

    and changed “is_user_logged_in” in the “my_adminbar_blogs_menu” function to call “my_can_user_create_a_blog” instead.

    Again, I can’t thank you enough. I only hope some day I can help someone out the way you’ve helped me.

    #43265
    Burt Adsit
    Participant

    We’ve unhooked the current fns and hooked up our replacement fns. So far they do exactly the same thing as the current fns. We need the ability to decide who gets to see the menu item. I choose to create yet another fn to decide yes or no on blog creation.

    function my_can_user_create_a_blog(){

    if (is_site_admin())

    return true;

    else

    return false;

    }

    That goes in bp-custom.php also. Ya, all it does is check if the current user is the site admin. I’m not sure what you mean by only letting ‘Admins’ create blogs. There are blog admins and one site admin. Everyone with a blog gets to have the wp role ‘administrator’. Not sure what you want so i’ve wrapped the logic in a fn so you can change it to whatever you like.

    Now we need to alter our new replacement fns to skip the display of the menu items if that returns false.

    In our my_blogs_setup_nav() there is a line like this:

    bp_core_add_subnav_item( $bp->blogs->slug, ‘create-a-blog’ __(‘Create a Blog’,

    ‘buddypress’), $blogs_link, ‘bp_blogs_screen_create_a_blog’ );

    We need to wrap it like this:

    if (my_can_user_create_a_blog()){

    ‘bp_core_add_subnav_item( $bp->blogs->slug, ‘create-a-blog’Create a Blog’,’buddypress’), $blogs_link, ‘bp_blogs_screen_create_a_blog’ );

    }

    Also the function my_adminbar_blogs_menu() has code that looks like this:

    echo '<li' . $alt . '>';
    echo '<a href="' . $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog">'
    . __('Create a Blog!', 'buddypress') . '</a>';
    echo '</li>';

    You need to wrap that the same way:

    if (my_can_user_create_a_blog()){

    ..all that stuff..

    }

    #42919
    Jeff Sayre
    Participant

    Okay, putting aside the subdomain versus subdirectory issue for a second, you state that:

    …the bp link in the menu works but where is says “disbale components using below form” nothing shows

    It sounds like BuddyPress is not activated. With the 1.0_RC2 changes, BuddyPress is now considered a single WPMU plugin. You must first login to the WPMU backend as site admin and then go to Plugins > Installed and make sure that BuddyPress is activated.

    Once it’s activated, a new menu group is created at the bottom of the menu tree called “BuddyPress”. You click on BuddyPress > Component Setup and you should see that all the BP components are enabled by default. It is in this admin screen where you can enable and disable individual components.

    If you’ve already activated BuddyPress, then something is clearly wrong. Have you double checked to make sure that you copied all the BP component files and folders (minus the theme folders) into the /wp-content/plugins/ folder? Did you install the BP suite into the /wp-content/mu-plugins/ folder instead?

    If the BP install locations and files are in their proper place, then I would recommend deactivating BuddyPress then deleting the entire BP directory and try reinstalling the BP plugin suite again and see what happens.

    Burt Adsit
    Participant

    Here’s two functions that change the way the admin bar displays user blogs.

    // sort array of blog objs by $blog->role according to the order of $blog_roles
    // roles not included in $blog_roles array will not be displayed
    function filter_blogs_by_role($blogs){
    global $bp, $blog_roles;

    $blog_roles[] = __( 'Admin', 'buddypress' );
    $blog_roles[] = __( 'Editor', 'buddypress' );
    $blog_roles[] = __( 'Author', 'buddypress' );
    $blog_roles[] = __( 'Contributor', 'buddypress' );
    $blog_roles[] = __( 'Subscriber', 'buddypress' );

    // get roles
    foreach ($blogs as $blog){
    $blog->role = get_blog_role_for_user( $bp->loggedin_user->id, $blog->userblog_id );
    }

    // eliminate roles not in $blog_roles
    foreach ($blogs as $key => $value){
    if (!in_array($value->role, $blog_roles))
    unset($blogs[$key]);
    }

    // sort by $blog_roles sequence if there are any left
    if ($blogs){
    usort($blogs, 'compare_roles');
    }

    return $blogs;
    }

    // i love php.net. stolen from php.net usort manual, user mkr at binarywerks dot dk's
    // contribution for priority list comparision function.
    function compare_roles($a, $b){
    global $blog_roles;

    foreach($blog_roles as $key => $value){
    if($a->role==$value){
    return 0;
    break;
    }

    if($b->role==$value){
    return 1;
    break;
    }
    }
    }

    You can put those two fns in your bp-custom.php file. The fn filter_blogs_by_role() does the work and the fn compare_roles() is just a helper fn.

    filter_blogs_by_role() takes the array of blog objects returned by the fn get_blogs_of_user() in the admin bar’s bp_adminbar_blogs_menu() fn. It first gets all the roles for the user’s blogs and then removes all of the roles that are not listed in the $blog_roles array. That way you can eliminate some roles such as ‘Subscriber’ if you want. Next it sorts the blogs by the sequence of roles defined in $blog_roles. However you list them in that array is how they will display in the admin menu.

    1) So, put those two fns in bp-custom.php

    2) Arrange the roles defined by $blog_roles in the fn filter_blogs_by_role() however you want the roles to appear in the menu

    3) Comment out the roles you do *not* want to appear in the menu

    4) Put the call to filter_blogs_by_role() on line 133 in bp-core-adminbar.php like this:

    if ( !$blogs = wp_cache_get( 'bp_blogs_of_user_' . $bp->loggedin_user->id, 'bp' ) ) {
    $blogs = get_blogs_of_user( $bp->loggedin_user->id );
    wp_cache_set( 'bp_blogs_of_user_' . $bp->loggedin_user->id, $blogs, 'bp' );
    }

    $blogs = filter_blogs_by_role($blogs);

    Just in case the forums trash the code I also stuck it here: http://pastie.org/445729

    #42448

    In reply to: PHP-Error

    Jeff Sayre
    Participant

    There were some changes to the header.php file. Off the top of my head, I cannot remember if both the buddypress-home and buddypress-member themes had changes. Or, if only one of them had changes.

    Either way, the best thing to do is open your header.php file and compare it to the new header.php file of the respective BuddyPress theme.

    If I have the Blog-Menu in my theme – the bp_home_slug doest point to the right page (the home-blog) but to an article in another blog…

    It should be BP_HOME_BLOG_SLUG, not BP_HOME_SLUG.

    #42084
    Lance Willett
    Participant

    Hi Tutsie,

    This type of change would typically be done with a plugin. Keep in mind that this isn’t a BuddyPress customization as much as it is a WordPress MU one.

    I did a quick Google search for “change wordpress admin profile link” and found a few places you could start.

    In this WordPress forum topic is some code that would change the behavior of the profile link (albeit for a different reason); this method of changing the admin behavior isn’t recommended, however, since it requires hacking a core file. A plugin would be much better since it doesn’t require changing the core file (and having to stress about updating your WordPress MU code later).

    Depending on how much you want to work on this, you could download these two plugins: WP Hide Dashboard and Admin Menu Management, open them up in a text editor, and look at how they change the menus in the WordPress admin area.

    Plugins do two things: (1) they provide a new functionality and (2) they hijack the normal WordPress behavior and perform the functionality described in the plugin instead.

    Hope that helps…

    #41992

    In reply to: Changing blog avatars?

    Lance Willett
    Participant

    Take a look at your admin menus for BuddyPress and Site Admin.

    If you are running an older version of BuddyPress (before revision 1311) look in Site Admin -> BuddyPress. Otherwise the latest trunk has a new top-level menu called BuddyPress (look in General Settings).

    View an example of the avatar menu.

    And… this probably isn’t a support topic, right? ;)

    #41833
    Robert
    Participant

    In your theme look for header.php. There you can change the names of the links.

    For example:

    <?php _e( \’Blog\’, \’buddypress\’ ) ?>

    Change it to

    <?php _e( \’My Blog\’, \’buddypress\’ ) ?>

    Remember to change it in your members theme too.

    Note that this will only change the text not the actual link. So it will show [My Blog] but it will still go to yoursite.com/blog

    #40726

    In reply to: Drop down menu

    bbrian017
    Participant

    Well I downloaded this version three days ago!

    Has it changed since then?

    https://buddypress.org/download/

    #39165

    lol Oh Ren… haha!

    @brandtd, this is certainly possible. As a matter of fact, this should happen as default unless you change the width of the body or html elements themselves. This is because the “Buddy Bar” isn’t contained by anything that has a relative position attached to it.

    In bp-core/css/admin-bar.css – Try…

    #wp-admin-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1001 !important;
    height: 26px !important;
    color: #fff !important;
    text-align: left !important;
    background:url(../images/admin_bar_back.gif) #818181 repeat-x !important;
    }

    @brian, duh I get what you’re saying now. If I can give some feedback about the Buddy Bar for a moment, I feel that it should be an all or nothing kind of deal. Either it’s always there for people to use, or it’s never there and people have to naturally find their profile area and do things from there. Toggling a whole new set of what are essentially just short-cuts and adjusting the entire layout of the screen, even if by 26px, provides for a moment of awkwardness from a user perspective. For the 3 seconds it takes for someone to think to themselves “Hey what’s that? Do I need it? What does it do? Oh gosh there’s tons of menus now? What is this stuff?”

    Now if you’ve used WordPress.com or signed up for a Gravatar before, then the bar idea isn’t new. But for what I consider the core crowd we’re catering to by using BuddyPress as a social networking platform, if it isn’t uniformly worked into the design of the site from the beginning, it only serves to confuse.

    Again, this is just my opinion. Not saying it’s right, and certainly not saying that there is a better way. Just saying… :)

    /rant

    Back on topic. In theory you could put a…

    <body>
    <?php if (is_user_logged_in()){ ?>
    <div id="buddy-bar-buffer"></div>
    <?php }?>

    In your header file, and attach the CSS to that, rather than to the body itself? That would then only show that buffer when the user is logged in, and once they are logged in, that buffer will push the body down (as styled by the CSS you will give it in your base.css).

    Does that make sense?

Viewing 25 results - 476 through 500 (of 511 total)
Skip to toolbar