Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,076 through 13,100 (of 73,986 total)
  • Author
    Search Results
  • gastronimo
    Participant

    WP 4.6.1
    BP 2.6.2
    BP Multi Network 0.1.1

    Does anyone know how to force all BP pages to a secondary site/subdomain within each BP network?? like in:

    Multiple BuddyPress Social Networks

    Supposedly, I have to define the desired BP $site_id for each network_id within a mu-plugin.

    So far, I got this from https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
    But, I know its incomplete, so what is missing here?:

    <?php
    /* Set which site ID BuddyPress will run on in each network:  
     * https://make.wordpress.org/core/tag/4-6+dev-notes/page/2/
    */
    
    function pl_bp_network_site_filter
          global $wpdb;
    	
        	if ( $wpdb->siteid = 1 || define ( 'BP_ROOT_BLOG', $site_id ) );
    	// Define this function for sharing BP throughout/across the sites of this network
    	//define ( ‘BP_ENABLE_MULTIBLOG’, true );
    	
    	if ( $wpdb->siteid = 2 || define ( 'BP_ROOT_BLOG', $site_id );
    	// Define this function for sharing BP throughout/across the sites of this network
    	//define ( ‘BP_ENABLE_MULTIBLOG’, true );
    	
    	if ( $wpdb->siteid = 3 || define ( 'BP_ROOT_BLOG', $site_id );
            // Define this function for sharing BP throughout/across the sites of this network
    	//define ( ‘BP_ENABLE_MULTIBLOG’, true );
    
    add_filter( 'bp_get_root_site_id', 'filter_root_site_id' ); // return site ID integer
    
    	}
    }
    
    /**
     * Call when the plugin is activated
     */
    register_activation_hook(__FILE__, 'define-BP-root');

    Anyone else looking for the same solution?

    #259201
    GeekGal
    Participant

    Thanks. That goes a little bit beyond what I was looking for. Was hoping just for a theme. Do you recommend any reliable stable themes for buddypress? Thanks.

    #259198
    danbp
    Participant

    Sorry, I haven’t tested the plugin i mentionned. You’re right it doesn’t show a button but simply display favorites differently.

    OK, here is a snippet you can add to bp-custom.php which will add a Favorite button to blog posts.

    Note
    the function works with currrent BP version (2.6.2).
    The grey side of this solution is that you have to use a child-theme and to tweak a little the way the button will show. This is very theme dependant and would not be used the same way if you use ie. Twenty Sixteen or ie. Graphene.

    While using 2016, you can simply echo the button on the template.
    If you use a more complex theme, you could probably use an existing action hook of the theme. This means that you need a function who hooks into such a predefined placeholder.

    In any case, the file to modify is your theme’s single.php. Copy it into the child theme to get:
    /wp-content/themes/child-theme/single.php

    If you don’t see any do_action( ‘something’ ), you add the following in an appropriate place:

    echo get_fav_or_unfav_button_for_post( $post );
    Certainly inside the post loop, and probably below the post and before the comments.

    If you see some action hooks in single.php, you add this function to bp-custom:

    function fav_buttons() {
      echo get_fav_or_unfav_button_for_post( $post );
    }
    add_action( 'graphene_before_comment_template', 'fav_buttons' );

    You need to change graphene_before_comment_template to the action name used by your theme.

    add_action( 'graphene_before_comment_template'

    Hope to be clear.

    And here the function for the button:

    function get_fav_or_unfav_button_for_post( $post ) {
    global $bp, $activities_template, $post;
    
    	// only show the button to logged-in users
    	if ( ! is_user_logged_in() ) {
    	return '';
    	}
    	
    	$activity_id = bp_activity_get_activity_id( array(
    		'user_id' => $post->post_author,
    		'type' => 'new_blog_post',
    		'component' => 'blogs',
    		'item_id' => 1,  // blog_ID
    		'secondary_item_id' => $post->ID // post_ID
    		) );
    	
    	if ( ! $activity_id ) {
    	return '';
    	}
    
    	bp_has_activities(); // update $activities_template with user's favs
    	$old_value = false;
    		
    	if ( isset( $activities_template->activity->id ) ) {
    		$old_value = $activities_template->activity->id;
    		$activities_template->activity->id = $activity_id;
    	} else {
    		$activities_template->activity = (object) array( 'id' => $activity_id );
    	}
    	
    	// build the template
    	$code = '';
    	$code .= '<div class="activity-meta">'."\n";
    
    		if ( ! bp_get_activity_is_favorite() ) {
    		// if not favorited, add a "Favorite" button
    		$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="button fav bp-secondary-action" title="Add to my favorites">Favorite</a>'."\n";
    		
    		} else {
    		
    		// else, add "Unfavorite" button
    		$code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="button unfav bp-secondary-action" title="Remove from my favorites">Unfavorite</a>'."\n";
    		
    		// Bonus button: "View all my favorites"
    		$code .= ' <a href="'.bp_loggedin_user_domain() . 'activity/favorites/" class="button unfav bp-secondary-action">View all my favs</a>'."\n";
    		}
    		
    	// closing .activity-meta
    	$code .= '</div>'."\n"; 
    
    	if ( false !== $old_value ) {
    		$activities_template->activity->id = $old_value;
    	} else {
    		//$activities_template->activity = null;
    $activities_template->activity = (object) array( 'id' => $activity_id );
    	}
    	return $code;
    
    }

    And voila !

    #259197
    TheZorro
    Participant

    Dear all

    I am running a buddypress community within a wordpress multisite network since about a year. The activity stream is for the users to get an overview about new blog posts or events. Besides one plugin (WPML) everything is currently up-to-date.

    Everything worked fine until recently: The “featured image” of blog posts of other blogs then the one buddypress is connected to is no longer appearing in the activity stream but there is the image of a broken image:

    Broken Activity Stream Images

    In the past, when a user clicked on the image, he was forwarded to the related article. Now, one gets this message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at newsletter@polis180.org to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”

    Was there an update or change I missed?

    #259195
    melodies
    Participant

    I upgraded from BuddyPress 2.6.1.1 and WordPress 4.5.3.

    #259190
    danbp
    Participant

    Hi @donsauce,

    there is no such setting in BuddyPress, but it exist a plugin !
    See:
    https://wordpress.org/plugins/buddypress-profile-views/

    #259189
    danbp
    Participant

    Salut,

    members are deleted 3 or 4 days after their registration
    Perhaps simply because they deleted their account ? 😉
    Check Settings > BuddyPress > Options
    Suppression de compte []Les membres peuvent supprimer eux-mêmes leur compte

    or some custom function in theme or bp-custom ?

    To know if it is related to theme, Force Photo or any other plugin, deactivate it(them) and see if it change something.

    Nothing better at the moment.

    #259188
    Daouda69
    Participant

    Hello there,

    I’m creating a dating website for a client:

    Love & Travel

    I’m having troubles with members.
    I’ve noticed that members are deleted 3 or 4 days after their registration, and i don’t know why ?
    Do you know if there is a function in buddypress which does that ?
    I’m using buddypress force photo plugin to make sure people upload an avatar on their profile.

    Thanks a lot

    #259186
    felipecorrea
    Participant

    I have a doubt, I would ask your help! My first project with Buddy.
    I’m developing a project with BuddyPress, to do something like this https://goo.gl/tIMafr.
    Business rule.
    The site will have 5 types of products, each product with 6 activities (eg link – Item: Book – Activities: want to read, I read, I interest, change, re-reading)
    Each user can choose one of these activities and it should be saved to your profile and is available for other users enxerguem in your profile, and also doing a self post on social networks such as Facebook and twitter …
    Has anyone done something similar or have any idea of ​​how to do it?

    #259184
    Venutius
    Moderator

    When I first installed Buddypress a couple of years ago, the Buddypress pages inherited the features from the top level page.

    In otherwords, if the theme default was one sidebar, and you set the members page to be two sidebars, then the members profile pages would also have two sidebars.

    Somewhere along the line that has changed, you set the members page to be two sidebars but the profile page reverts to the theme default.

    Is this change deliberate? How can I revert back to the profile page inheriting the members page attributes?

    #259183
    melodies
    Participant

    Hello,

    After upgrading to the latest version of WordPress (4.6.1) and BuddyPress (2.6.2), the bp-template-notice functionality stopped working.

    BuddyPress’s “bp-template-notice” that is supposed to show success (green bar) and error (red bar) notifications (such as “Message successfully sent” with a green background) in the header are no longer showing up when a message is sent.

    This issue is happening regardless of which theme is activated. Please, how can this be fixed?

    Wordpress version: 4.6.1
    BuddyPress Version: 2.6.2

    #259182
    danbp
    Participant

    Hummm, now it’s me who doesn’t understand !

    You asked first
    is there any way we can add the existing buddypress favorites to the blog posts

    and now you say
    I wish to have it in blogs – so […] I can press Favorite

    Sorry if i misunderstand your request, english is not my mother language… Do you want to add a [favorite] button to each blog post ? Or do you want to remove some filters from activity favorites ?

    Activity → Favorites

    #259180
    Humiges
    Participant

    Dear @danbp
    thank you for your kind reply.
    Sorry, I’m not sure I exactly understand what do you mean.
    I definitely don’t want to complicated things (if it sounded like that)… as you said, I would like to keep the Favorite in user profile – however, I don’t need people to favorite their statuses (I actually removed that with CSS) – I wish to have it in blogs – so when for example Mike post a blog “Awesome BuddyPress 😉 ” I can press Favorite – this means I’ld collect favorite blogs and see them in my profile anytime in the future 😉
    This is also cool, because the notifications are there… I love this features… they are just not in the right place for me 😉

    Thank you very much for your help 🙂

    #259174
    danbp
    Participant

    Please note that you don’t need to add your site url in each of your topic. It’s useless and considered as a bad practice when nobody asked specifically for it.

    About privacy, read here

    Making a WordPress & BuddyPress Site Private, the Right Way

    #259168
    danbp
    Participant

    Hi,

    Which group menu are you talking about ?
    How do you add the link ? And why ? Because, you haven’t to do that on a standard MS install, even for private groups. Sorry, but this point is a bit unclear.

    Review your forum settings:

    Installing Group and Sitewide Forums

    Group Settings and Roles

    #259165
    Humiges
    Participant

    Hi,
    is there any way we can add the existing buddypress favorites to the blog posts?
    Thanks
    Regards
    Mike

    #259161
    cyberboy82
    Participant

    Hi,
    I’ve developed a web portal (http://www.scoutingsport.eu).
    When I try to establish friendships relations by clicking on the button “Adding Friend” (“Aggiungi Amico”) nothing happens.
    I would expect that the selected member will appear under the menu item “Friends” in the “Profile” section of buddypress menu.
    Could you help me in solving this issue ?
    Thanks in advance,
    Camillo Bosco

    #259158
    danbp
    Participant

    Hallo @mmirlach,

    I’ve activated the toolbar bubble in the settings… What are you talking about ? Such a setting doesn’t exist in BuddyPress.

    You can get any css information you need for this by:
    – right click on the page where you see this bubble and check the source code
    or
    – use Firebug or a similar tool.

    #259157

    In reply to: [Resolved] Child Theme

    danbp
    Participant

    Is the child theme only good for Buddypress editing? YES

    Or can I use it to edit another plugin as well? NO
    Plugins don’t have (at the moment) a child-plugin.

    #259156
    Venutius
    Moderator

    That’s strange, I use invite anyone on a number of sites so I can confirm it works.

    Have you tried deactivating all plugins except Buddypress and Invite Anyone to see if that works?

    If it does, it’s a case of activating the other plugins one by one until you discover which one is causing the conflict.

    IF you are getting the 500 error you may not be able to get to the Dashboard to deactivate plugins, that being the case you should FTP to the wp-content/plugins directory and you can delete the other plugins from there in order to get your site back.

    cyberboy82
    Participant

    Hi,
    I’ve developed a web portal named “Scouting Sport”.
    I’m trying to install the plugin named “Invite Anyone” which is related to Buddypress.
    I don’t succeed and I get the error “HTTP 500 Internal Server Error”.
    Could you please help me in solving the problem ?
    Thank you,
    Camillo Bosco

    #259149

    In reply to: [Resolved] Child Theme

    metalhead
    Participant

    I did what you said and it’s working now. Thank you very much!

    It’s confusing as to why the new sub-folders differ so much from the originals. (In the child theme, we don’t have bp-templates, for example.)

    Is the child theme only good for Buddypress editing?

    Or can I use it to edit another plugin as well?

    If I can use it to edit other plugins, could you give me an example of how I will create that path?

    #259148
    Henry Wright
    Moderator

    Check out this article:

    Open Sourcing BuddyPress.org

    #259146
    GeekGal
    Participant

    I like the layout of the homepage. What theme is buddypress.org using? Thanks.

    #259144
    mmirlach
    Participant

    Hi, I’m using Buddypress on my website gaming-universe.de
    I’ve activated the toolbar bubble in the settings but it’s a very small red number in a blue circle, so it’s difficult to see what it says.

    Where can I change the style of the toolbar bubble? I did not find any CSS variables to do so.

Viewing 25 results - 13,076 through 13,100 (of 73,986 total)
Skip to toolbar