Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 15,376 through 15,400 (of 69,016 total)
  • Author
    Search Results
  • mcpeanut
    Participant

    @danbp yes thats what i was saying about it not being theme or plugin specific as a problem because you can create this no matter what install of bp you are using.

    If you haven’t receive the answer you expected, it’s because the described issue is not a issue, but how it works globally

    in otherwords you mean you all know about this and just cannot figure out how to stop this behavior from happening within buddypress yet after clicking the load more tab, sorry to be blunt lol but its quite obvious that this is the case, because then comes the question of why the collapsing of comments was added in the first place within buddypress if it can only work on the first 50 activity updates until clicking the load more button.

    i do not believe for a second that this was added with the intent of it not working when scrolling down and clicking the load more button, because as anyone who uses any kind of social network knows ” WE ALL SCROLL DOWN AND READ OLDER COMMENTS” especially if we havent logged in for a day or two.

    look i am not complaining about using free software that other people have spent countless hours and dedicated all there time to make it what it is, to be honest it is utterly brilliant and i thank everyone involved because without buddypress i wouldnt be able to achieve what my site can do, all i am saying is that it is a very troublesome feature the way it works right now and i think it really should be addressed. (if the feature was added to collapse comments after 5 for the first 50 status updates you see only then fine, but like i said i dont believe that for a second. its more like its an issue that has not been solved.

    this is why i have now added my own solution for now by adding a collapse and expand comments button for anyone to use after they have clicked the load more button, and if anyone wants help doing that i will give them the code.

    #203609
    shanebp
    Moderator

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php

    Look at bp_the_profile_field_name() and bp_the_profile_field_value() – they display the value.

    You’ll need to write a conditional using
    bp_get_the_profile_field_name and bp_get_the_profile_field_value() so that you can use the values without displaying them.

    For example:

    if( bp_get_the_profile_field_name() == 'current_weight' )
      $current_weight = bp_get_the_profile_field_value(); 
    
    if( bp_get_the_profile_field_name() == 'starting_weight' )
      $starting_weight = bp_get_the_profile_field_value(); 
    
    $weight_lost = $starting_weight - $current_weight; 
    
    echo '<br/>weight lost so far: ' . $weight_lost;
    #203597
    Hugo Ashmore
    Participant

    Initial thoughts is if you are still in development why are you choosing to use the bp-default theme approach rather than using the newer(since 1.7) theme compat approach and to which you allude in trying /our-theme/buddypress/ /our-theme/community/

    If that later approach were to work for you you need to understand that registration does not have it’s own folder/dir but the reg template lives in /members/ have a look at /bp-legacy/buddypress/ to see the directory structure which must be mirrored in the theme also templates under theme compat are not full page templates i.e complete with header and footer calls as they get called and injected into a parent template – generally page.php unless the hierarchy invoked and another named template is use.

    Although this doesn’t address your immediate issue, unless you are wanting the old bp-default visual styling I would suffer the change to theme compat templating now before you go further?

    #203585
    Henry Wright
    Moderator

    Take a look at this tutorial:

    Load Next WordPress Posts With AJAX

    It’s a good attempt at explaining how AJAX can be used to load more WordPress posts. The solution isn’t 100% perfect for you a) because it applies to WordPress posts and not BuddyPress activity items and b) the query is slightly off if a new post happens to be published between initial page load and load more button click.

    *But* it should give you a good starting point to gain understanding on how AJAX *might* be used to load more items into the DOM.

    #203580
    Marcella
    Participant

    There’s no real reason, other than knowing exactly what my theme is doing and what it’s outputting in each scenario. I appreciate it’s a little idiosyncratic but it’s just how I do it.

    If I do let buddypress.js by default, how would I make it sing nicely with this theme which is shrouded with custom markup?

    Appreciate any help offered, @hnla thank you.

    #203579
    Hugo Ashmore
    Participant

    Also I don’t load buddypress.js in my theme.

    Well that’s going to be a bit of an issue then, why are you not enqueueing the BP primary js file? This file handles a lot of BP JS functionality without wish your site experience is going to be pretty flat.

    I think you need to explain your approach to your theme in respect of BP integration as I can’t really think of a good reason to not use the file, overload and modify, is an option but to leave out altogether…

    #203578
    Hugo Ashmore
    Participant

    This really is a server issue rather than a Buddypress one.

    Internal server errors can have any number of possible causes that will be very hard for us to identify for you.

    Your partial log points to “End of script output before headers” this might be file/directory permissions issues as your on a localhost, try and ensure your permissions are as open as possible.

    Does your localhost site run correctly otherwise, is WP fully working in all respects, does .htaccess exist, is it correctly allowing permalink re-writing. Can you run updates through the WP admin interface? Is that domain actually in your hosts file?

    mcpeanut
    Participant

    @danbp do you not remember talking to me about this very issue a week or 2 ago in a post?

    this is the exact same issue i am talking about, its not theme or plugin specific it happens on any fresh and new buddypress install without any plugins running at all and with all the default themes, i have extensively tested with numerous fresh installs.

    as i mentioned in that thread this is a very troublesome problem, why on earth dont a few devs just check out this problem by just installing buddypress with a fresh wordpress install then post about 40-50 dummy status updates in the stream and then about 10 from the bottom add over say 7 comments then another 10 statuses up add another 7 comments and finally add another seven comments to near the top.

    now after doing that go and refresh the page and you will find that the first 7 comments you see in the closest status to the top will only show 5 of the 7 and an option saying show all comments will appear (how they should be), then scroll down to the load more button and click it and notice the statuses after you click the load more button show all 7 comments instead of hiding after 5!!!!!! (7 is used as an example so imagine if 30 comments have been made on a status! makes the activity stream very loooooooooooooooooong!

    this takes me on average less than 5 minutes to replicate every single time from a fresh install, the reason most of you are not seeing it is because i think you are not testing past 5 or more comments!

    #203572
    requiemz
    Participant

    Okay Ill fill out the questionnaire.

    1. Which version of WordPress are you running?

    4.0

    2. Did you install WordPress as a directory or subdomain install?

    Directory.

    3. If a directory install, is it in root or in a subdirectory?

    Subdirectory /var/www/web

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    No, its a vanilla install.

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

    Yes.

    6. Which version of BP are you running?

    None, installing for the first time.

    7. Did you upgraded from a previous version of BP? If so, from which version?

    No.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    Yes see below:

    Bulk Move
    Move or remove posts in bulk from one category or tag to another
    Version 1.2.1

    Envato WordPress Toolkit
    WordPress toolkit for Envato Marketplace hosted items.
    Version 1.6.3

    Post Type Switcher Allow switching of a post type while editing a post (in post publish section) Version 1.3

    Regenerate Thumbnails
    Allows you to regenerate all thumbnails after changing the thumbnail sizes.
    Version 2.2.4

    Social Count Plus Display the counting Twitter followers, Facebook fans, YouTube subscribers posts and comments.
    Version 3.0.0

    Ultimate Coming Soon Page Creates a Coming Soon or Launch page for your website.
    Version 1.11.1

    Velvet Blues Update URLs This plugin updates all urls in your website by replacing old urls with new urls.Version 3.2.2

    Widget Importer & Exporter Imports and exports widgets.
    Version 1.1.4

    WordPress Importer Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.
    Version 0.6.1

    9. Are you using the standard BuddyPress themes or customized themes?
    Not sure what this means, I bought the theme and the vendor says its designed to work with BuddyPress.

    10. Have you modified the core files in any way?

    No.

    11. Do you have any custom functions in bp-custom.php?

    No.

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    NA

    13. Please provide a list of any errors in your server’s log files.

    Not sure which logs you need but this looks relevant:

    [Wed Oct 01 05:30:30.686873 2014] [fcgid:warn]  [client XXX.XX.XXX.XXX:1029] mod_fcgid: stderr: PHP Warning:  opendir(/wp-content/themes/mightymag/inc/jackbox/img/graphics/): failed to open dir: No such file or directory in /var/www/web/wp-content/themes/mightymag/inc/jackbox/php/graphics.php on line 45, referer: http://mydomain.net/
    [Wed Oct 01 05:44:37.340658 2014] [fcgid:warn]  (104)Connection reset by peer: [client XXX.XX.XXX.XXX:1025] mod_fcgid: error reading data from FastCGI server, referer: http://mydomain.net/wp-admin/update.php?action=upload-plugin
    [Wed Oct 01 05:44:37.340781 2014] [core:error]  [client XXX.XX.XXX.XXX:1025] End of script output before headers: plugins.php, referer: http://mydomain.net/wp-admin/update.php?action=upload-plugin
    [Wed Oct 01 06:14:53.652260 2014] [fcgid:warn]  (104)Connection reset by peer: [client XXX.XX.XXX.XXX:1024] mod_fcgid: error reading data from FastCGI server, referer: http://mydomain.net/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54d70bf280
    [Wed Oct 01 06:14:53.652392 2014] [core:error]  [client XXX.XX.XXX.XXX:1024] End of script output before headers: plugins.php, referer: http://mydomain.net/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54d70bf280
    [Wed Oct 01 20:36:21.437859 2014] [fcgid:warn]  (104)Connection reset by peer: [client XXX.XX.XXX.XXX:1024] mod_fcgid: error reading data from FastCGI server, referer: http://mydomain.net/wp-admin/plugins.php?plugin_status=all
    [Wed Oct 01 20:36:21.437996 2014] [core:error]  [client XXX.XX.XXX.XXX:1024] End of script output before headers: plugins.php, referer: http://mydomain.net/wp-admin/plugins.php?plugin_status=all

    14. Which company provides your hosting?

    localhost

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?

    LAMP

    #203570
    bp-help
    Participant
    #203566
    1a-spielwiese
    Participant

    I tried the following:

    1st:

    I created a new profile ‘Tag’ (description: ‘der Geburt oder Teamgründung’).

    2nd:

    Consequently I substitute within the first code of @sbrajesh $dob_field_name by $tag.

    Besides I reduce $format="%y Years, %m Month(s), %d days" to $format="%y"

    Therefore the code, which I inserted into my reddle-child/functions.php, was:

    /**
    * Get Age from BuddyPress date of Birth
    * <a href='https://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $dob_field_name :name of the DOB field in xprofile, like Dob or Date of Birth
    * <a href='https://buddypress.org/community/members/param/' rel='nofollow'>@param</a> int $user_id : the user for which you want to retrieve the age
    * <a href='https://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $format: the way you want to print the difference, look t  for the acceptable agrs
    * @return string :the formatted age in year/month
    */
    
    function bpdev_get_age_from_dob($tag,$user_id=false,$format="%y"){
    if(!$user_id)
    $user_id=bp_displayed_user_id ();
    
    $dob_time=xprofile_get_field_data($tag, $user_id);//get the datetime as myswl datetime
    
    $dob=new DateTime($dob_time);//create a DateTime Object from that
    
    $current_date_time=new DateTime();//current date time object
    //calculate difference
    $diff= $current_date_time->diff($dob);//returns DateInterval object
    //format and return
    return $diff->format($format);
    
    }

    3rd:

    I substitute within the second code of @sbrajesh "DOB Field Name" by tag and I deleted "Age"..

    Therefore I inserted into my reddle-child/buddypress/members/members-loop-.php:

    <td>Alter: <?php echo bpdev_get_age_from_dob(tag); ?> | </td>

    Result: I get for all user the age ‘0’ (zero) displayed.

    4th:

    For test purpose I substituted tag by tag,bp_loggedin_user_id().

    Then I get displayed the correct age of that user, which is currently logged in with my computer – but as age of all users.

    5th:

    Conclusion:

    echo bpdev_get_age_from_dob(tag); (cfr. section 3rd) is not the correct code for my purpose. – What have I to change?

    I tried as well tag,bp_displayed_user_id and tag,bp_members – both without and with () at the end (- instead of only tag). – All four variants did not work.

    —-

    Additional remark:

    That, what is described within section 4th works not, when the current user his-/herself has set his/her date of birth. It worked only, when the date of birth was set by the superadmin and then another user logged in.

    #203562
    Ben Hansen
    Participant

    settings > buddypress > settings > first item

    #203223
    danbp
    Participant

    Ask the age instead of date of birth !

    Your age: [ ] text-filed numeric type

    else you have to code it yourself. Some answers here.

    #203214
    bp-help
    Participant

    @osamanuman
    If you hacked the buddypress files directly without creating a child theme or using theme compatibility then unfortunately you will lose those changes when you update BP. If you would like to keep those changes it will now be a pain because you will have to download all of those files you changed in cpanel then build a child theme or use theme compatibility overload and review:

    Theme Compatibility & Template Files


    Then change the new templates in your child theme or the the ones you overloaded using template compatibility by reviewing the old templates you modified. That is why it is important to only modify the files in your child theme or the ones in wp-content/themes/YOUR-THEME/buddypress then next time when buddypress has an update you will not have to worry about losing your modifications. As far as text goes you really should be making those changes in a language file. Please review:

    Customizing Labels, Messages, and URLs

    #203204

    In reply to: Can not post updates

    danbp
    Participant

    Seems to be a theme related issue.
    this premium theme requires buddypress template pack.

    If it worked before BP 2.1 and WP 4.0 updates, you have to ask on the theme support or try some guidance from the Codex.

    #203197
    danbp
    Participant

    @msgliniewicz, @nexus66

    is not a feature to ask for and is already existing.


    @msgliniewicz
    , if you want to remove your theme login part, see your theme support or documentation first. Generally, this is made by creating a child theme, from where you can remove in a safe way the whole html concerning the login part.


    Reminder

    1. WordPress is the heart of your install. In any case.
    2. BuddyPress is only a plugin
    3. You can use any theme you want to get WP and BP showing

    Site login

    1. WordPress is the only one who manage logins and comes with a login widget.
    2. BuddyPress add xprofile (if enabled) to the WP login form. In other words, BP extend the WP login form and give you the ability to use it’s own login widget.
    3. Your theme can also come with a login widget.

    But there is only one login logic: username | password | login/logout | and sometimes additionnal tools like Remeber me and/or Forgot your password ?

    This means that you can use the WP login widget, or the BP login widget or your theme login widget. The only thing you have to do is to activate ONLY(preferably) one of these widget and to stay clear and logic with yourself.

    • If you use BP, choose preferably BuddyPress tools to show the plugin.
    • If you want to promote a mega super genius awesome responsive coffe delivering theme over anything else installed on your site, use the theme tools.

    In this case, remind to checkout any conflict possibility between such a theme and any of your plugins, even BP.

    #203196
    1a-spielwiese
    Participant

    1st:


    @danbp
    / https://buddypress.org/support/topic/blog-comments-not-appearing-in-activity-stream/#post-186094:

    I inserted your code into my reddle-child/function.php – and it works for me as well. – Thank you!

    Result:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/chrono_comment_display.jpg

    2nd:

    @ https://buddypress.org/support/topic/blog-comments-not-appearing-in-activity-stream/#post-186095

    ‘he original problem was that search engine indexing was disabled on my site.’

    I had the same problem as well. – I would like to propose: Placing on wp-admin/network/settings.php?page=bp-components inside the ‘Website tracking’-section a hint like: ‘On the page wp-admin/options-reading.php indexing by search machines must be allowed.’

    PS.:

    I guess, that thread can be marked as ‘[Resolved]’. – Besides I would like to suggest: Placing somewhere in the forum sidebar a link to a stream of all threads, which are marked as ‘[Resolved]’.

    #203195
    1a-spielwiese
    Participant

    1st:

    ‘Such custom function are added to child-theme functions.php’

    I did this, and I deactivated my reddle-child/buddypress/activtity-folder by renaming it. – I get the text displayed, but not at the place, where I want:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/Activity_Intro.jpg

    2nd:

    I tried it as well by using the bp-custom.php:

    a) When I inserted your code at the end of that file, I got displayed nothing.

    b) And when I inserted it before the line <?php get_footer(); ?>:

    <?php
    /**
     * BuddyPress: Full-width template
     *
     * A custom page template without sidebar.
     *
     * @ since Reddlle 1.3.1 and BuddyPress 2.1
     */
    
    get_header(); ?>
     
    	<div id="primary">
    		<div id="content" role="main">
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', 'page' ); ?>
    			<?php endwhile; // end of the loop. ?>
    		</div><!-- #content -->
    	</div><!-- #primary --> 
    
    <?php get_footer(); ?>

    then I got my introductory text displayed behind the activity stream.

    #203190
    danbp
    Participant

    @reinforcez,

    the link given by @drakedoc was started over 4 years. Many solutions are given in this thread, and the last one was published a year ago.

    That solution works for 1.9 and above !

    /* Skip the Gravatar check when using a default BP avatar */ 	
    add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );

    By the way you have also to modify the global WP setting of avatars to “mystery man” or “nothing”.

    Another solution to avoid gravatars slowing down a big site (at least > 500 members), is to use a specific cache plugin like Nix Gravatar Cache. Complete list here.

    #203183

    In reply to: Customize Profile Tabs

    chris
    Participant

    Any update on this? I’d love to reduce the number of BuddyPress menu items (tabs) by creating a dropdown menu of BP items. There are just too many tabs right now. What is the best way to customize the default BP menu?

    #202989
    jessogden
    Participant

    Thanks both – the directory was setup correctly, I was just in the wrong place (as suspected). Editing the buddypress\groups\single\members.php did the trick. Thanks again!

    #202819
    Hugo Ashmore
    Participant

    May not need pointing out, but remember that the directory/folder structure you see in /bp-legacy/ must be replicated faithfully in the theme or child theme where/bp-legacy/ is replaced with either /buddypress/ or /community/ sitting in the top level of the theme root. so if a file lives in a particular folder under bp-legacy it must live in same folder under your theme structure.

    Hugo Ashmore
    Participant

    @bitpath
    It may work better to manage a larger chunk of the activity truncation so you have control of things like excerpt length, appended text, removed create excerpt elipses, and ability to remove the class that Ajax hooks to while still allowing appended link to function for single activity. It’s a little dirty but…:

    
    function custom_activity_excerpt_read_more( $excerpt, $text, $append_text ) {
    // Manage the excerpt length
    $excerpt_length = 100;
    // Manage the appended string for truncated excerpts so we have a link to single activity
    $append_text = '&hellip;';
    // Manage the initial text run through the bp create excerpt filter  to remove 'ending'
    $excerpt = bp_create_excerpt( $text, $excerpt_length, array( 'ending' => __( '', 'buddypress' ) ) );
    // Manage the excerpt  appended displayed markup & rename the span class 'activity-read-more' to disable Ajax hook
    $excerpt = sprintf( '%1$s<span class="custom-activity-read-more" id="%2$s"><a href="%3$s" rel="nofollow">%4$s</a></span>', $excerpt, $id, bp_get_activity_thread_permalink(), $append_text );
    return $excerpt;
    }
    add_filter('bp_activity_truncate_entry', 'custom_activity_excerpt_read_more', 10, 3);
    
    
    #202817
    shanebp
    Moderator

    Thank you for your well-formed question.

    Try your changes in this file in your overloads:
    buddypress\groups\single\members.php

    #202812
    1a-spielwiese
    Participant

    It works e.g. with:

    #buddypress ul.item-list li img.avatar {
        width: 45px;
      	height: 45px;
    }

    Note:

    1st #buddypress ul.item-list li img.avatar is also used for the photos within the member list. – So, I decided finally for 80px for the first pictures within in the activity list, and for 90px for the second photos there as well as for the photos within the member list.

    2nd I tried to change within the member-loop.php

     			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>

    into

     			<div class="item-avatar_2">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>

    and to define within the ‘Simple Custom CSS’-Plugin:

    #buddypress ul.item-list li img.avatar_2 {
        width: 110px;
      	height: 110px;
    }

    But this didn’t work.

Viewing 25 results - 15,376 through 15,400 (of 69,016 total)
Skip to toolbar