Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,726 through 16,750 (of 69,108 total)
  • Author
    Search Results
  • #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?”

    #183125
    SK
    Participant

    @henrywright
    Unfortunately no updates. The wireframes have been done for a while, but I don’t believe a decision has been taken.


    @ciromanigrasso

    Please visit and chime in at
    https://buddypress.trac.wordpress.org/ticket/4132 and https://buddypress.trac.wordpress.org/ticket/5583

    #183120
    danbp
    Participant

    Probably a theme issue. Which one do you use ? If you use a premium theme, you should ask on the theeme support anyway, not here.
    Read here.

    #183119
    danbp
    Participant

    Please read here.

    #183118
    danbp
    Participant

    @ciromanigrasso
    open a new tread please – this one is 3 1/2 years old…. 👿 – read here before and explain YOUR issue!

    Thx

    #183117
    danbp
    Participant

    @simpleone,
    you found the reason why it doesn’t work on one site and not on the other !
    1.9.1 and 2.0.1 are sligthly different BP version !
    And the function you mention whas only introduced in BP 2.0, so this can’t anyway work on previous versions.

    Actually there is a small bug in BP 2.0+ when using this function to modify profile groups. I opened a ticket about this and @imath provided a patch that works and let the function handle correctly on profile groups. I personnally use this function to conditionnally show/hide fields from the base group without problems. My profile form contains over 20 fields in differents groups, even Base, and are all required and viewable by members only.

    I advise you to cancel whatever you have done about this so far, to apply the patch, to add the function to bp-custom.php and to test again.

    danbp
    Participant

    Please don’t post BP files, it’s really unnecessary. We’re all BP user ! 👿
    Sorry, i didn’t correctly understand your request. I thought you wanted to change the order of the selectbox filters. If you also interested, see this old tread.

    SWA shows by default all site activities and they can be filtered. It is well documented on the Codex.

    If for some reason you don’t want to modify a theme file, you can use a custom function and put it into bp-custom.php

    Example ( BP 2.0+ only)

    function make_swa_show_notice_only( $retval ) {	
    	
    	 if ( bp_is_page( 'activity' ) ) {
    		$retval['action'] = 'activity_update';					
    	 }
    	
    	return $retval;
    	
    }
    add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );

    Now the swa shows only notices (if exist). If you need to see a member activity, you have to go on his profile. Same for groups, the activity is only on the group page.

    dugfunny
    Participant

    heres my code….

    <?php do_action( 'bp_before_directory_activity' ); ?>
    
    <div id="buddypress">
    
    	<?php do_action( 'bp_before_directory_activity_content' ); ?>
    
    	<?php if ( is_user_logged_in() ) : ?>
    
    		<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'template_notices' ); ?>
    
    	<div class="item-list-tabs activity-type-tabs" role="navigation">
    		<ul>
    			<?php do_action( 'bp_before_activity_type_tab_all' ); ?>
    
    			<li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    
    			<?php if ( is_user_logged_in() ) : ?>
    
    				<?php do_action( 'bp_before_activity_type_tab_friends' ); ?>
    
    				<?php if ( bp_is_active( 'friends' ) ) : ?>
    
    					<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    
    						<li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    
    					<?php endif; ?>
    
    				<?php endif; ?>
    
    				<?php do_action( 'bp_before_activity_type_tab_groups' ); ?>
    
    				<?php if ( bp_is_active( 'groups' ) ) : ?>
    
    					<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    
    						<li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    
    					<?php endif; ?>
    
    				<?php endif; ?>
    
    				<?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>
    
    				<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    
    					<li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
    
    				<?php endif; ?>
    
    				<?php if ( bp_activity_do_mentions() ) : ?>
    
    					<?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>
    
    					<li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><span><?php printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></span></strong><?php endif; ?></a></li>
    
    				<?php endif; ?>
    
    			<?php endif; ?>
    
    			<?php do_action( 'bp_activity_type_tabs' ); ?>
    		</ul>
    	</div><!-- .item-list-tabs -->
    
    	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    		<ul>
    			<li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    
    			<?php do_action( 'bp_activity_syndication_options' ); ?>
    
    			<li id="activity-filter-select" class="last">
    				<label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
    				<select id="activity-filter-by">
    					<option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    					<option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
    
    					<?php if ( bp_is_active( 'blogs' ) ) : ?>
    
    						<option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    						<option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
    
    					<?php endif; ?>
    
    					<?php if ( bp_is_active( 'forums' ) ) : ?>
    
    						<option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    						<option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
    
    					<?php endif; ?>
    
    					<?php if ( bp_is_active( 'groups' ) ) : ?>
    
    						<option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    						<option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
    
    					<?php endif; ?>
    
    					<?php if ( bp_is_active( 'friends' ) ) : ?>
    
    						<option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
    
    					<?php endif; ?>
    
    					<option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option>
    
    					<?php do_action( 'bp_activity_filter_options' ); ?>
    
    				</select>
    			</li>
    		</ul>
    	</div><!-- .item-list-tabs -->
    
    	<?php do_action( 'bp_before_directory_activity_list' ); ?>
    
    	<div class="activity" role="main">
    
    		<?php bp_get_template_part( 'activity/activity-loop' ); ?>
    
    	</div><!-- .activity -->
    
    	<?php do_action( 'bp_after_directory_activity_list' ); ?>
    
    	<?php do_action( 'bp_directory_activity_content' ); ?>
    
    	<?php do_action( 'bp_after_directory_activity_content' ); ?>
    
    	<?php do_action( 'bp_after_directory_activity' ); ?>
    
    </div>
    
    #183093
    Henry Wright
    Moderator

    Check out this article on what hooks are and how you can use them to interact with WordPress and BuddyPress:

    https://codex.wordpress.org/Plugin_API

Viewing 25 results - 16,726 through 16,750 (of 69,108 total)
Skip to toolbar