Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 23,751 through 23,775 (of 94,545 total)
  • Author
    Search Results
  • #191021
    danbp
    Participant

    @ryanjhale,

    wp roles and bp capacities are two diffrent things.
    bp_moderate has a specific usage applied to the site admin only. If you read what is written in bp-core-caps.php, you’ll see this comment at line 200

    
     * Temporary implementation of 'bp_moderate' cap.
     *
     * In BuddyPress 1.6, the 'bp_moderate' cap was introduced. In order to
     * enforce that bp_current_user_can( 'bp_moderate' ) always returns true for
     * Administrators, we must manually add the 'bp_moderate' cap to the list of
     * user caps for Admins.
     *
     * Note that this level of enforcement is only necessary in the case of
     * non-Multisite. This is because WordPress automatically assigns every
     * capability - and thus 'bp_moderate' - to Super Admins on a Multisite
     * installation. See {@link WP_User::has_cap()}.
     *
     * This implementation of 'bp_moderate' is temporary, until BuddyPress properly
     * matches caps to roles and stores them in the database. Plugin authors: Do
     * not use this function.

    BuddyPress groups moderators are not authorized to enter the admin dashboard or the group admin on frontend. Group moderators can only delete, move and spam group activities or topics. If the group has a forum, they wil have the same capacities.

    If you want a user to be able to access the admin dashboard, you can give him an editor role (which is a wp role).

    If you want to allow him access to the group admin on the front-end, you promote him to group admin. This setting doesn’t allow that user to enter the site admin. He’s only a group admin (with a wp role of subscriber, by default) and not a site admin (admin or super-admin (MS) ).

    gibbousmoon
    Participant

    I’m working with a brand new install of WP 3.9.2, and I don’t recall whether I installed BP or the Custom Community theme first, but when I have both enabled, I get this error:

    Notice: Indirect modification of overloaded property BuddyPress::$add_root has no effect in /home/nanoedmo/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 564

    If I switch to another theme, the error disappears. Initially the error would just load at the top of the page while the site continued to function, but now the error is the ONLY thing that displays on any page, which renders my site completely unusable. It’s quite possible that the change in behavior corresponded to when the host site upgraded me to WP 4.0.

    Now, the facts.

    * Hosted by SiteGround
    * WordPress 4.0
    * Directory install
    * In a subdirectory
    * Upgraded from WP 3.9.2
    * BP 2.0.2
    * Other plugins activated: Akismet, bbPress, BP Custom Profile Menu, BP Group Email Subscription, BP Toolbar, Captcha Pro, Counterize (and its plugins), Limit Login Attempts, NaNo Stats, ProgPress, Shortcode Reference, The Events Calendar, WordPress SEO.
    * Using Custom Community theme
    * Core files untouched
    * No custom functions in bp-custom.php
    * bbPress version 2.5.4
    * This error is almost the only one in php_errorlog. Occasionally I see this one:
    PHP Warning: Cannot modify header information – headers already sent by (output started at /home/nanoedmo/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php:564) in /home/nanoedmo/public_html/wp-includes/pluggable.php on line 1173

    #191018
    Ryan Hale
    Participant

    I created a new user role and gave them the capability bp_moderate as it appeared that was what was needed to be able to access Groups in admin:

    $hook = add_menu_page(
    __( ‘Groups’, ‘buddypress’ ),
    __( ‘Groups’, ‘buddypress’ ),
    ‘bp_moderate’,
    ‘bp-groups’,
    ‘bp_groups_admin’,
    ‘div’
    );

    I confirmed that bp_moderate was added to the role and that the user is connected to the role. However, the user isn’t able to see the Groups menu.

    Am I off-base in thinking this is how a user should be able to access the Groups item in the admin menu?

    Thanks in advance,

    Ryan

    #191016
    mahdiar
    Participant

    Thanks !
    But there is small difference . When I copy the video url ( e.g. …../video.mp4 not the page url) in normal post in wordpress it shows a video player . Why it is not supported in buddypress?

    #191013
    SeeingBlueS2
    Participant

    Found it. Ticket #5868

    #191008
    danbp
    Participant

    @tomlandon_author,

    who’s online refreshes after 5 mn.
    Read more here:
    https://buddypress.trac.wordpress.org/ticket/3590

    and feel free to open an enhancement ticket on the Trac.
    You can login with the same credentials as on this forum.

    namrons
    Participant

    @r-a-y Thanks for detailing this changeset: https://buddypress.trac.wordpress.org/changeset/7447

    Through a RSS aggregator I feed a number of connected blogs into my Buddypress activity stream and would like to keep the permalink structure of the blog to link directly to their external sites.

    Since updating Buddypress to the latest version yesterday I am unable to restore the permalink by editing trunk/bp-blogs/bp-blogs-functions.php back to $post_permalink = get_permalink( $post_id ); nor can I edit the wording “Wrote a Post… on the blog” in bp-blogs-functions.php

    I was able to do this before. What has changed?

    #191005
    tomlandon_author
    Participant

    Hello, there!

    Thank you so much for your great work. Well i used to develope for other OSC projects and now have some ideas regarding the BuddyPress widget “WHOIS ONLINE”.

    As we know, the WHOIS-ONLINE-WIDGET currently does not auto-refresh its content, so the already logged-out users are still shown to be online. So my suggestions/ideas:

    1. Include a time counter, refreshing/showing automatically the list of users, who are really online.
    2. Also include/add a form field to the WHOIS-ONLINE-WIDGET (settings) in ADMIN SECTION, to have the administrator set his own value (example: 5 seconds).
    3. It would be great, if a mouse-over-effect could be included, that shows the “write a personal message”-link.
    4. OR: To show the AVATARS of online users with a batch or frame in different colour (manageable in ADMIN section) in the post-/comment-/users-list-area would be perfect.

    Thanks a lot for your reply!

    Truly

    Tom

    MilliR
    Participant

    Hi. I have created a shortcode for activity to display in my frontpage.

    /*activity stream*/
    if (!function_exists('wwn_bp_activities')) {
        function wwn_bp_activities( ) {
    		if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . 'per_page=5' ) ) :
    			echo "<ul id=\"activity-stream\" class=\"activity-list item-list\">";
    			while ( bp_activities() ) : bp_the_activity();
    				locate_template( array( 'activity/entry.php' ), true, false );
    			endwhile;
    			echo "</ul>";
    		endif;
    	
    	}
    	add_shortcode('wwn_bp_activities', 'wwn_bp_activities');
    }

    Say this is my layout (entered text) for the Home page. :

    [h3]WELCOME TO MY SITE[/h3]
    <strong>Site Activity</strong>
    [wwn_bp_activities]

    the ideal output should have been:

    WELCOME TO MY SITE
    Site Activity
    Activity 1
    Activity 2
    Activity 3
    Activity 4
    Activity 5
    …

    But I am getting the following output:

    Activity 1
    Activity 2
    Activity 3
    Activity 4
    Activity 5
    …
    WELCOME TO MY SITE
    Site Activity

    No matter what I do, the activity from the shortcode always jumps to the top of the page (article)

    Please help

    r-a-y
    Keymaster

    @namrons – If you are using the older bp-default theme or a deriviative of the bp-default theme on your other sites, you’ll need to patch bp-default as well.

    I’ve added the fix for the bp-default theme here:
    https://github.com/buddypress/BP-Default/commit/4a06b494195c681252d27ded0c23ba8296322ec0

    #190992
    danbp
    Participant

    Are you already in a reflection stage or already confronted to “a problem” ?

    If you have a template you can display content, with conditionnals.
    Read here to see what it is on hand for template files:

    Template Tag Reference

    danbp
    Participant

    The patch has not much to do with wp.
    Depending of the BP version you use on the old sites, you can use the fix !
    Compare the buddypress-functions.php and if you find a line similar to the one alreadyfixed, you can try to use the patch.

    Aside it could not work, there is nothing to loose to try!

    namrons
    Participant

    Thanks @shanebp and thanks @r-a-y Your fix definitely works with latest version of WordPress and Buddypress (tested) but I have a couple of sites with an older WordPress (because some plugins I’m using are not yet compatible with recent WordPress) and this fix does not work there. Any suggestions for a fix with older WordPress?

    #190979
    danbp
    Participant

    Hi @lunaya,

    activate debug mode in wp-config to get some internal information

    And read here:
    https://buddypress.org/support/topic/ning-2-buddypress/
    https://buddypress.org/support/topic/ning-import/

    #190977
    durkk
    Participant

    @danbp: Ok thanks, the snippet gave me the impression it was relative, not absolute. I am not a complete code n00b, but thanks for your concern.

    Let me see if I get this right; because I am still not sure how this enables me to feed unique content per user.

    Right now with your snippets I have a page template, a page with the template loaded and a link to that page in the buddypress user profile menu’s. How do I load content relevant to the logged in user on that page?

    That is kind off the whole objective of using the dynamic links

    There’s a plugin that can make profile tab links and even pages, so I guess I am not understanding what exactly is the idea behind you reasoning for being a simpler solution to my problem.

    #190967
    lunaya
    Participant

    Hi there

    I have just installed the Ning Importer plugin and I’m having a challenging time getting it working. Here is the installation instructions as metnioned on the plugin website :

    * Install in your plugins folder and activate.
    * Download your Ning network export, using the Archiver tool as described here: http://help.ning.com/cgi-bin/ning.cfg/php/enduser/std_adp.php?p_faqid=3796
    * Create a directory called ning-files in your wp-content directory.
    * Upload the content of your unzipped Ning export (a group of .json files, as well as several directories) to /wp-content/ning-files.
    * Visit the plugin panel at Dashboard > BuddyPress > Import From Ning

    I am good up till the point of the final point : Visit the plugin panel at WHAT NOW? 🙂 There doesn’t seem to be any BuddyPress thing specifically in the dashboard navigation on the left there. It just has forums, groups, etc. etc.

    Is this plugin just sadly out of date?

    I’m running WordPress 3.9 …. it was installed as a subdomain install …. this wasn’t an upgrade ….. it is all functioning fine other than this issue …… I think it’s the latest version of BP ….. there have been no BP upgrades ….. I’m using a theme called KLEO ….. I haven’t modified any of the core files …. I have no custom functions ….. my KLEO theme didn’t automatically come with a copy of BP ….. Thanks!

    #190961
    xprt007
    Participant

    Hi

    The index.php file is clean, …

    I used the plugin “Change DB Prefix” which enables a db prefix table change & in wp-config.php with a click. Good since the db has 175 tables 🙁 … ;), thi sbeing a community site with a number of functions.

    I added BuddyPress-Honeypot, … but does it not matter it seems to have had no changes since 2012?

    I temporarily disabled Wanguard to see if the 2 steps above + existing antispam plugins can handle this. Will then see about the .htaccess issue tomorrow etc.

    Many thanks & kind regards

    #190960
    danbp
    Participant

    Have you setup a page for groups ?
    Have you changed the permalinks ?

    Configure BuddyPress

    #190959
    danbp
    Participant

    A 404 error ? If you copy/paste a wrong url this can happen !

    When you create a new page in wordpress, a permalink is automatically created under the title box.
    You copy that whole permalink, including http, into the snippet
    'link' => 'your permlink', do not remove the coma ! And be carefull when editing code. Use a text editor, not Word !

    The snippet give you the possibility to add a page to a profile, and this page use his own template file, as also described.

    Don’t copy/paste when you don’t know how to use it and how things are working.
    For that you have the codex, where you can learn a bit on how BP is working.
    Here about theming.

    #190946
    Cartographer
    Participant

    Hi @danbp, @johnjamesjacoby

    Thank you for your response.

    Like @jetlej here I find horrible the idea that in a community the private messages can be read by the admin of the community.

    I don’t believe that a community would have a lot of registrations if the users knew that the admin has the option to read their private messages, even if he is not forced to do it.

    Anyway I see that there is no option to avoid this.

    P.S. Please, allow me to ask something: You said that it is also possible by reading the message table in the db. Does this mean that event the users passwords can be read from a table in the db?

    Thank you again for the conversation.

    #190943
    danbp
    Participant

    hi @aghajoon,
    don’t jump into old post please !

    Much more convenient, would be to use the buddypress notification manager plugin !

    Works with 4.0 and bp 2.02

    #190942
    giggio
    Participant

    All this is correct. The files is bbpress-bg_BG.mo and bbpress-bg_BG.po for bbpress and buddypress-bg_BG.mo and buddypress-bg_BG.po for buddyprerss. In wp-config – (‘WPLANG’, ‘bg_BG’) … site is in bulgarian.

    And like I said, all is worked correctly (almost a year till now) before wordpress update.

    #190941
    aghajoon
    Participant

    this code work for me but java script not work and when user favorite comment user can’t remove notification help me

    define("BP_FAVORITE_NOTIFIER_SLUG","fa_notification");
    
        function bp_favorite_setup_globals() {	
    	global $bp, $current_blog;
        $bp->bp_favorite=new stdClass();
        $bp->bp_favorite->id = 'bp_favorite';
        $bp->bp_favorite->slug = BP_FAVORITE_NOTIFIER_SLUG;
        $bp->bp_favorite->notification_callback = 'bp_favorite_format_notifications';//show the notification   
        $bp->active_components[$bp->bp_favorite->id] = $bp->bp_favorite->id;
    			
                do_action( 'bp_favorite_setup_globals' );
        }
                add_action( 'bp_setup_globals', 'bp_favorite_setup_globals' );
         
    
    function bp_favorite_format_notifications(  $action, $activity_id, $secondary_item_id, $total_items,$format='string'  ) { 
    $action_checker = explode('_', $action);
    $activities = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'display_comments' => true) );
    	$glue = '';
    	$user_names = array();
    
    	$users = find_favorite_involved_persons($activity_id, $action);
    	$total_user = $count = count($users);
    
    	if($count > 2) {
    		$users = array_slice($users, $count - 2);
    		$count = $count - 2;
    		$glue = ", ";
    	} else if($total_user == 2) {
    		$glue = " and ";
    	}
    
    	foreach((array)$users as $user_id) {
    		$user_names[] = bp_core_get_user_displayname($user_id);
    	}
    
    	if(!empty($user_names)) {
    		$favoriting_users = join($glue, $user_names);
    	}
    
    	switch ( $action ) {
    		case 'new_bp_favorite_'.$activity_id:
    			if($total_user > 2) {
    				$text = $favoriting_users.' and '.$count.' liked: '.substr($activities["activities"][0]->content,0,32).'...';
    			} else {
    				$text = $favoriting_users." like: ".substr($activities["activities"][0]->content,0,32)."...";
    			}
    		break;
    	}
    	$url = '<div id="'.$action.'"class="notification"><a href="#" class="social-delete" onclick="deleteAjaxNotification(\''.$action.'\',\''.$activity_id.'\', \''.admin_url( 'admin-ajax.php' ).'\'); return false;">x</a><span class="social-loader"></span></div>';
    	$link = favorite_activity_get_permalink( $activity_id );
    
    	if($format=='string') {
    		return apply_filters( 'bp_activity_multiple_favorite_notifications', '<a href="' . $link. '">' . $text . '</a>'. $url .'' ,$users, $total_user, $count, $glue, $link );
    	} else {
    		return array(
    			'link' => $link,
    			'text' => $text
    		);
    	}
    	return false;
    
    }
    function find_favorite_involved_persons($activity_id, $action) {
    	global $bp,$wpdb;
    	$table = $wpdb->prefix . 'bp_notifications';
    	return $wpdb->get_col($wpdb->prepare("select DISTINCT(secondary_item_id) from {$table} where item_id=%d and secondary_item_id!=%d and component_action = %s",$activity_id,$bp->loggedin_user->id, $action));
    }
    function favorite_activity_get_permalink( $activity_id, $activity_obj = false ) {
    	global $bp;
    
    	if ( !$activity_obj )
    		$activity_obj = new BP_Activity_Activity( $activity_id );
                        
    		if ( 'activity_comment' == $activity_obj->type )
    			$link = bp_get_activity_directory_permalink(). 'p/' . $activity_obj->item_id . '/';
    		else
    			$link = bp_get_activity_directory_permalink() . 'p/' . $activity_obj->id . '/';
    
    	return apply_filters( 'ac_notifier_activity_get_permalink', $link );
    
    }
    
    function favorite_notifier_remove_notification($activity ,$has_access){
           global $bp;
           if($has_access)		       
    	   bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->bp_favorite->id, 'new_bp_favorite_'.$activity->id );
    	}
    add_action("bp_activity_screen_single_activity_permalink","favorite_notifier_remove_notification", 10,2);
    
    function favorite_notification( $activity_id){  
                       global $bp;                 
    	               $activities = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'display_comments' => true) );
    				   $author_id = $activities['activities'][0]->user_id;
                       $user_id =  bp_loggedin_user_id();
    	// if favoriting own activity, dont send notification
    	if( $user_id == $author_id ) {
    		return false;
    	}
    				   if ( bp_is_active( 'notifications' ) ) {
    		bp_notifications_add_notification( array(
    			'user_id'           => $author_id,
    			'item_id'           => $activity_id,
    			'secondary_item_id' => $user_id,
    			'component_name'    => $bp->bp_favorite->id,
    			'component_action'  => 'new_bp_favorite_'.$activity_id,
    			'date_notified'     => bp_core_current_time(),
    			'is_new'            => 1,
    		) );
    	}				
    }
    add_action("bp_activity_add_user_favorite","favorite_notification", 10, 2);
    
    function deleteAjaxNotification(){
        global $bp;        
        bp_core_delete_notifications_by_item_id ($bp->loggedin_user->id, $bp->bp_favorite->id, 'new_bp_favorite_'.$activity->id);     
        die();        
    }	
    add_action('wp_ajax_deleteAjaxNotification', 'deleteAjaxNotification' ); 
    
    function bp_like_add_like_action() {
    global $bp, $activities_template; 
    	 if ( bp_activity_can_favorite() ) : 
    		
    				$my_fav_count = bp_activity_get_meta( bp_get_activity_comment_id(), 'favorite_count' );
    				
    				$my_fav_count = "<span>".$my_fav_count."</span>";
    				
    				$is_favorite = apply_filters( 'bp_get_activity_is_favorite', in_array( bp_get_activity_comment_id(), $activities_template->my_favs ) );
    		
    
    			 if ( !$is_favorite ) : ?>
    
    				<a href="<?php echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . bp_get_activity_comment_id() . '/' ), 'mark_favorite' ) ); ?>" class="tooltip-trigger fav bp-secondary-action bp-primary-action" title="<?php _e( 'Favorite', 'buddypress' ); ?>" style="position:relative;"><?php _e( 'Favorite', 'buddypress' ); ?><?php echo $my_fav_count; ?></a>
    
    			<?php else : ?>
    
    				<a href="<?php echo apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . bp_get_activity_comment_id() . '/' ), 'mark_favorite' ) ); ?>" class="tooltip-trigger unfav bp-secondary-action bp-primary-action" title="<?php _e( 'Remove Favorite', 'buddypress' ); ?>" style="position:relative;"><?php _e( 'Remove Favorite', 'buddypress' ); ?><?php echo $my_fav_count; ?></a>
    
    			<?php endif; 
    
    		 endif; 
    }
    add_filter( 'bp_activity_comment_options' , 'bp_like_add_like_action', 1000 );
    
    

    and java code

    function deleteAjaxNotification(action_id, activity_id, adminUrl){
        jQuery('#'+action_id).children(".social-delete").html("");
        jQuery('#'+action_id ).children(".social-loader").show(); 
    
        jQuery.ajax({
            type: 'post',
            url: adminUrl,
            data: { action: "deleteAjaxNotification", action_id:action_id, activity_id:activity_id },
            success:
            function(data) {
            	jQuery('#'+action_id).parent().hide();
            	
            }
         });  
    }
    #190940
    danbp
    Participant

    @cartographer,
    nobody forces the admin to read private messages, except, depending the country, some laws or other regulations. Any other reason to read is a personnal option.

    And it is anyway possible by reading the message table in the db.

    To disambiguate any further question around this, read the answer of @johnjamesjacoby

    #190935
    durkk
    Participant

    @danbp

    Getting closer!

    So I made a custom post type via the CPT UI plugin. I then proceeded to remove the slug from the URL as suggested here: http://colorlabsproject.com/tutorials/remove-slugs-custom-post-type-url/

    I have buddypress installed and use a filter to have a profile link as follows: mydomain.com/username. This to be able users to use a dynamic link in a widget that leads them to a personal page.
    mydoamian.com/username/personalpage where username is dynamic to logged in user.

    This works perfectly with pages but not with the custom post type I made. Anyone got an idea what I am doing wrong here?

Viewing 25 results - 23,751 through 23,775 (of 94,545 total)
Skip to toolbar