Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,876 through 20,900 (of 94,541 total)
  • Author
    Search Results
  • #235369
    car1979
    Participant

    Hi everyone!

    I have a custom field in the registration page asking the new user to give us his/her ideas of what’s on their mind about a personal project so we can help him/her make it possible.

    The thing is that I need that custom field to be part of the notification email that the admins recieves whenever somone registers.

    I tried to follow the instructions given here:
    https://buddypress.org/support/topic/using-xprofile-fields-in-notification-mail/

    But I’m not sure whre to put this code. In the functions.php? Is that code right?

    Thaks ahead!

    #235367
    Klosurdo
    Participant

    Hi,

    I am really struggling with trying to hide my admins from my site. I searched this site and tried every code available with no success. Below is the last code I tried with no success.
    https://buddypress.org/support/topic/hide-admins-activities-from-all-activity-feeds-in-buddypress/
    Any ideas what I am doing incorrectly? This code is inserted in my child themes fuction.php correct?

    I am racking my brain on this one!

    Thanks for any help,
    Ken

    The Theme I am using is KLEO by Seventh Queen
    Buddy Press version Version 2.2.1
    Website:http://www.cmpg-annex.org/

    Other Plugins
    Akismet
    bbPress
    BuddyPress Cover Photo
    K Elements
    MOJO Marketplace
    Paid Memberships Pro
    PMPro MailChimp Integration
    PMPro Register Helper
    PMPro Set Expiration Dates
    Register Helper Example
    Revolution Slider
    rtMedia Pro for WordPress, BuddyPress and bbPress
    The Events Calendar
    WPBakery Visual Composer

    // deny access to admins profile. User is redirected to the homepage
    
    function bpfr_hide_admins_profile() {
    	global $bp; 
    	if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    	wp_redirect( home_url() );
    	exit;
    	endif;
    }
    add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
    
    // Remove admin from the member directory
    
    function bpdev_exclude_users($qs=false,$object=false){
    	
    	$excluded_user='1'; // Id's to remove, separated by comma
    	
    	if($object != 'members' && $object != 'friends')// hide admin to members & friends 
    	return $qs;
    	
    	$args=wp_parse_args($qs);
    	
    	if(!empty($args['user_id']))
    	return $qs;	
    	
    	if(!empty($args['exclude']))
    	$args['exclude'] = $args['exclude'].','.$excluded_user;
    	else
    	$args['exclude'] = $excluded_user;
    	
    	$qs = build_query($args);
    	
    	return $qs;
    	
    }
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    
    // once admin is removed, we must recount the members !
    
    function bpfr_hide_get_total_filter($count){
    	return $count-1;
    }
    add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');
    
    // hide admin's activities from all activity feeds
    
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    	return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			unset( $activities->activities[$key] );			
    			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    			$activities->pag_num = $activities->pag_num -1;				
    		}		
    	}		
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
    ch1n3s3b0y
    Participant

    @hnla – Thanks Hugo. Yeah I’m generally ok with the BuddyPress templates, but I keep forgetting to look in bp-templates instead of bp-themes. Bad habits!

    ch1n3s3b0y
    Participant

    Hi

    I have the BuddyPress folder structure duplicated in my child theme and successfully overriding the files in /members/; however I want to edit the registration.php file (I am customising the registration form). Weirdly, when I put the custom registration page in /registration/ in my buddypress folder in my child theme, it is still using the default buddypress registration file. Does the file override only work in the members folder?

    #235358
    MBC-Thierry
    Participant

    Buddypress is calling his own files for registration (register.php).
    For example if I install the smart wp login, it doesn’t work because it doesn’t apply to the buddypress registration files (I’m not sure, maybe I’m wrong…)

    #235356
    rosyteddy
    Participant

    Is not Buddypress Registration same as WordPress Registration?
    Thanks.

    #235355
    MBC-Thierry
    Participant

    Thank you very much.
    I was just wondering if the advices in theses links could be used with the buddypress registration process…

    I will try

    cliche123456
    Participant

    Hello I have a problem that I need help with. When someone goes to upload videos, they can select multiple categories. I don’t want this because what happens is that people will select all categories just so their video shows up on the home page multiple times under the different genere’s. I tried to download some wp plugin called ONE CATEGORY but it had no effect.

    Can someone help me fix it so that they can ONLY select one category for their video. Even if it’s custom programming, I’ll page. Site is clichetv.tv but you can’t see the upload video page unless your registered but easy enough problem to understand.

    Thanks.

    MBC-Thierry
    Participant

    Hello

    Wordress 4.1.1
    Buddypress 2.2.1

    I have two issues with the members registration.

    1. I would like to hide the username on the registration form. I would like the user to register with his email, lastname, firstname. I created a firstname field and I use the name field as the lastname.
    But I can’t remove the username. I understand that this field is mandatory and very useful for wordpress so it can’t be removed but can I hide it? or fill it with a random value?
    I tried to put the email address as the username but after it is used in the URL of the profile and I don’t want the member email to be displayed.
    For me the better solution would be to fill the username with a random value and replace it with the user_id once the user is created but I don’t know how I can do this.

    2. On Buddypress if I understand well, it is the display name which is displayed everywhere. How can I insert in the display name field the name + first name I ask in the regsitration form?

    Thank you very much for your help.

    #235339
    danbp
    Participant

    Actually you have a single install with BuddyPress with N members and activities.

    Nothing will be deleted if you activate the site as network.

    That said it’s strongly recommended to dump your DB before doing this.

    For a better overview of the DB, see here
    The BP tables are the same on MS as on a single install, and WP adds only new tables for each blog and only if you create one at least.

    WP’s user table stays intact in any case, like bp activities and others related to members (profile, message and so on).

    This can help you too:
    https://codex.wordpress.org/Importing_Content
    https://wordpress.org/support/plugin/import-from-ning

    #235337
    danbp
    Participant

    Hi,

    first off, check your permalinks and choose one of the option EXCEPT default. Then deactivate the current theme and make a test with one of the Twenty’s.

    If it’s ok with standart setup, revert to your theme and see if it works now.

    If not, try the patch mentionned on this topic
    https://buddypress.org/support/topic/my-conditional-tags-are-not-being-respected-in-genesis/#post-235182

    #235336
    danbp
    Participant

    Welcome to the buddypress debug club ! Please open a ticket and give details about your install and any step to reproduce the issue. Add also a link to this topic.

    Go here and use same login as on this forum.
    https://buddypress.trac.wordpress.org/newticket

    If you don’t know how to post a ticket on a wiki page, read here first.

    #235334
    kjgbriggs
    Participant

    I am using the Invention theme by Jozoor.
    I have been trying to create a BuddyPress forum for a product we are about to launch, and we need this fixed quite soon, my problem is quite simple, on EVERY page associated with buddyPress, even those it creates itself like Groups, is blank, I cannot do anything with BuddyPress as is.

    I used BuddyPress many months ago, about 5 probably and it was so easy to use, can’t remember what theme I was using back then, but I was surprised that nothing at all shows up.

    Has anyone else had this problem or know a fix?

    #235331
    danbp
    Participant

    Sorry but i’m unable to reproduce that. I don’t have notices or warning about this issue.

    Can’t you make a test with the trunk version ? (direct link to zip – BuddyPress is in the src folder)

    danbp
    Participant

    hi @daethian,

    if you’re using BP 2.2, don’t use the “old” bp-default theme.

    If you have FTP access, your wordpress should be at the site root if you want to use BuddyPress. If it’s you who created the /wp/ folder and if you haven’t any other site on the same account you don’t need it. Install wordpress directly at the root ! Mostly in a folder named www or htdocs (ie. htdocs/wp-admin, htdocs/wp-content/, htdocs/wp-include/)

    But let’s say it’s correct for now.

    Connect to your site and go to admin
    On WP dashboard> General ensure you entered WP URL and site URL correctly (hxxp://your-site.xxx) without trailing slash (normally the same URL)
    Then dashboard > Appearence>Theme and activate Twenty Fifteen
    Then dashboard > Settings > Permalinks > anything but default
    Then dashboard > plugins and deactivate/reactivate BuddyPress
    Then dashboard > Appearence > Menu > screen option (top right), check buddypress and add the BP menu to Twenty 15

    See if it works.

    If not, you’ll have to setup WP correctly at first.
    Return to FTP, move WP to the root, erase htaccess and wp-config and restart the installation

    your-site.xxx/install
    Re enter your DB name, psw and all other information needed for installing WP.
    Your DB and actual content won’t be erased (but you can make a dump before, in case of).

    5mn install later, you are invited to login. And you have to do what i’ve explained previously.

    #235328
    Travis
    Participant

    @danbp

    I just setup a fresh WordPress install and installed BuddyPress only on another operating system. Still getting the same errors.

    #235324
    danbp
    Participant

    Wow stunning ! Are you on a local server ? MS or single install ?

    Could be that something went wrong during upload.
    Erase the BP folder and add a new copy.

    And remove your theme from the theme directory while testing with Twenty.

    danbp
    Participant

    hi @ksmithlondon

    please give details…

    Which plugin are you using ? Where does the msg show ? Front, backend, both ?

    This is usually handled with a language file or using CSS display:none;

    Customizing Labels, Messages, and URLs

    #235321
    Travis
    Participant

    @danbp

    I just setup a fresh new WordPress install and installed the BuddyPress plugin. The error is appearing here as well.

    Travis
    Participant

    Its been a few years since I’ve worked with BuddyPress. Today I installed the plugin and clicked on the Activity section and BAM! PHP errors:

    
    Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(138) : runtime-created function on line 6
    
    Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(138) : runtime-created function on line 6
    
    Warning: usort() [function.usort]: Array was modified by the user comparison function in /Applications/XAMPP/xamppfiles/htdocs/newarmy/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 138
    

    Any idea what might be going on?

    Using WordPress version 4.1.1

    #235308
    danbp
    Participant

    I don’t know BuddyPress forum (v 2.2).

    Installing and using bbPress forum plugin is explained here:

    Installing Group and Sitewide Forums

    @mention is explained here:
    https://codex.buddypress.org/template-updates-2-1/

    #235306
    Prometheus Fire
    Participant

    How and for what does BuddyPress us cookies for.

    One of my corporate clients ran IBM Security AppScan against a WordPress install with BuddyPress and it is returning low-risk security warning for Client-Side (JavaScript) Cookie References.

    Specifically, it cited this file:
    buddypress/bp-core/js/jquery-cookie.min.js/

    Is this used for login functionality or something else as well? The security guy wants it removed, but is there a safe way to remove it, and how much is going to break if we do?

    tipsy
    Participant

    Hey, I’m kinda stuck for a day now got a tips to check the database, but can’t find any solution.

    I use this to get a avatar:
    <?php echo get_avatar(1); ?>

    Then I use this to get the name:

    <?php 
    	$user_id = 1;
    	$key = 'first_name';
    	$single = true;
    	$user_first = get_user_meta( $user_id, $key, $single ); 
    	echo '<span>' . '' . $user_first . '</span>'; 
    ?>

    This above works great but when I now have created “profile fields” with BuddyPress in the user area I trying to do the same thing but can’t get the right result out of it.

    <?php 
    	$bp_get_member_user_id = 1;
    	$key = 'field_2';
    	$single = true;
    	$user_last = bp_get_user_meta( $bp_get_member_user_id, $key, $single ); 
    	echo '<span>' . '' . $user_last . '</span>';  
      ?>

    In this code above I have found that the field has the name field_2, but this aint right? If I change it to first_name it generate the first_name How can I find the real field name?

    #235301
    gatelli
    Participant

    Thanks for your answer.
    I don’t use bbpress but Buddypress forum (v2.2)… is there a similar way to get it working ?

    #235298
    danbp
    Participant

    @rosyteddy,

    snippets published on the forum are generally related to a specific topic/question. And of course, dependant of theme and/or bp version, if not php or mysql or server settings. Over the time, they stop working or can’t be used anymore because the Core changed or because of other evolutions….

    Despite having a kind of snippet store accessible by forum menu seems to be a usefull idea, it is not. Each usage case is different and can not be extended to all case. FYI information, i had the same idea a few years back, and was quickly discouraged to do so by our Core dev. I was first disapointed, but i finally had to admit they where right. And today, i’m absolutely persuaded and on the same line.

    That’s why you have Codexes. For WP, BP or bbP with general explanation of default usage and more rarely, with usage examples. If you find a snippet example in Codex, in 95% of cases, you have to adapt it to your personnal usage.

    To answer your question, as you know, BuddyPress is (only) a WordPress plugin. When installed, the site continue to work with WordPress and WP dashboard. Nothing is modified in WP Core, only that BP was added to the site. As a plugin.

    How to handle WordPress is explained and widly documented in his Codex.
    Menu management, CPT management or how to modify menu items on Toolbar or Admin bar is also documented. And the’re so many sites giving WP tips (from excellent to awfull), you can read.

Viewing 25 results - 20,876 through 20,900 (of 94,541 total)
Skip to toolbar