Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,926 through 11,950 (of 69,016 total)
  • Author
    Search Results
  • #244688
    danbp
    Participant

    See here:

    Filters & Constants Reference

    About bp_get_displayed_user_nav_ As you see, there is a a final undescore
    This is a dynamic function name which need to be completed, depending the place you want it to be modified.
    bp_get_displayed_user_nav_<css_id>.

    bp_get_displayed_user_nav_<css_id>

    See a working example here, to understand how to use it
    https://buddypress.org/support/topic/how-to-remove-sub-nav-only-for-displayed-user/#post-234852

    #244674
    Henry Wright
    Moderator

    The Theme My Login plugin is useful in handling redirection. Taken from the plugin’s feature list:

    Redirect users upon log in and log out based upon their role

    I’ve done this myself using the plugin and can confirm it works quite well with BuddyPress installed.

    #244663
    danbp
    Participant

    Hi,

    you need to track down the issue,perhaps a JS conflict in backend. Or have you the same problem on front end too ?

    Follow instructions from here:

    Troubleshooting

    #244658
    buddywhatshisname
    Participant

    Here’s a backtrace:

    
    [22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Started with $activity_id=14062
    [22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Done - about to return false
    [22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::backtrace=Array
    (
        [0] => Array
            (
                [function] => bp_blogs_sync_delete_from_activity_comment
                [args] => Array
                    (
                        [0] => 1
                        [1] => 14043
                        [2] => 14062
                    )
    
            )
    
        [1] => Array
            (
                [file] => /wp-includes/plugin.php
                [line] => 213
                [function] => call_user_func_array
                [args] => Array
                    (
                        [0] => bp_blogs_sync_delete_from_activity_comment
                        [1] => Array
                            (
                                [0] => 1
                                [1] => 14043
                                [2] => 14062
                            )
    
                    )
    
            )
    
        [2] => Array
            (
                [file] => /wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php
                [line] => 2468
                [function] => apply_filters
                [args] => Array
                    (
                        [0] => bp_activity_delete_comment_pre
                        [1] => 1
                        [2] => 14043
                        [3] => 14062
                    )
    
            )
    
        [3] => Array
            (
                [file] => /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php
                [line] => 1115
                [function] => bp_activity_delete_comment
                [args] => Array
                    (
                        [0] => 14043
                        [1] => 14062
                    )
    
            )
    
        [4] => Array
            (
                [function] => bp_legacy_theme_delete_activity_comment
                [args] => Array
                    (
                        [0] => 
                    )
    
            )
    
        [5] => Array
            (
                [file] => /wp-includes/plugin.php
                [line] => 508
                [function] => call_user_func_array
                [args] => Array
                    (
                        [0] => bp_legacy_theme_delete_activity_comment
                        [1] => Array
                            (
                                [0] => 
                            )
    
                    )
    
            )
    
        [6] => Array
            (
                [file] => /wp-admin/admin-ajax.php
                [line] => 91
                [function] => do_action
                [args] => Array
                    (
                        [0] => wp_ajax_delete_activity_comment
                    )
    
            )
    
    )
    
    [22-Sep-2015 02:59:19 UTC] bp_activity_delete_comment::Quit after apply_filters
    
    #244654
    danbp
    Participant
    #244653
    danbp
    Participant

    To check you’re on the right “page” in BuddyPress, use the appropriate function
    Groups: bp_is_groups_component

    Activity: bp_is_activity_component

    Member: bp_is_members_component

    Henry Wright
    Moderator

    To the best of my knowledge, @-mentions in BuddyPress require the activity component to be active.

    #244650
    danbp
    Participant

    BuddyPress use 3 pages by default: members, groups and activity and a small bunch of templates depending the context.
    These 3 pages are not used as ordinary WP pages, and exist for internal usage with WordPress, as slug placeholder only. These pages must stay empty and independant of any template or model.

    The best way to add featured images, is to hook into an existing function/filter or action. There’s no need for a static page.

    For more complex addition, you can use plugin.php template file which exist in /single/ directory of members and groups component template.

    See get_posts and get_the_post_thumbnail on WP Codex
    Post type of featured image is attachement

    Read also about BuddyPress:

    Post Types Activities

    Template Overload from a Plugin


    or a working example similar to what you try to do (if i understand you correctly).
    https://buddypress.org/support/topic/my-contributions-tab-with-subtabs/#post-244609

    #244642
    DAM
    Participant

    @henrywright Buddypress is the only plugin

    #244633
    shanebp
    Moderator

    Please don’t double post.
    The answer to your question is similar to the answer in the same thread where you also asked this question.
    https://buddypress.org/support/topic/how-to-disable-html-in-buddypress-private-message/

    There is no global filter for message boxes.
    You have to find the filter hook as in the thread referred to above.

    #244621

    In reply to: menu logged out list

    danbp
    Participant
    #244614
    MvdO79
    Participant

    Hi, I have the same issues:

    – the buddypress register page is not creating users, after submit it shows the register page again and the passwords are gone.

    – there are no users displayed in the backend

    – there are no pending users

    i have followed all directions found online and on this forum, fresh install of wp with fresh install of bp, no other plugins active etc…

    Should I use an older version of bp? Do I have to create manual pages as the default bp theme is not active anymore?

    #244594

    In reply to: I Cannot Create Groups

    shanebp
    Moderator

    http://acadayear.com/home/groups/ is also not found.

    Do you have User Groups enabled here?
    …/wp-admin/admin.php?page=bp-components

    Have you assigned a page to Groups here?
    …/wp-admin/admin.php?page=bp-page-settings

    Have you read this?

    Configure BuddyPress

    #244585
    Henry Wright
    Moderator

    @mcpeanut

    I am currently testing my buddypress install on one of my servers with nginx

    Are you using Nginx with php-fpm? I’ve been tempted to do that for BuddyPress. It’d mean moving all of my .htaccess directives to Nginx server blocks but I think the effort would be worth it for the performance improvements.

    #244580
    mcpeanut
    Participant

    @ch1n3s3b0y Hi there, im gonna chime in on this as im starting to believe that buddypress can most definately scale vary well (even though its not been proven yet to scale to say a million users+ i think its quite possible), as henry may remember from previous threads i have commented in i have decided to look into the ultimate server configurations to try and find the best way to actually move forward into my own buddypress build.

    This has meant concentrating and learning about lots of different server configurations for the past couple of years in-between my other projects.

    Do you think Buddypress can support hundreds of thousands, if not millions of users?

    Lets just switch this notion right on its head, rather than ask yourself if buddypress can scale to a millon users start asking yourself if your server setup and configuration can scale to a million concurrent users instead.

    The key to success on a buddypress active and busy site becomes more of a server and administration task rather than how you have buddypress setup on a basic server config (before long you will bottleneck somewhere if you do not setup for expansion).

    I know it seems daunting to think about all of this rather than install it build it and launch it and expect it to scale! But to me doing something half hearted isnt the way forward with a serious build on any project. If you prepare and understand the potential problems before you have that killer network built with 100s of thousand of concurrent users its much better to be prepared than to sit back and go NOW WHAT! when you finally grind to a halt and noone can use your site anymore and you dont know how to fix and expand it. Proactive is the way forward.

    I am currently testing my buddypress install on one of my servers with nginx and HHVM (hip hop virtual machine) that was created by and is used by facebook instead of standard php, this speeds up the PHP execution speed PHP code is translated into C++ compiled into a binary and run as an executable to really speed up the way php works, therefore making everying load much much much much faster! I have only just started messing around with HHVM and will keep you updated. is anyone else actually running HHVM? if so please do share with me your finding, to me this seems the way forward with any buddypress installed website.

    Also as i have stated before once i have decided on my final server configurations and im 100 percent happy with exactly how my setups work with wordpress/buddypress to scale to massive amounts of users i will create a post and guide on how i have it all set up, but still will take me more time yet. and also as stated before if anyone else does want to give there 2 cents on it feel free because on these forums there is not much talk about actual configs that people are using, even though i do realize this is server tech department, i also believe it is a valid issue for buddypress because instead of questions about scalability there could also be a few answers which is my ultimate goal. 😉

    #244575
    danbp
    Participant

    Hi @qurgh,

    use bp_loggedin_user_domain function and wp_nav_menu_items filter to add the item to an existing menu, like this: bp_loggedin_user_domain( 'kag/ship/' )

    See here for a working example:
    https://buddypress.org/support/topic/url-for-menu-to-logged-in-users-profile-page/

    WordPress reference:

    wp_nav_menu_items


    https://codex.wordpress.org/Navigation_Menus

    BuddyPress reference

    bp_loggedin_user_domain

    #244571
    alpha2
    Participant

    Yes it is. But rather than using a plugin (for this project i am nearly at 53 active plugins…too much) maybe its better to use a function.
    i use this thread to ask you another question, some users (registered before i applied this plugin) named their account with a period: john.doe . Actually it’s not a big deal because buddypress (or wordpress natively) transform this dot into hyphen in each link.

    On one specific page template, I have special function i created with the help of a dev to display all users by a custom taxonomy (ranks)

    Only mater is that every hyperlink that link to account like john.doe are display like this http://www.website.com/members/john.doe and not http://www.website.com/members/john-doe

    I search into the code and found this:

    <div><?php $user = get_user_by('id', $gold ); ?><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo bp_core_fetch_avatar( array( 'item_id' => $gold, 'type' => 'full' ) ); ?></a><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo $user->user_login; ?></a>Performances: <?php echo count_user_posts( $gold ); ?></div>

    I must change how is display the username.

    Thank you for your time and your help!

    #244556
    shanebp
    Moderator

    Try adding a call to wp_mail.
    There are several examples of that in codebase.
    For example, see function bp_activity_at_message_notification
    in buddypress\bp-activity\bp-activity-notifications.php

    #244549
    JECPFG
    Participant

    Hi djsteveb, I appreciate that but it’s been several days since I asked on the wpmudev’s support forums and they haven’t replied yet, so I’m anticipating the “you’ll need to ask BuddyPress” response. I figure if I ask in both forums, one side may have an answer.

    And since this is a function of the BuddyPress Profile Fields, I assumed I might have a better chance of getting a response here anyway. I know this isn’t overly complex for someone who knows the answer, I’m just hoping to find someone who does.

    #244547
    danbp
    Participant

    – which is especially torturous on mobile devices..

    hahahaha, but in return, you have very thumb muscled mobile devices users. 💪

    Googled for buddypress reverse messages order and found this:
    https://gist.github.com/bappi-d-great/be10c2e096f0e6936b43

    Untested and waiting now for feedback. 👂 🙂

    #244546
    danbp
    Participant

    @djsteveb

    i wrote: To make it work with BP, you add a copy of the original page.php of 2014 and rename it buddypress.php. And you add the condition into that copy.

    I’m not a 2014 specialist and never liked that theme with BuddyPress. The’re so many other out to discover, easy to use and configure, that i wouldn’t loose my (at least) time with it.
    2015 is already avaible and 2016 too, though 2014 is a dynosaur now. Beat’em ! 😉

    #244543
    djsteveb
    Participant

    you could (although this theme is quite tricky with the various sizing things, and I am NOT an expert with this theme or css – so make backups, use child themes – all that jazz)

    you could try changing (or overwriting with child theme / enque an overlap style sheet)

    @media screen and (min-width: 1218px) {
    .site-content, .site-main .widecolumn {
        margin-left: 222px;
    }
    }

    to:

    @media screen and (min-width: 1218px) {
    .site-content, .site-main .widecolumn {
        margin-left: 90px;
    }
    }

    and..

    .buddypress .site-content article .entry-content, .buddypress .site-content article .entry-header {
        max-width: 100%;
        padding: 0px 10% 5%;
    }
    

    change to

    .buddypress .site-content article .entry-content, .buddypress .site-content article .entry-header {
        padding: 0px 1% 5%;
    }
    

    – now of course how these settings affect the groups page is one thing this could cause ill effects on other pages – (ones with double sidebars) – and at different screen sizes.. this 2014 thing gets pretty picky..

    especially with 2014 doing one thing, and the bp-addon style thing doing some other things.. one percentage change here looks good – but a different page at a difference screen size – grrr.. you have to test a lot with this mix (come to find out the hard way here the past couple weeks!)

    This will add a lot more space, which is what I guess you are going for in general – but not remove all sidebars..
    and
    That does not get rid of the left sidebar, which is I guess what you were meaning to ask in the first place with this thread (and I think everyone else was assuming you wanted to get rid of the right sidebar, as our understanding of the term “full width page” – err template in my mind is just that.. looks like you really want a “no sidebars at all page template” for groups page?

    #244541
    YesPapa
    Participant

    @djsteveb I know this solutions. I am just telling that included this function in the box would be great.

    If BuddyPress want to also be a Entreprise Social Network solution, I am thinking this feature has to be included. Other ESNs provide it.

    Best.

    #244538
    djsteveb
    Participant

    @danbp

    am I to understand – that you would make a buddypress.php and have just like:

    <?php
    if( !bp_is_groups_component() ) { 
       get_sidebar( 'content' );
    }
    ?>

    or maybe copy the page.php code and put it all into a new file buddypress.php – and add the code

    if( !bp_is_groups_component() ) { 
       get_sidebar( 'content' );
    }

    to buddypress.php maybe in the head of it?

    BP’s content comes full-width on 2014

    Actually with my 2014 themed bp site I get a left and right sidebar on large monitor, it does not get into bp stuff taking full side space width until the screen shrinks to.. I dunno 1008 pix or so (one of those media queries)

    So I think this code you are suggesting would indeed be useful with 2014 as well.

    I have been looking a couple of plugins like ‘dynamic sidebars’ (maybe it was dynamic widgets) – and ‘content aware sidebars’ – one of these I saw recently says is plays well with BP – and I was thinking one of these may be able to solve some common problems that bp peeps run into in regards to wanting to change content on the various psueodo pages.. however I am not sure that any of those plugins would remove all widgets from the sidebar on some pages, and if they DID.. would that make theme X go full width for that area anyhow? not likely, but it’s a nice dream.

    Anyhow thanks for the info I might test this out a bit not that I am digging deeper into 2014 and bp..

    #244537
    danbp
    Participant

    A child theme contain usually
    style.css
    functions.php

    To make it work with BP, you add a copy of the original page.php of 2014 and rename it buddypress.php

    2014 comes also with a full-width template which is in page-templates folder.
    If you compare both files, you will see that the only difference is at line 40 of page.php
    get_sidebar( 'content' );

    To get what you want, you simply add a conditionnal to this part.

    if( !bp_is_groups_component() ) { 
       get_sidebar( 'content' );
    }

    That said, i think it’s not necessary, as with or without this hack, BP’s content comes full-width on 2014. At least and by default, in the whole white zone, right of the left black sidebar. Also remind that 2014 is a left aligned theme, which can let think that you have a lot of space on the right, specially on a large desktop screen.

    With 2012, it’s a bit different, as this theme use a class called full-width, directly in the html. To use the same technique, we have to echo the div to get the condition to work properly.
    And 2013 doesn’t use a full-width template.

    <?php if( !bp_is_groups_component() ) { 
           echo '<div id="content" role="main">';
     } else { 
    echo '<div id="content" class="full-width" role="main">';
     } ?>
Viewing 25 results - 11,926 through 11,950 (of 69,016 total)
Skip to toolbar