Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,076 through 12,100 (of 69,129 total)
  • Author
    Search Results
  • #244454

    In reply to: Where to learn.

    Henry Wright
    Moderator

    The best place to learn how BuddyPress works is the codebase. Over the past few years, the inline docs have been improved tremendously and are now at a point where they’re very useful.

    #244445
    anbusurendhar
    Participant

    https://buddypress.org/support/topic/make-your-own-custom-buddypress-page/.

    The snippet I found in the above link is as below:

    
    define('BP_EXAMPLE_SLUG', 'fun');
    
    function bp_show_example_page() {
    
    global $bp, $current_blog;
    
    if ( $bp->current_component == BP_EXAMPLE_SLUG && $bp->current_action == '' ) {
    
    // The first variable here must match the name of your template file below
    
    bp_core_load_template( 'fun', true );
    
    }
    
    }
    
    add_action( 'wp', 'bp_show_example_page', 2 );
    
    #244444
    anbusurendhar
    Participant

    Sorry the link is Link. My mistake

    #244443
    anbusurendhar
    Participant

    In buddypress, activity, members, group have a definite pages like ‘domain/activity’, ‘domain/members’, ‘domain/group’, respectively. Likewise I’m trying to create my own custom page like ‘domain/mycustom’.

    For this purpose I referred John James Jacoby’s Post in here. The snippet used in that link didn’t work for me. I don’t know where I’m missing.

    From that snippet, I found that $bp->current_component returns me an empty string.

    #244438
    anbusurendhar
    Participant

    @danbp : Thank You very much for your reply.

    Even I’ve tried bp_current_component() and bp_is_current_component() functions with no success.

    Actually this function works fine when used in default buddypress pages like domain/activity/. This returns me “activity”, which is exactly correct. But when I tried this in my custom page (domain/custompage), I’m getting an empty string.

    #244433
    bravenguyen
    Participant

    I’ve got the same problem. My installed theme is KLEO. I don’t know how but when I installed the same KLEO and related plugins on my PC’s localhost. The register/activate pages of BuddyPress v2.3.3 DID APPEAR! I opened both online and localhost pages on the same browser Google Chrome. How weird!
    BTW, I guess we have to create the pages manually.Thanks @danbp for your reply

    #244431
    djsteveb
    Participant

    @swissprice – There are several “chat” plugins what “work with wordpress / buddypress” – it would be easy to establish a group chat room that allows registered and non-registered users to chat with each other via the main chat room – and they can private message each other there.

    As far as “begin chat with this user” – I think you would need something that says “User A” is online now – and a setting that would allow a non-registered, non-logged in person to send a “message”. I think I saw a thread a while back where someone was trying to adapt the “single user profile page” to allow guest comments, aka activity post on that profile / user’s activity page..

    Not sure exactly what you are going for here.

    #244429
    LJagermaster
    Participant

    @edoescad you might have more luck creating your own post herehere

    I’m not a developer, in fact this was my first ever post on bp.org so I can’t help you on this… 🙂

    #244427
    deklein
    Participant

    Any suggestion, I’ve done a lot of looking around and have not found anyone having a similar problem!

    I have double checked that under Screen Options: BuddyPress is enabled, obviously. The plugin is active and I do not know of any errors. I have no idea as to why none of the menu items are appearing.

    #244418
    danbp
    Participant

    When you mention a member in a blog comment, that member is informed of that on is profile notification screen and via the notif bubble in user menu (top right under howdy). But no mail is send in this case.

    May be related topics:
    https://buddypress.org/support/topic/no-notifications-for-mentions-in-comments/
    https://buddypress.org/support/topic/notifications-component-fixing-custom-templatestemplates/

    Also:

    bp_notifications_add_notification

    #244417
    danbp
    Participant

    No. You have to create Activate/Register pages manually.

    Configure BuddyPress

    #244416
    danbp
    Participant

    hi @bigkahunaburger,

    Give this a try (goes to bp-custom.php or child-theme functions.php)

    function bpfr_get_user_comments_on_profile() {
    
    // number of comments to show per page
    define( 'DEFAULT_COMMENTS_PER_PAGE', 3 );
    
    $page = (get_query_var('page')) ? get_query_var('page') : 1;
    
    $limit = DEFAULT_COMMENTS_PER_PAGE;
    
    $offset = ($page * $limit) - $limit;
    
    $param = array(
    	'user_id' 	=> bp_displayed_user_id(),
    	'status'	=> 'approve',
    	'offset'	=> $offset,
    	'number'	=> $limit
    );
    
    $total_comments = get_comments(array(
    	'orderby' => 'comment_date',
    	'order'   => 'ASC',
    	'status'  => 'approve',
    	'parent'  => 0
    ));
    
    $pages = ceil(count($total_comments)/DEFAULT_COMMENTS_PER_PAGE);
    $comments = get_comments( $param );
    
    $args = array(
    	'base'         => @add_query_arg('page','%#%'),
    	'format'       => '?page=%#%',
    	'total'        => $pages,
    	'current'      => $page,
    	'show_all'     => false,
    	'mid_size'     => 4,
    	'prev_next'    => true,
    	'prev_text'    => __('« backward'),
    	'next_text'    => __('onward »'),
    	'type'         => 'plain'
    );
    
    // Output pagination
     echo paginate_links( $args );
    ?>
    
    <ul>
    <?php
    
    	foreach($comments as $comment) {
    
    	// short version
    	//echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">View post</a></li>';
    	
    	// long version
    		echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">'. get_the_title( $comment->comment_post_ID ) .'</a> Comment: '. get_comment_date( '', $comment ) .'</li>';
    	}
    ?>
    </ul>
    <?php
    
    }
    add_action ( 'my_profile_comment', 'bpfr_get_user_comments_on_profile' );
    
    function bpfr_comment_profile_setup_nav() {
    global $bp;
    
    	$parent_slug = 'comments';
    	$child_slug = 'comments_sub';	
    	
    	// Add nav item
    	bp_core_new_nav_item( array(
    	'name' => __( 'My comments' ),
    	'slug' => $parent_slug,
    	'screen_function' => 'bpfr_profile_comment_screen',
    	'position' => 40,
    	'default_subnav_slug' => $child_slug 
    	) );
    	
    	//Add subnav item 	 
    	bp_core_new_subnav_item( array( 
    	'name' => __( 'My latest comments' ), // as content title
    	'slug' => $child_slug, 
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 
    	'parent_slug' => $parent_slug, 
    	'screen_function' => 'bpfr_profile_comment_screen'
    	) );
    }
    
    		function bpfr_profile_comment_screen() {	
    			add_action( 'bp_template_content', 'bpfr_profile_comment_screen_content' );
    			bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    		}
    
    		function bpfr_profile_comment_screen_content() {
    			do_action( my_profile_comment );
    		}
    
    add_action( 'bp_setup_nav', 'bpfr_comment_profile_setup_nav' );

    Reference: https://codex.wordpress.org/Function_Reference/get_comments

    To do the same for user’s post, see here:
    https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/

    #244413
    danbp
    Participant

    I can’t figure out what is going on.

    That snippet is 6 years old. BuddyPress is slightly different today.

    Some explanation here:

    bp_is_current_component

    bp_current_action

    May be you can also read here:

    Template Overload from a Plugin

    #244411
    djsteveb
    Participant

    – it’s the (or one of the) “default” wp themes ( https://wordpress.org/themes/twentyfourteen/ )
    about the only way you will get any kind of support with bp or / and rtmedia..

    it’s not the easiest thing to mod – but at least it works, and bp has some stylesheets included that massage it into something better than the average theme for some bp pages..

    I finally got deep into it to style some changes at the various media queries / screen sizes..

    btw – did you try changing your premium themes style.css to those changes to see if they work?

    if you search the bp forums for other premium themes you will see that even ones selling as “the best or the most popular buddypress theme” – seem to have issues and lack good support.. search the forums for “kleo” for example – lol

    I am sticking with twenty fourteen ’till things mature a bit (recent changes in wp and bp have made things complex in some ways) –

    #244406
    Venutius
    Moderator

    Within the menu page under Appearance there is an option under Buddypress called Groups. you should use this as your menu item instead of the current Groups menu item, this will only display the groups the user is a member of.

    #244404
    djsteveb
    Participant

    Yep – I think most of us want better backend choices for what things are included and excluded in the activity stream – I wrote a detailed post reply recently on this thread here: https://buddypress.org/support/topic/content-activity-stream/

    but I had too many links or wrong words in it or something and I guess it got stuck in the moderation que or just blackholed by akismet – who knows..

    #244403
    djsteveb
    Participant

    @liharris – welcome to the suck (that is theme issues with bp (and other things bp related like rtmedia) (welcome to the suck a movie quote, kind of joking)-

    you will likely not get any help in the bp forums when it comes to premium themes, you should contact the theme author.

    I did a quick look, and I must say I have zero knowledge of that theme and all the css things that could affect everything – I am also not a css expert.

    My first thought is that you can create something very similar with a free theme from the wp-repo and a one of the “cards” plugins from the from wp-repo..

    my second thought is wondering why the theme author did not include a couple of css rules like:

    .header {
    margin-left: -200px !important;
    }

    body {
    margin-left: 200px;
    }

    but again I have no idea what he/she is trying to do with whatever elements, and how one may affect another in different situations..

    you could try to make a child theme (good luck with that friggin process!)

    and adapt those rules..

    but I suggest that you don’t get married to that theme and buddypress – even if you find a theme that actually says “works with buddypress” – I think you will find little issues to contend with – and from what I have seen (lately even) is that these premium theme authors (And free theme authors) have trouble keeping up with bp and other things that are (IMHO) needed addons with bp (rtmedia, or/and media press, or that other one – umm. photo something)

    anyhow – I gave up on all premium and free themes and have been stuck with working with 2014 theme as it’s the only thing that gets any kind of “working well with bp / rtmedia and other things” – I’m sure other smarter coders mileage is different.

    #244394
    chris_van_r
    Participant

    Okay so I looked in the database, in wp_options there’s a “show_avatars” row and it had no value set. I set the option_value to 1 and everything worked.

    Any clue as to why there was no value in this option? Not even a 0, as in disabled.
    Where in the buddypress settings is the checkbox to alter this value even? Am I overlooking something? I’m confused.

    The checkbox “Allow registered members to upload avatars” only seems to control the “bp-disable-avatar-uploads” value in wp_options

    Henry Wright
    Moderator
    developer
    Participant

    buddypress group creation first step


    @henrywright
    are you sure?
    because bp_activity_comment_posted not working actually…
    sorry for bothering you …
    thanks in advance

    #244380
    shanebp
    Moderator

    Try this in your theme/functions.php or bp-custom.php

    function is_user_online() {
    
       $last_activity = bp_get_user_last_activity( bp_displayed_user_id() );
    
       $curr_time = time(); 
    
       $diff = $curr_time - strtotime( $last_activity );
    
       $time = 5 * 60;  // must be in seconds
    
       if( $diff < $time )
          echo '<br/>online';
       else 
          echo '<br/>not online';
    }
    add_action('bp_before_member_header_meta', 'is_user_online');
    #244372
    Henry Wright
    Moderator

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

    In theory, yes, BuddyPress can handle millions of users. BuddyPress will add rows to the database without problem, and that database can scale to a very large size.

    In practice, there are things that might have an impact on that. Your hardware will play a big role. For example, will a million users all be logged in at the same time, each posting a video clip or large image?

    #244371
    Prabin
    Participant

    Please look into other forum topics as well..

    https://buddypress.org/support/topic/bp-could-handle-a-huge-number-of-members/

    https://buddypress.org/support/topic/what-about-i-got-10-million-users-or-more/

    Personally, I think BP supports thousands of users. There are few BuddyPress sites with abounding users. You just need a good server and a good database space.

    #244366
    Prabin
    Participant

    may be it’s a permalink issue. Try editing your htaccess file.

    Navigation Links Return 404 Errors

    https://codex.wordpress.org/Using_Permalinks

    #244359

    In reply to: Display Name

    danbp
    Participant

    @jake-reimer,

    if you don’t use bp-default theme, this advice from @prabin04 is wrong:
    Copy BuddyPress *members* folder from bp-default folder inside your child theme, and search for member-header.php file located inside members->single folder.

    You need to take the copy from bp-templates/bp-legacy/buddypress/

    Theme Compatibility – Customizing

Viewing 25 results - 12,076 through 12,100 (of 69,129 total)
Skip to toolbar