Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,201 through 16,225 (of 73,983 total)
  • Author
    Search Results
  • #248077
    VersGemerkt
    Participant

    Jigesh,

    Thanks for the help! This is how it looks right now:

    Screenshot order.php

    As you can see to the right of the profile image their are some data showing from the custom fields. @mcUK and @shanebp helped me out achieving this. BUT, this is not the correct data it should be showing for this user… It shows data that the logged in user filled in.

    I logged in as the user that filled in the correct data, and then it’s showing the right data for the user. But this is because I’m logged in as that user…

    Screen

    NOTE: I’m transferring this data across two plugins: buddypress and learnpress. Just so you know!

    This is the php in bp-custom:

    <?php
    
    function bptest_show_a_field () {
    	$user_id = bp_loggedin_user_id();
    	$firstname = xprofile_get_field_data( 'First Name', bp_loggedin_user_id(), $multi_format = 'comma' );
    	$lastname = xprofile_get_field_data( 'Last Name', bp_loggedin_user_id(), $multi_format = 'comma' );
    	$birth = xprofile_get_field_data( 'Date of birth', bp_loggedin_user_id(), $multi_format = 'comma' );
    	$education = xprofile_get_field_data( 'Highest Education Grade', bp_loggedin_user_id(), $multi_format = 'comma' );
    	$profession = xprofile_get_field_data( 'Profession', bp_loggedin_user_id(), $multi_format = 'comma' );
     
    	if ( ! $firstname && ! $lastname && ! $birth && ! $education && ! $profession ) { 
    	   return; 
    	}   
    	else {
    	    echo 'Voornaam: ' . $firstname . '<br />' ; 
    	    echo 'Achternaam: ' . $lastname . '<br />' ; 
    	    echo 'Geboortedatum: ' . $birth . '<br />' ; 
    	    echo 'Hoogste graad: ' . $education . '<br />' ; 
    	    echo 'Beroep: ' . $profession . '<br />' ; 
            
    	}
    }
    
    add_action ( 'user_a_field', 'bptest_show_a_field' );
    ?>
     
    #248067
    @mercime
    Participant

    @danbp thumbs up! 🙂

    I guess I’m not going to pursue getting a forum on my site.


    @ldesherl
    You do not need to install BuddyPress in order to get a forum. You only need to install bbPress forums plugin https://wordpress.org/plugins/bbpress/ which works perfectly without BuddyPress.

    #248065
    mrunal2989
    Participant

    @mercime … unfortunately its still not centered .. I added the new CSS
    body.register #buddypress {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    } to my child theme’s style.css

    I have also set the my register page to full width

    http://52.70.236.130/register/ is still not centered

    #248063
    shanebp
    Moderator

    Do you know which file holds all of the buddypress specific filters and actions?

    They are mainly grouped according the component being used.
    Look in buddypress/bp-activity/ for activity related filters and actions.

    If you have a decent file editor ( notepad++ ? ) you can do a find-in-files search.

    #248062
    Joshua Blevins
    Participant

    I did look at that function as well.

    /**
    	 * Return the activity content.
    	 *
    	 * @since 1.0.0
    	 * @deprecated 1.5.0
    	 *
    	 * @todo properly deprecate this function.
    	 *
    	 * @uses bp_get_activity_action()
    	 * @uses bp_get_activity_content_body()
    	 * @uses apply_filters() To call the 'bp_get_activity_content' hook.
    	 *
    	 * @return string The activity content.
    	 */
    	function bp_get_activity_content() {
    		/**
    		 * If you want to filter activity update content, please use
    		 * the filter 'bp_get_activity_content_body'.
    		 *
    		 * This function is mainly for backwards compatibility.
    		 */
    		$content = bp_get_activity_action() . ' ' . bp_get_activity_content_body();
    		return apply_filters( 'bp_get_activity_content', $content );
    	}

    Do you know which file holds all of the buddypress specific filters and actions? I’d really like to dig deeper and understand those as well. I think that is what is holding me back from developing faster and better.

    #248061
    shanebp
    Moderator

    When looking at the bp-default one

    Unless you are explicitly using the bp-default theme, you should be looking at this file:
    buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php

    As for the function, it says:
    * @uses bp_get_activity_action()

    So look at that function which you will find right below the one you looked at.
    And you will see:

     * @param array $args {
    	 *     @type bool $no_timestamp Whether to exclude the timestamp.
    #248057
    ldesherl
    Participant

    I tried al this but I am not allowed to change my permalinks at all. I tried it over and over. I deleted Buddypress and added it back and reactivated it. No difference. No options to save page settings. I guess I’m not going to pursue getting a forum on my site. I guess it may have something to do with my web host. Thank you for trying to help but I cannot resolve this no matter what I try.

    #248051
    danbp
    Participant

    hi @ldesherl,

    sorry to jump in, i see some weird path on your site.
    E.g. http://oneladyfights4life.com/members-7/ or activity-streams-2/ BP is looking for “members”, not members-2. This happens mostly when a page is in trash and the same page name is used again.

    To be clear, you create a page called “member”. Then you decided to trash it and recreate a page called “member”. The problem is that WP knows now about 2 “member” page (one as page, the other as trashed) and add automatically -2 to the second page permalink.

    A page in trash is not destroyed, but simply deactivated. As long as you don’t clear the trash you can restore such a page.

    -7 and -2 means you created at least seven members and 2 activity pages.

    Go to Pages adminsitration and check any of BuddyPress page permalink. These slugs would be better without any number at the end. Edit the page and correct the permalink which is right under the page title.
    You should have http://oneladyfights4life.com/members/

    See also in page trash if you have similar pages in it. If yes delete them definitely.

    Once done, go to BP page settings and ensure all BP component have the correct page associated.
    Finally, go to permalinks settings and save that page. With a little luck, you will get BP working now.

    #248050
    Hugo Ashmore
    Participant

    @ldesherl I think it might help if you could leave that link above switched to a WP default theme and with all plugins deactivated, just while you’re seeking help for this issue, as things stand I see no sight of BuddyPress or bbPress running, and the theme is a custom one with a lot of plugins running. Buddypress should default to using a series of pages that it will create, your ‘Activity’ example is named with a custom title, you also seem to have a lot of trashed pages as the members page slug has ‘-7’ added suggesting 6 other copies of a page named ‘members’ try deleting those.

    #248047
    @mercime
    Participant

    @mrunal2989 my bad, it should be

    body.register #buddypress {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    }
    #248046
    ldesherl
    Participant

    I deactivated Shareaholic. I deactivated Jetpack “like.” I deactivated Buddypress and then reactivated it. All to no avail. The “Save Settings” option still is not there. Period.

    #248045
    mrunal2989
    Participant

    Thank you @mercime .. I changed my “Register” page to full width , and added this
    #buddypress {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    }

    to my child theme style.css , but no effect 🙁

    Register page is still not centered 🙁

    is there anything else I could try?

    #248041
    namrons
    Participant

    @henrywright I’m a fan of your Buddypress Mute plugin. Would you consider (if you have the time) producing a working version of this “Bump Activity to top Plugin”? The original dev is not active any more. Hard to believe there’s no other solution out there. Perhaps I’m underestimating the complexity, though.

    #248037
    @mercime
    Participant

    @mrunal2989 the easiest way to center the registration page to select the full-width page template (instead of the Default Template) of your theme from the “Register” page Page Attribute box and then use CSS on the #buddypress wrapper to center the registration page. e.g. add

    #buddypress {
         width: 90%; 
         margin-left: auto; 
         margin-right: auto; 
    } 

    to your theme’s stylesheet.

    #248036
    @mercime
    Participant
    #248034
    @mercime
    Participant

    @ldesherl Sorry to learn that you’re having many issues with BuddyPress. Closing this topic and continuing discussion at https://buddypress.org/support/topic/could-not-save-basic-settings/

    #248032
    @mercime
    Participant

    @ldesherl If you’re not seeing the button to save settings to associate Pages with BP components, then you might need to delete BuddyPress then re-install BuddyPress.

    As for the content of the BuddyPress pages not showing up: I suspect it’s a plugin conflict, specifically with the Shareaholic share buttons and possibly the JetPack Like Button. Deactivate the Shareaholic first and check if the issue is resolved.

    EDIT – Also, if you’ve been deleting and re-installing BuddyPress through wp-admin Plugins panel, try deleting then uploading the BuddyPress plugin folder via control panel or FTP.

    #248031
    r-a-y
    Keymaster

    Because you are using a child theme, you have to register cover image support separately.

    Read this section:
    https://codex.buddypress.org/themes/buddypress-cover-images/#about-buddypress-css-overrides

    For $theme_handle, since you’re using a child theme, you’ll need to change this to:

    $theme_handle = 'bp-child-css';

    If your cover image is similar to bp-legacy, you can also change $settings['callback'] to:

    $settings['callback'] = 'bp_legacy_theme_cover_image';

    Otherwise, write your own callback function by copying and modifying bp_legacy_theme_cover_image(). Don’t forget to change the $settings['callback'] variable to your custom function name if you go this route.

    #248027
    @mercime
    Participant

    @golf2bi I can see Members and Groups in your main menu. If you’re referring to BuddyPress links in Appearance > Menus, then click on the “Screen Options” tab at the upper right hand corner of that screen to show a panel. Check “BuddyPress” under the “Boxes” section.

    #247986
    ldesherl
    Participant

    I did those things but Buddypress, unfortunately, seems to be working the same. I have one of those default themes installed.

    #247980
    CoeyCoey
    Participant

    1. Remove all your custom CSS files temporarily and see if the cover image appears by default. If it does, then the problem is probably isolated to your CSS rather than with BuddyPress or your main Theme.

    When the CSS is pulled from the buddypress directory, it works as expected. When it is pulled from the theme directory, the cover image disappears. Exact same files in both places.

    2. Use the browser developer tools (F12) to see if the id for cover image appears in the code even if you can’t see anything on screen. If it does try manipulating its attributes to bring it to the foreground as it may be hidden beneath other layers (z-index). Or display: none layers around it to see what is hiding it.

    It doesn’t appear to be loading the image at all.

    3. Check the id’s against your CSS. New id’s were obviously introduced for the cover image which weren’t in old BuddyPress CSS files which you may have used as a base for your custom one.

    I have no idea what this means. Can you elaborate, please? I just downloaded buddypress, so everything should be up to date, no?

    4. Try another theme with your custom CSS to see if it is a theme issue

    Theme doesn’t make a difference, only the location of the CSS files. The CSS files have not been modified.

    5. Put all your custom BuddyPress CSS into the standard style.css file within a child theme and see if it works that way.

    Tried this, and same problem. Works fine when pulling from buddypress/bp-templates/bp-legacy/css, but try and pull it from anywhere else, and the cover image disappears.

    #247972
    VersGemerkt
    Participant

    I’M MAKING PROGRESS!!

    mcUK suggestion to test the code in Buddypress was a very good tip. This is what I found out:

     <div id="user-opleiding">
    <?php 
    do_action ( 'user_opleiding_field' ); 
    ?>
    </div>

    WORKS IN BUDDYPRESS 🙂 I added this do_action in the standard profile page, and it is showing the field Opleiding.

    Every other suggestion, like xprofile_get_field_data, doesn’t work.

    NOW: do one of you know how I can let do_action work when I call it from another plugin? That would be awesome!

    #247970
    @mcuk
    Participant

    Hi David,

    Can’t see any errors in your code, so it should work for BuddyPress (try the do_action within a BP file to double check). Hopefully Shane’s suggestions will work for you!

    #247965

    In reply to: Front-End Login

    mrky007
    Participant

    There should be a BuddyPress log in widget, which you can easily add to any widget area.

    #247963
    Henry Wright
    Moderator
Viewing 25 results - 16,201 through 16,225 (of 73,983 total)
Skip to toolbar