Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,326 through 16,350 (of 69,016 total)
  • Author
    Search Results
  • #185004

    In reply to: If asking for help

    danbp
    Participant

    hi @tau001,

    have you ever read about BuddyPress before asking ? 😉

    BuddyPress Components and Features

    BP is compatible with most of the (recent) WP themes. There is no need to reach a dedicated BP theme (these are mostly outdated now < BP 1.8)
    Be aware that a commercial theme will cut you off of public forums like this one. Nobody can help you, outside the theme support. And don’t buy a spectacular homepage picture with bright colors and heavy markting claims if you don’t know exactly what you need.
    Built first the skeleton and add a skin after. When building a house, you can’t begin with the wallpaper ?!!!

    For your questions:
    1) see link
    2) yes of course
    3) – yes
    – yes with an extra plugin: myCred
    – yes & easely, if you know a little about php coding

    #185002

    In reply to: P2 Theme

    @mercime
    Participant

    @philmeyer basically some issues still remain on @mentions https://buddypress.trac.wordpress.org/ticket/5565

    #184997
    @mercime
    Participant

    @finchkelsey Have never used NS Cloner but if you only want BP only in the main site or on one subsite in your multisite installation, do not activate BP network-wide i.e., Network Admin > Plugins panel. If you did, deactivate it in Network Admin. Then, if you want BP only in main site, go to the plugins panel of main site and activate it there. If you want BP in one subsite, then follow instructions at https://codex.buddypress.org/getting-started/setting-up-a-new-installation/install-buddypress-on-a-secondary-blog/ Not sure though if the change will work with NS Cloner activated.

    #184989
    shanebp
    Moderator

    buddypress\bp-templates\bp-legacy\buddypress\activity\activity-loop.php

    #184986
    danbp
    Participant

    @denislafont,

    just published something about this yesterday on BuddyPress Snippet Barn. The blog is french, but the code is in english.

    Is some question about videos, see here.

    #184985
    shanebp
    Moderator

    You could use the approach in the codex page you’ve referenced.

    Probably easier to use this hook from WP Job manager: ‘job_manager_save_job_listing’
    In the function that you create for that hook, use bp_activity_add.

    #184978
    danbp
    Participant

    hello @optiqal,
    using snippets from 2012 leads to errors in many case. 😉

    Here’s a new version of what you used. I tested it on BP 2.1 and 2013 theme.
    (original code comes from here) As it contained errors i corrected them and adjusted the code to get content everywhere.

    /* we're building the nav button and add it to the profile main menu */
    function mb_bp_profile_menu_posts() {
    	global $bp;
    	bp_core_new_nav_item(
    	array(
    	'name' => 'My Posts',
    	'slug' => 'posts', 
    	'position' => 11, 
    	'default_subnav_slug' => 'published', 
    	'screen_function' => 'mb_author_posts'
    	)
    	);
    }
    add_action('bp_setup_nav', 'mb_bp_profile_menu_posts', 301 );
    
    /* we're building 2 sub item
     * the first is the one showing by default
     */
    
    function mb_bp_profile_submenu_posts() {
    	global $bp;
    	if(!is_user_logged_in()) return '';
    	bp_core_new_subnav_item( array( 
    	'name' => 'Published',
    	'slug' => 'published', 
    	'parent_url' => $bp->loggedin_user->domain . $bp->bp_nav['posts']['slug'] . '/' ,
    	'parent_slug' => $bp->bp_nav['posts']['slug'],
    	'position' => 10,
    	'screen_function' => 'mb_author_posts' //the function is declared below
    	) 
    	); 
    	bp_core_new_subnav_item( array( 
    	'name' => 'Drafts',
    	'slug' => 'drafts', 
    	'parent_url' => $bp->loggedin_user->domain . $bp->bp_nav['posts']['slug'] . '/' ,
    	'parent_slug' => $bp->bp_nav['posts']['slug'],
    	'position' => 20,
    	'screen_function' => 'mb_author_drafts' //the function is declared below
    	) 
    	); 
    }
    add_action('bp_setup_nav', 'mb_bp_profile_submenu_posts', 302 );
    
    /* here we control our 1st sub item
     * first function is the screen_function
     * second function displays the content
    */
    function mb_author_posts(){	
    	add_action( 'bp_template_content', 'mb_show_posts' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    function mb_show_posts() {
    	echo 'Function to Generate the displayed users posts.';
    	// add yout stuff here
    }
    
    /* here we control our 2nd sub item
     * first function is the screen_function
     * second function displays the content
     */
    function mb_author_drafts() {
    	add_action( 'bp_template_content', 'mb_show_drafts' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    function mb_show_drafts() {
    	echo 'Another function to Generate the displayed users drafts.';
    	// add yout stuff here
    }
    @mercime
    Participant
    #184953
    steveparkinson
    Participant

    Novice here… this should be fun. (July 2014)

    I got someone to import users in to my sweetdate (2.6.1)/buddypress (2.5.4) site. The users are there in the WordPress users, but not in the Buddypress site. They don’t even show up in the Pending Activation. I can see them in the SQL Database.

    How can I migrate them in to the Buddypress members, searchable, database.

    Thanks in advance.

    #184945
    Leonyipa
    Participant

    thanks! I changed to Twenty-Thirteen and the error is resolved!!!

    but the old theme I am using is actually the BuddyPress Default theme, I really want to use it, is it possible to be fixed?

    thanks

    #184940
    Nomi
    Participant

    I am trying to allow user to join group using enrollment key as you can see here.
    https://buddypress.org/support/topic/join-group-by-key/

    I got it working in core file but i have no idea how to implement in my plugin is there any other way?
    Here is my code

    
    if ($_POST['enrollment-key'] =='xxx'){
     				 groups_join_group($bp->groups->current_group->id , bp_loggedin_user_id() );
     				 bp_core_add_message( __('You have successfully joined this group.', 'buddypress' ) );
     			}else{
     				 groups_join_group($bp->groups->current_group->id , bp_loggedin_user_id() );
     				bp_core_add_message( __( 'Your membership request was sent to the group administrator successfully. You will be notified when the group administrator responds to your request.', 'buddypress' ) );
     			}
    #184912
    shanebp
    Moderator

    Yikes – that was just a skeleton that needs actual code in the function.

    Given your code ability and the number of code requests you’ve recently made on these forums,
    I recommend that you post a job listing here.

    #184902
    r-a-y
    Keymaster

    I’m guessing you have an older plugin that you want to support with the newer theme compatibility standard.

    Since you’re referencing bp_core_load_template( 'activity/index' ) in your example, I’m guessing you are trying to add theme compat for a new slug in the activity directory (eg. example.com/activity/new-slug/)? If so, you’ll want to copy the following code, rename the class and change a few things, so it is applicable to your plugin:
    https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-activity/bp-activity-screens.php#L301

    Then you would load up your new class with the bp_core_load_template() call.

    if ( class_exists( 'BP_Theme_Compat' ) ) {
         new BP_Activity_WHATEVER_YOUR_CLASS_IS_CALLED_Theme_Compat;
    }
    bp_core_load_template( 'activity/index' );
    #184899
    shanebp
    Moderator

    Never put code into the buddypress plugin files.

    Use your theme functions.php or use bp-custom.php.

    #184898
    JoshtheDesigner
    Participant

    Thanks! Would I put this in the Functions file in my child-theme or in the buddypress/bp-activity/bp-activity-functions.php file? If it is in the activity functions where should I put it? Sorry I am still learning buddypress.

    #184896
    shanebp
    Moderator

    Use the ‘xprofile_updated_profile’ hook

    function josh_profile_check( $user_id, $posted_field_ids, $errors ) {
      /* check $posted_field_ids to see if one of the fields you are interested in has changed
      if yes, then use bp_activity_add to add to activity stream
      */
    }
    add_action( 'xprofile_updated_profile', 'josh_profile_check', 10, 3 );

    bp_activity_add

    #184892
    shanebp
    Moderator

    Assign the button to a var, then dump it to see what is returned.

    $asdf = bp_get_button( etc. ) 
    var_dump( $asdf ); 

    Your bp_button calls look ok, afaik.

    Take a look at the function
    buddypress\bp-core\bp-core-template.php ~L. 487

    #184884
    Nomi
    Participant

    okay i used bp_get_button but still no luck. then I removed requests-loop.php from theme buddypress folder that it can use plugin’s requests-loop.php still its not displaying

    #184877
    lorns
    Participant

    @mercime as mentioned in my original post I’m running locally using MAMP. I’ve done 3 clean installs first deleting then redownloading & installing both WordPress & BuddyPress.

    Totally stumped & frustrated.

    #184876
    @mercime
    Participant

    @lorns Have you tried deleting and then re-uploading BuddyPress manually? Files may have been corrupted or upload could be incomplete. Where are you hosted – locally or shared hosting or dedicated server, etc?

    #184875
    lorns
    Participant

    @mercime I’ve been having a little more of a dig around – if I look at the generated site code, the sign-up form has nothing set for the action attribute and I can’t find any JS script that would submit the form programmatically in place of that.

    I’ve tested it out using invalid data and can confirm that it’s not reaching the signup validation script in the BuddyPress bp-members-functions.php file. I’ve not touched/edited the plugin files, just trying to figure out whether it’s getting where it needs to go.

    #184874
    lorns
    Participant

    @mercime I was originally using the TwelveFourteen theme and it wasn’t working then. I couldn’t see the bp_default theme but I kept coming across advice that said I needed to be using the BuddyPress default theme – managed to find it in the plugin files.  I’ve just now switched back to TwelveFourteen (to make double/triple sure) but it still won’t work. The registration page just reloads with form inputs intact (other than the password).

    Definitely logged out, have tried in latest versions of Safari, Chrome & Firefox, go to Register Page, fill in details, hit submit – page reloads with all bar password fields intact.

    I’m not sure what further steps I can give you other than above. My latest install is clean, up to date, unless I’ve missed some glaring setup step but I’m sure I’ve followed the guides correctly. I’m totally stumped.

    #184869
    Doremdou
    Participant

    Hi @mercime thank you very much for your answer 🙂

    sorry, I am always on the last version: BP 2.0.1 and WP 3.9.1

    I tried what you said and I am so sad…
    The problem is indeed coming from my theme 🙁

    I have two problems coming from my theme with buddypress and activities…
    – The read more button on group activites is not working
    – and when we click on “delete” on a activity message, it does not work and display a 404 error page.

    With the twenty fourteen theme it is working fine…
    Where should I look what is wrong with my theme?
    Thank you very much for your help 🙂

    #184863
    @mercime
    Participant
    #184862
    @mercime
    Participant
Viewing 25 results - 16,326 through 16,350 (of 69,016 total)
Skip to toolbar