Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,626 through 16,650 (of 69,016 total)
  • Author
    Search Results
  • #183251
    saxisme
    Participant

    @danbp, thank you very much!

    Surely this leads me to the right direction – I am now using this function in other parts of the site.

    What I am struggling to to is something slightly different: put the xprofile field (Company) after the user name, in the same user profile link.

    Ex: <a original-link-to-member-profile-page>saxisme - company xyz</a> posted a content in the group ABC.

    I am starting to play with what @danpdfr is posting here

    Thank you in advance!

    danbp
    Participant

    The add friend button contains an ajaxified url, a cookie, a nonce and some other stuff. By default, this button is intended to be on members directory and on the profile header.
    Open /bp-friends/firends-widget.js to see how BP actually handle this.

    If you absolutely need to have this button elsewhere, a custom page for example, you need to extend the original class witch is in bp-xprofile-loader.php:38 (BP 2.0.1)

    Otherwise, any action on this added button will always return to the member profile page after a click and not reload like it does when in the member directory.

    I’m not a developper so i can’t help you more.
    Perhaps read here for better understanding of this button.

    File reference

    sfikas
    Participant

    I forgot to mention the version of buddypress and wordpress in my previous post.
    Buddypress 2.0.1
    Wordpress 3.9.1

    #183209
    danbp
    Participant

    Good idea but not yet implemented. But hopefully in 2.1 … Read this ticket

    #183208
    danbp
    Participant

    Maybe read here, the post and all the comments:

    Fetching and Showing only Specific fields from BuddyPress XProfile data

    #183205
    shanebp
    Moderator

    You may find some hints here:

    Add Meta Box to Admin Extended User Profile

    #183204
    shanebp
    Moderator

    You can always submit a ticket at
    https://buddypress.trac.wordpress.org/

    guoyunhebrave
    Participant

    After disabled BuddyPress, robots didn’t stop. I am almost sure the robot can skip the register page (both WordPress signup.php and BuddyPress register page).

    Maybe robots have a backdoor to register on WordPress. I don’t know how to further test.

    #183201
    erickojitoz
    Participant

    Yes I assigned each page. For example, activity for activity, members for members, etc. And it makes the change, because for example, when plugin activated the page activity shows “Sitewide Activity” as tittle, when BP is inactive only shows “Activity”.

    I tried creating a buddypress.php page, I even changed the header and footers. I moved all the documents from bp_template/legacy and didn’t work. I tried copying the basic structure from the default themes and nothing.

    When I activate other themes, they perfectly work, so thats why I think the problem is in my template.

    I am doing something wrong?

    guoyunhebrave
    Participant

    I installed this plugin today. I keep receiving robots registering until now.

    I think the robots have passed by WangGuard and any other CAPTCHA plugins, because all of them have no effect.

    Before I use BuddyPress on this site, I didn’t meet these problem. A simple CAPTCHA plugin works well. I will try to disable BuddyPress for hours, and see what will happen.

    #183193
    wpleo
    Participant

    Thank you @shanebp!

    You’re right, I found this strange _x. But it didn’t make the translation work for me.

    I got this bp-custom.php:

    define( ‘BPLANG’, ‘pt-br’ );
    if ( file_exists( WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
    load_textdomain( ‘buddypress’, WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
    //echo “FOUND IT!!”;
    }

    I’m pretty sure that this fil is being read and that the language file is being found because of the flag that I put: “FOUND IT!!”. In fact everything is being translated but the titles! No title got the proper translation, like:

    http://astronomia.blog.br/forum-astronomia/atividades/ (Sitewide Activity)
    http://astronomia.blog.br/forum-astronomia/pessoas/ (Members)
    http://astronomia.blog.br/forum-astronomia/grupos/ (Groups)

    Each one of these expressions is translated in the .po and .mo, acording to Loco Translate.

    Already deleted the pages and re-created it but nothing.

    I’m still trying, if I find a solution I’ll post it here.

    Thanks for the help!

    danbp
    Participant

    Since BP 2.0, you can use bp_parse_args to customise template loops and on a much easier way as never before.

    The example function below will hide profile groups with ID 1 and profile fields IDs 6, 18 & 39 on the public profile screen of each member and stay visible on the edit screen. Tested & approved 2.0.1

    If you get some php warning while using this function, be aware that there is a bug in 2.0.1 bp-xprofile-classes.php (fixed. See ticket). Simply apply the lattest patch to get rid of this error.

    function flegmatiq_profiles( $retval ) {	
       // conditionnals to set accordingly to your purpose
    	if( !is_user_logged_in()  && !bp_is_profile_edit() ) { 
    		$retval['exclude_groups'] = '2';	
    		$retval['exclude_fields'] = '6,18,39';	
    		
    	} 
    	return $retval;
    	
    }
    add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );

    In your particular case, you have to play with the conditionnals

    The example below is to give you an idea how to handle this. Not tested !

    function flegmatiq_profiles( $retval ) {
    $myfield = xprofile_get_field_data( 'Faculty', $user_id );
    if( empty( $myfield ) )
    return; // or echo
    
       if( $myfield == "Faculty" ) 
          if( bp_is_profile_edit() ) { 
    		$retval['exclude_groups'] = '1,56';	
    		$retval['exclude_fields'] = '6,18,39';	.
          }
       if $myfield == "field_name_2";
         // do something other...
    
    return $myfield;
    
    add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );
    #183185
    danbp
    Participant

    Yes, I did search before asking, but this 2 string are so hard to match in the search results.

    The problem is not the strings, but the translation of them. And this is most probably a theme issue or a wrong path to BP’s translation.
    You can check this point by activating one of WP’s default template. If it’s translated, you know the culprit.

    It might just be that the theme author needs to update the theme to be compatible with the latest WP and BP versions. As we have no access to the premium theme, best place to ask is the theme’s support forums or contact theme author.

    If you’re comfortable with code, here’s a workaround. Be aware that this does not solve the problem, but only ignore it.

    #183184
    Bard
    Participant

    This is what I have:
    Theme name(themeforest):Klein-2.0.9
    Wordpress 3.9.1
    bbPress 2.5.3
    Breadcrumb NavXT 5.0.1
    BuddyPress 2.0.1
    Contact Form 7 3.8
    Gears 1.3
    WooCommerce 2.1.8
    WPBakery Visual Composer 3.7.3

    Yes, I did search before asking, but this 2 string are so hard to match in the search results.

    #183182
    danbp
    Participant

    BP, bbP or WP user are all registered in the same DB table: wp_users

    I’ve never actually found a link that goes to the old bbPress profiles

    You expect something other ? And if they don’t exist, they cannot redirect.

    If you havee other questions about bbp/bp forum, read here first. 🙂

    #183180
    danbp
    Participant

    @dreamwork
    WP version ?
    BP version ?
    Theme name ?
    Used Plugins ?

    Did you search on this forum before asking ?

    #183179

    In reply to: notifications

    danbp
    Participant

    Hello @projectfms,

    Made is a premium theme fom 2012. And support is included in the licence price. His compatibility is actually given for WP 3.7 and BP 1.8.
    Checked your home page source code and found a path to bp-default:
    https://www.glosszenenzo.nl/wp-content/plugins/buddypress//bp-themes/bp-default/_inc/global.js?ver=20110818

    Give a try to this solution.
    – rename the mentionned global.j into xxxglobal.js
    – go to wp-content/plugins/buddypress/bp-templates/bp-legacy/js/ and copy buddypress.js
    – return to /wp-content/plugins/buddypress//bp-themes/bp-default/_inc/ paste buddypress.js and rename it to global.js
    – clear browser cache
    – check if it changed something.

    Otherwide you have to ask the theme author. We cannot help more here for premium theme issues.

    Also read general theme documentation.

    #183176

    @godavid33,@henrywright

    I brought the loading function back in one of the theme am building by using just css.

    1, I added ajax spinner

    2, I changed the button background while loading to make it look disabled.

    below is an example for the post button:

    #buddypress #whats-new-form a.loading,
    #buddypress #whats-new-form input.loading {
    padding-right: 25px ! important;
    background-color:#bbb ! important;
    background-image:url(“/wp-content/themes/your-theme/img/ajax-loader.gif” ) ! important;
    background-position: 93% 50% ! important;
    background-repeat: no-repeat ! important;
    }

    using #buddypress a.loading{} will affect almost all the button.

    Naijaping

    #183167
    Tbarnes37
    Participant

    Hi @soran7

    I’ve narrowed the problem down further and found a hack that works for me. If you look in buddypress-functions.php, there’s a function at line 739 called bp_legacy_theme_new_activity_comment. At line 770 is the process of inserting the new comment into the activity stream.

    It begins by checking if $activities_template->activities[0] is set. I’ve tested this function on an actual group page and found that this returns true, so it’s able to handle the activities effectively. However, on my custom template, this returns false; thus, the new comment data is never inserted. Of course this is separate from the process of saving the new comment to the database, so it makes sense that the comments still show up after refresh.

    I’m still hoping to find a less hacky way to do this, because my current solution messes up other activity stream pages, but I’ve managed to get my custom template working by copying buddypress-functions.php into my theme folder and modifying line 768 to have a ‘groups’ scope.

    So change line 768 from this:
    bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );

    to this:
    bp_has_activities( 'scope=groups&display_comments=stream&hide_spam=false&include=' . $comment_id );

    Hope that helps! And if you’re able to find a better, less damaging way, please let me know. My hangup currently is that even if I manually set $bp->current_action to ‘groups’ in my template, it gets over-written at some point after page load, due to a url check that finds my template to not be at a group home url.

    Boone Gorges
    Keymaster

    See how BuddyPress does this: https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-groups/bp-groups-template.php

    I don’t know why BP does it this way (I would have to check the logs – it seems fishy) but in any case, this probably explains why you’re not seeing anything in your template. You should mimic what you see in that function.

    #183157

    In reply to: notifications

    Glszn
    Participant

    Buddypress is getting on my nerves!!

    #183156
    danbp
    Participant

    Hi @saxisme,

    This function will add the company name under each user avatar, on every activity screen (swa, profile, friends…)
    To do so, you have to add a do_action to the template. In your case, add it into (child theme)/buddypress/activity/entry.php, before the closing tag of the div containing the avatar (around line 24)

    The snippet goes into theme’s functions.php or bp-custom.php

    function saxisme() {
    	$user_id = bp_get_activity_user_id();
    	$company = xprofile_get_field_data('42', $user_id); // field ID or name
    		
    	echo '<div class="authorinfo">'. $company . '</div>';
    	
    }
    
    add_action( 'showsaxisme', 'saxisme' );

    You add this to entry.php
    <?php do_action( 'showsaxisme'); ?>

    #183152
    r-a-y
    Keymaster

    We used to use an AJAX spinning GIF, but removed it due to various theme issues:
    https://buddypress.trac.wordpress.org/ticket/4610

    I’ve added a patch for an alternative to the throbbler in 4951:
    https://buddypress.trac.wordpress.org/ticket/4951

    It uses a progress bar animation for the background of the button.

    #183149
    godavid33
    Participant

    It amazes me that with such a simple solution, no one was able or willing to answer this :/

    At any rate, here is the fix. F*** functions.php, just copy buddypress.js and put it in the /js directory of your theme. Edit till your heart’s content.

    GG WP

    #183126
    godavid33
    Participant

    Still a problem. Perhaps a better, clearer, more easily answered question would be “How can I override buddypress javascript?”

Viewing 25 results - 16,626 through 16,650 (of 69,016 total)
Skip to toolbar