Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'change buddypress menu'

Viewing 25 results - 251 through 275 (of 578 total)
  • Author
    Search Results
  • #157434
    Maxaud
    Participant

    BuddyPress version 1.6.4

    Theme is homegrown but my needs wouldn’t change depending upon theme being used.

    I’m current looping through the $bp->nav and $bp->bp_option_nav variables to construct the code needed but these variables change whether you’re viewing another users profile or not.

    I need to construct the same menu as if you were viewing your own profile but display it on every page, even if viewing another users profile.

    #157298
    danbpfr
    Participant

    the thing to understand with PHP is to never use a function name twice on a same action. A function name is and must be unique.

    In the WP ecosystem, you can act on templates throught the child theme. Generally you only change HTML and CSS and use the existing php filters from the original template.

    If you need to modify an existing function, you copy the original to the child theme functions.php file and do your changes on this copy. Once done, you change the name of the function and the new hook name

    unhook first  the action or the filter
    remove_action or remove_filter, than the new function
    function my name
    add_action or add_filter (‘the_action_to_hook’, ‘my_name’)

    Because this is registered in the theme functions file, and because WP is calling a evantually exiting child theme first when he loads, the child becames priority of any other existing theme. And that’s why it works !

    Don’t be affraid, the only one who can broke things in a child theme is you, never an update.

    The only limit is when you use a so called buddypress ready theme, in fact a third party theme. This works generally  out of the box, but if you want to change something in such a theme, you must first create a child for it. Simply because that original “child” is updatetable. And the whole world knows that you want’t loose your changes.

    That said it’s not forbidden to work on a local copy, and to save systematically any file you modify on the prod site.
    Reading the Codex on rainy days is also a good thing you can do. 🙂

    #156462
    aces
    Participant
    #156068
    bp-help
    Participant

    @naijaping @mercime
    Okay I finally got it. Not certain it is totally right but it looks good in both chrome and firefox. I did have to create a div class in the members-loop.php called user-location surrounding the code from step 3 in the tutorial to be able to style it. The changes I made are in the below css in case anyone wants to try this. I also included a pic at the bottom to show the end result. Thank you both for your help! Cheers!
    `
    /*
    Theme Name: BuddyPress Child
    Theme URI: http://example.com/
    Description: Child theme for the BuddyPress Default theme
    Author: bphelp
    Author URI: http://example.com/about/
    Template: bp-default
    Version: 1.0
    Tags: blue, buddypress, custom-background, custom-header, custom-menu, editor-style, featured-image-header, featured-images, fixed-width, light, right-sidebar, rtl-language-support, sticky-post, threaded-comments, translation-ready, two-columns, white
    */
    /*————————————————————-
    Custom CSS
    ————————————————————–*/

    @import
    url(“../responsive/style.css”);

    /* Custom member loop avatar styling */
    #members-dir-list img.avatar {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 0 #fff;
    -moz-box-shadow: 0 1px 0 #fff;
    box-shadow: 0 1px 0 #fff;
    }

    #members-dir-list a:hover img.avatar {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 0.2s ease-in-out;
    -moz-transition: -moz-filter 0.2s ease-in-out;
    transition: filter 0.2s ease-in-out;
    }

    #members-list li {
    overflow: auto;
    list-style: none;
    float: left;
    width: 30%;
    margin: 20px 20px 28px 0;
    border: 0;
    }

    #members-dir-list ul.item-list li div.item-title, #members-dir-list ul.item-list li h4, #members-dir-list ul.item-list li div.item-meta
    {
    width: 62%;
    text-align: center;
    }
    .user-location {
    width: 62%;
    text-align: center;
    }

    #members-dir-list ul.item-list li div.item-title {
    font-size: 110%;
    }

    #members-dir-list ul.item-list li div.item-meta {
    text-transform: uppercase;
    font-size: 80%;
    }

    #members-dir-list ul.item-list li img.avatar {
    margin-bottom: 8px;
    }

    #members-dir-list a.friendship-button.add {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #89ac48;
    font-size: 26px;
    font-weight: bold;
    background: #a5d156;
    color: #ffffff;
    line-height: 50px;
    margin: 18px 102px 0 0;
    }

    #members-dir-list a.friendship-button.is_friend.remove {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #CC0000;
    font-size: 26px;
    font-weight: bold;
    background: #FF5050;
    color: #ffffff;
    line-height: 50px;
    margin: 18px 102px 0 0;
    }

    ul#members-list.item-list li div.action {
    text-align: center;
    overflow-y: hidden;
    top: 18px;
    right: 6px;
    }

    #member-dir-count-bottom {
    display: none;
    }
    /* End Custom member loop avatar styling */
    `
    members directory

    #156053
    bp-help
    Participant

    @naijaping @mercime
    I removed #buddypress from the css and here is what my style.css looks like:
    `
    /*
    Theme Name: BuddyPress Child
    Theme URI: http://example.com/
    Description: Child theme for the BuddyPress Default theme
    Author: bphelp
    Author URI: http://example.com/about/
    Template: bp-default
    Version: 1.0
    Tags: blue, buddypress, custom-background, custom-header, custom-menu, editor-style, featured-image-header, featured-images, fixed-width, light, right-sidebar, rtl-language-support, sticky-post, threaded-comments, translation-ready, two-columns, white
    */
    /*————————————————————-
    Custom CSS
    ————————————————————–*/

    @import
    url(“../responsive/style.css”);

    /* Custom member loop avatar styling */
    #members-dir-list img.avatar {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 0 #fff;
    -moz-box-shadow: 0 1px 0 #fff;
    box-shadow: 0 1px 0 #fff;
    }

    #members-dir-list a:hover img.avatar {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 0.2s ease-in-out;
    -moz-transition: -moz-filter 0.2s ease-in-out;
    transition: filter 0.2s ease-in-out;
    }

    #members-list li {
    overflow: auto;
    list-style: none;
    float: left;
    width: 30%;
    margin: 20px 20px 28px 0;
    border: 0;
    }

    #members-dir-list ul.item-list li div.item-title, #members-dir-list ul.item-list li h4, #members-dir-list ul.item-list li div.item-meta
    {
    width: 100%;
    text-align: center;
    }

    #members-dir-list ul.item-list li div.item-title {
    font-size: 110%;
    }

    #members-dir-list ul.item-list li div.item-meta {
    text-transform: uppercase;
    font-size: 80%;
    }

    #members-dir-list ul.item-list li img.avatar {
    margin-bottom: 8px;
    }

    #members-dir-list a.friendship-button.add {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #89ac48;
    font-size: 26px;
    font-weight: bold;
    background: #a5d156;
    color: #ffffff;
    line-height: 50px;
    }

    #members-dir-list a.friendship-button.is_friend.remove {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #CC0000;
    font-size: 26px;
    font-weight: bold;
    background: #FF5050;
    color: #ffffff;
    line-height: 50px;

    }

    ul#members-list.item-list li div.action {
    text-align: center;
    overflow-y: hidden;
    top: 18px;
    right: 6px;
    }
    /* End Custom member loop avatar styling */
    `
    Here is another pic to see the changes but it still needs some adjusting.
    members directory
    Hope you guys can help! I appreciate the help you have given so far! Thanks!

    #154924
    @mercime
    Participant

    @webifiedgeek change to BP Default theme, you’d find the link to create a blog in the Blogs Directory page, right beside the title, Blogs. Or, create a link in your custom menu to create a blog. Assuming you kept the slug blogs in Settings > BuddyPress > Pages, the link would be http://example.com/blogs/create as simple as that.

    #153745
    Brad Dalton
    Participant

    Never used BB or BuddyPress before.

    Installing for a client with S2Member and MU.

    Is S2member a good plugin for paid listings in BuddyPress and charging for Sub Sites?

    Can’t get the forums working as well.

    Do i need to add the shortcodes and change a slug?

    Not sure which links to add to the menu as i know you can create forums under that tag but also create page named forums.

    Cheers

    #153223
    @mercime
    Participant

    how to modify the admin bar


    @ebizdude
    That’s too wide an area to cover. What specifically do you want to change in the admin bar?
    – If it’s WordPress-related, please post at https://wordpress.org/support/forum/how-to-and-troubleshooting
    – If it’s related to BuddyPress links to profile menus https://wordpress.org/extend/plugins/buddypress-custom-profile-menu/

    also when people registerting the activation email is not coming. how does one recticfy that

    You have to find out through some tests whether email is not being sent from your installation or whether the email just goes to user’s spam folder.

    #153115
    Norm
    Participant

    I’m looking into this too. I think the problem is that bbpress is adding that forum tab and not buddypress. Did you figure it out?

    Otherwise this is a good reference.
    http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item

    vobpler
    Participant

    Still haven’t gotten anywhere. This was on a fresh install with no plugins.

    I tried going into Settings -> Buddypress -> Forums and enabling the “Site wide forums” feature – what ever that does. No difference, still can’t view the forum, and it doesn’t show up in the menu.

    I also tried creating a new forum from Forum -> New forum. No difference. Even tried going into Settings -> Forums and selecting the newly created forum as “Group forums parent”, which didn’t change anything either, so i’m unsure as to what it does as well.

    I’ve tried using the default Buddypress theme as well as a custom one.

    I’m running PHP 3.5.1.

    Ideas?

    #152519
    @mercime
    Participant

    @abarclay Strange. All menu links to BuddyPress components are working so I will guess that something changed possibly in the hierarchical structure of your other pages. To double-check, go to Appearance > Menus and Create a New Menu. Add links to the New Menu and save. Use that New Menu for your Primary Navigation and save. Check if issue is resolved.

    #150947
    danbpfr
    Participant

    hi @diondeville,

    to change the profile menu (on the top right of the ToolBar)
    <code>
    function my_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav[‘settings’][‘position’] = 10;
    $bp->bp_nav[‘activity’][‘position’] = 20;
    $bp->bp_nav[‘friends’][‘position’] = 30;
    $bp->bp_nav[‘groups’][‘position’] = 40;
    $bp->bp_nav[‘blogs’][‘position’] = 50;
    $bp->bp_nav[‘messages’][‘position’] = 60;
    $bp->bp_nav[‘profile’][‘position’] = 70;
    }
    add_action( ‘bp_setup_nav’, ‘my_change_profile_tab_order’, 999 );</code>

    Take care with quotes when copy/pasting from here ! 😉

    #150071

    In reply to: Menu tab issue

    Versipellis
    Participant

    All I want to do is add a new tab to the menu, the code I’m going to be using to define what is displayed I can include elsewhere. The idea is this tab literally adds a single radio option for a user to choose an option from, then saves to a table I’ve created in my database.

    However, the skeleton component seems overly complicated for this, and the bp-custom.php way of doing things does nothing.

    No matter which example code I try, the only way I can get a tab to display is by putting:

    `bp_core_new_nav_item( array(
    ‘name’ => __( ‘Media Privacy’, ‘bp-media-privacy’ ),
    ‘slug’ => ‘media-privacy’,
    ‘position’ => 80,
    ‘show_for_displayed_user’ => false,
    ‘screen_function’ => ‘bp_media_privacy’,
    ‘default_subnav_slug’ => ‘media-privacy’
    ) );`

    By putting the above code directly into an included page it displays but doesn’t go to the said page. When I put it in a function and add it using add_action( ‘bp_setup_nav’, ‘my_bp_nav_adder’, 100 ); nothing happens at all.

    I’m seriously confused at this point but it is vital to have this additional tab in the front end for users to be able to change this setting. I’m using a clean install of the latest Buddypress on my wamp (not putting this on my live site until it works.)

    @chouf1 and @modemlooper, could someone possibly do a pastebin of an example, working, bp-custom.php as I cannot find one? Thank you for your help before.

    #149893
    ngoegan
    Participant

    I figured out that the problem is with having the activity page as the static home page.

    I changed the home page to a blog page and then added the activity page on the navigation menu and now I’m able to post comments.

    So it looks like you can’t have the Activity page as the home page on Buddypress until the update. Is that right?

    #149811
    danbpfr
    Participant

    Hi @intimez,

    you have 2 possibilities to use bbPress. As group forums, this is intended in buddypress standard install, or as standalone forum., aka sitewide forum, with the complete bbPress plugin. The bbPress part shipped with BP is not exactly working as the plugin.

    In the first case, you may use the install wizard of BP. Activate “discussion forums” and create the appropriate page on the “pages” tab. Done ! You have to create first a group, and from ithin the group admin you can then activate a group forum.

    In the second case, don’t check “discussion forums” and install the bbPress plugin. Once installed, a “forum” menu appears on the left in the dashboard. Go to the forum settings page and do your settings.

    If you want to use ONLY a sitewide forum, you can let all the forum settings by default.

    If you want to use the group forums AND a sitewide forum, witch is not recommended because confusing for your members probably, you have to take care to one thing.

    The “forum base name” in the forum settings of the plugin. By default this name is “forums”. But this base name is also used by the group forums, so it wouldn’t work for both. In fact, this name is reserved for BP only.

    So if you want both forum types, CHANGE OBLIGATORY the base name to something other as forum or forums, and that’s it !

    #149457
    danbpfr
    Participant

    Hi,

    you probably try to modify the buddypress.po file. It would be better you use the po file who comes with your genesis theme. Also don’t forget to save the modified po file with poEdit to generate the mandatory mo file
    The pot file contains the translatable strings and the file names/numbers who they are.
    The po file has exactly the same content + translated strings
    The mo file is the compiled po file

    The translation is executed by PHP’s gettext function who read the compiled mo file. Po and Pot files are human readable files and aren’t necessary to be on the server.

    #149344
    @mercime
    Participant
    #149245
    @mercime
    Participant

    There are a number of plugins in the WP plugin repo which could change what shows up in the admin toolbar. For BP-specific nav links, check out https://wordpress.org/extend/plugins/buddypress-custom-profile-menu/

    #149175
    @mercime
    Participant

    @seriousdon you’d need another forward slash in front of your comment before the code like so http://pastebin.com/HSpJNLyV

    In order to place the dynamic profile link at the beginning of the menu change this following line from
    $menu = $menu . $profilelink;
    to
    $menu = $profilelink . $menu;

    #149155

    This link offers an alternate solution: http://wordpress.stackexchange.com/questions/35163/add-buddypress-profile-and-messages-link-to-wordpress-menu

    You might also look into custom walkers for the WordPress menu.

    #149144
    doncgarner
    Participant

    Thanks Hugo. I do have some Basic HTML coding skills…I know how to copy/paste code, change code in a HTML editor, add images, links, and that sort of basics knowledge. I have a Graphic design Background, so I am very familiar with layout and content, and features. My Problem is “MY Template” I’ve designed my whole site in WP which is not a problem for me…but after adding the BuddyPress Sections to the TOP Menu in my template, I have drawn a blank….lol….there is NOTHING on Each Page when viewed in Preview Mode Browser. I do know, that I have to ADD widgets and other content to A Created page in WP/BuddyPress in order to get the content to DIsplay in my browser. However,….lol….I’m lost at the Which Widget, and Things to add to the BP pages (Activate, Register, Activity, Members) pages. I have added them in Apperarance>>Menus>>Top Menu>>Select (Those) Pages>>Then Add To Menu….I’ve done all of this. I just don’t know what to add from here, to get these pages and their content to show-up so that everything works in my Current theme. Do I have to pick another theme, or just NOT use buddypress, and find another WP Membership plug-in that allows PROFILES and Writing in a Blog that every member can read? Another theme is NOT an option at this time. All of the other features I described in my Original Post, can be added with a few plug-ins right? So All I REALLY Need BuddyPress for is The MEMBERSHIP, Profiles, and Members Search Features intergrated to work with The Continuum Theme. There shouls be a better way around this, and I still get the same results. ALL Of My Website Content IS CREATED!!!! I’m just adding Members access, sign-up, and create a profile. Thanks.

    #148894
    @mercime
    Participant

    How can I hide this menu item for users who are logged in only as it does not show up in the menus under Appearance.

    @voopress The code above shows the link only for logged in users. The link won’t show up if they’re not logged in. Why would you want to “hide this menu item for users who are logged in only”?

    instead of hacking the php file

    There’s no hacking being done here 🙂 You’re legitimately adding a filter to include the dynamic link to the menu. You can change the markup in the code posted just so those additional class/es would match those of the IfMenu’s. I’m not aware of any menu plugin which allows you to add a dynamic link.

    #148418
    @mercime
    Participant

    I am just using BP’s default.css to make changes, and I dont see any of those lines in that file.

    @shripad first, do not make your changes in BP’s default.css file as it would be overwritten when you upgrade your BuddyPress plugin. You should create a child theme of BP Default theme instead and just make the changes in your child theme’s stylesheet. Or use a WP theme and install the BP Template Pack plugin to make BP templates compatible with your theme. Or, wait for BP 1.7 where BP templates will automagically be included in your WP theme.

    As for the responsive styles, they are not in default.css file but in the responsive.css file I linked to above. You’d find it in the same folder where default.css is located.

    #148384
    Shripad
    Participant

    I am not using a child theme, I am just using BP’s default.css to make changes, and I dont see any of those lines in that file.

    #148175
    @mercime
    Participant

    Then you just have to override that in your child theme. BP Default’s responsive.css https://buddypress.trac.wordpress.org/browser/tags/1.6.2/bp-themes/bp-default/_inc/css/responsive.css

    See line 211 https://buddypress.trac.wordpress.org/browser/tags/1.6.2/bp-themes/bp-default/_inc/css/responsive.css#L210 where it expands #nav li to 100% of containing div. If you’re going to remove or change that, you’d need to work on for the #nav li which is set at 46% of container on line #43 of same file.

Viewing 25 results - 251 through 275 (of 578 total)
Skip to toolbar