Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,076 through 13,100 (of 69,016 total)
  • Author
    Search Results
  • #238772
    Henry Wright
    Moderator

    Hi @micromart

    Check out bp_parse_args(). That’ll be the proper way to do it.

    Ref: https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

    danbp
    Participant

    No, you do it wrong. Read the codex links i provided.

    buddypress-functions.php in the bp-templates\bp-legacy folder or profile-loop.php are not the right files.

    I told you to put the snippet into bp-custom.php OR in your child-theme functions.php

    Why do you hack core files ? They will be overwriten at next BP update… 👿

    tiquality
    Participant

    Wait!!! No I got sucessfull! @danbp I inserted this code on the buddypress-functions.php in the bp-templates\bp-legacy folder, and it is fantastic, very great!

    http://tiquality.com.br/intranet/members/mallandro/profile/

    Thanks guys, very thanks for your help!

    tiquality
    Participant

    hello!

    thanks so much my friend for the help.

    I Inserted the code “function tiquality_add_custom_field() {” in profile-loop.php and inserted the “add_action(‘bp_member” in the functions buddypress, and the result was not ok, see: http://tiquality.com.br/intranet/members/ayrton/profile/

    danbp
    Participant

    hi @tiquality,

    to show the user’s mail above the other user information, you can add the following snippet to bp-custom.php or child-theme’s functions.php

    Assuming users gave a valid email at registration, we can output that address.
    Avantage is that they haven’t to enter their mail a second time while completing their profile.

    So we just need to manually add this address to the template, using one of the action hook avaible in profile-loop.php

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    		if ( is_user_logged_in() ) {
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    		}
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');

    If you prefer it on the profile header, use the action hook indicated by Brajesh
    add_action('bp_member_header_actions', 'tiquality_add_custom_field');

    #238752
    WPWally
    Participant

    Hi @henrywright sorry for the delayed response but I had other things to tend to. Yes, I am seeing the problem on both the localhost and my online server. The only difference between the two is that my local server is returning the error code and my online server is not.

    I am once again updated to the latest versions of both WordPress and BuddyPress.

    #238745

    In reply to: Groups issue

    danbp
    Participant

    Hallo @rene-streber,

    First of, i would recommend that you revert to a basic WP install using 2014 or 2015 theme and the WP’s german language activated and all plugins deactivated.

    If you have a local install, suggest you do your test on it instead of the prod site.

    Once this is done, you activate BuddyPress. German language will automatically be uploaded to the right folder (wp-content/languages/plugins/buddypress-de_DE.mo)
    The original translation is here. It is complete to 100%. (and also the official translation).
    FYI deckerweb provides a translation for bp 1.9 & 1.9.1. So seems to me it is outdated now.

    Check if anything is correctly übersetzt. Theoretish sollte es jetzt funktionnieren.

    If ok, you activate the main theme. Recheck everything. If ok, reactivate your plugins one by one and check each step to isolate an issue, if ever.

    If everything is correct again, you can handle the specifics for your homepage. But remind one thing: BuddyPress components use a page system which is only in for internal purpose. This means that you can’t apply a page model like for an usual WP page. And if you use a special template just for the homepage, you have to adjust it to work with BuddyPress.

    Each activated BP component should have a page assigned. And this page must be unique and empty, whithout any template or model settings, just a title.

    I see that you have some issue with page names in your menu. Button show community2 and the permalink contains community-4. Check this too, to get community only everywhere. And probably clear your trash as it may contain some duplicates from previous attempts.

    Once this is cleaned, und mit klarer aussicht, simply resave your permalinks to reinitialize all links.

    #238744

    In reply to: Forums on Member Pages

    danbp
    Participant

    bp_is_user_forums(), check if forums component is active.
    https://buddypress.trac.wordpress.org/changeset/6484

    Which type of forum do you use ? Standalone or group, or both ?

    In bbPress you have a folder called extend containing the BP specific templates. Should you use them depends the forum type.

    If bbPress is standalone, the plugin is totally independant of BuddyPress in regards of templates at least.

    #238743
    danbp
    Participant
    #238738
    Henry Wright
    Moderator

    Closing as a [duplicate]

    Brajesh Singh
    Participant

    Sorry if I am late here.
    I just tested the plugin today with BuddyPress 2.2.3.1 and It is working. I have updated a new version too that cleans it a little bit.

    Hope that helps.

    Brajesh Singh
    Participant

    Hi,
    Is your theme BuddyPress compatible, if yes, Please check if there is ‘members/single/member-header.php or buddypress/members/single/member-header.php

    If yes, you can put the code anywhere in that file. If your theme does not have this file, It can be added via ‘bp_member_header_actions’ too like this

    
    add_action('bp_member_header_actions', 'devb_show_displayed_user_email' );
    

    which you can put in the bp-custom.php too.

    #238718
    @mcuk
    Participant

    If you add the code below to your style.css file it won’t appear on the page:

    #buddypress .field-visibility-settings-notoggle {
          display: none;
    }
    #238706

    In reply to: Forums on Member Pages

    Marcella
    Participant

    @danbp

    members/single/index.php does exist, I created it. It also takes as a valid template. If you use home.php erroneous p tags are placed throughout the page.
    bp_is_user_forums() doesn’t seem to work.

    I think the template names were all changed, https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages

    /members/member/forums/ doesn’t list anything, returns nothing.
    /members/member/forums/replies – lists the topics, although they aren’t replies they are topics started.

    Thanks for reply.

    p.s.

    danbp
    Participant

    This works only in the member loop.
    Not sure what you mean by a user standard page, but if you mean a normal WP page, see here first:

    Template Hierarchy

    or more simplier, see
    https://wordpress.org/plugins/bp-profile-search/

    #238691
    danbp
    Participant

    Deactivate all plugins except BuddyPress and activate 2014 theme.
    See if it works. Then reactivate one by one until you find a culprit.

    #238687

    In reply to: Edit Profile

    Henry Wright
    Moderator

    Hi @gsupriya

    Check out this article:

    bp_core_new_nav_item()

    #238686

    In reply to: Forums on Member Pages

    danbp
    Participant

    members/single/index.php doesn’t exist. It’s members/index.php

    elseif(bp_is_user_forums()) is in members/single/home.php

    bp_is_user_forums function is in bp-core/bp-core-templates.php:1791

    Confused ? Or really lost ?
    Anyway, your question is How can I serve my own template, and inside that template how do I query a members topics?. Right ?

    Guess you have to do some homework. See:

    Template Overload from a Plugin

    bp_core_new_nav_item()

    Other example, see here (you just have to change the post type probably: post vs. topic)

    https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/

    danbp
    Participant

    if you’re sure you strictly followed these instructions, enable wp_debug and see which kind of error you get when on the group front-end settings page.

    Can you upload user avatars correctly ?
    Can you upload pictures to Media Library ?

    And last but not least, give your theme name or the site url.

    #238683

    In reply to: Forums on Member Pages

    Marcella
    Participant

    @danbp Thanks for reply.

    Inside of members/single/index.php

    There’s some logic to serve the correct template.

    I notice at the line

    elseif(bp_is_user_forums()) :

    This never actually runs… It’s not until the “// if nothing else sticks” fail safe the logic matches and the plugins template is loaded.

    So two problems… How can I serve my own template, and inside that template how do I query a members topics?

    Basically I’m working with the legacy templates which ship with the plugin to get started with this theme.

    Also, sidenote… BuddyPress seems to inject weird paragraph tags throughout the inner templates if you don’t have the correct template names in your-theme/buddypress

    Only seems to happen when a buddypress folder exists inside the theme.

    #238682
    danbp
    Participant

    I can’t explain better as the Codex. You simply have to follow what’s explained here:

    Twenty Eleven Theme

    #238681

    In reply to: Forums on Member Pages

    danbp
    Participant

    it doesn’t reflect the topics this account has created.

    It should normally !
    When on a profile, the forum item leads to this user forum activity. Any type of forum: groups and global forum.

    Verify your settings. What you should get with defaut settings:

    Forum link on profile:
    your-site/members/username/forums/

    On a group forum
    your-site/groups/group_name/forum/

    On the global forum
    your-site/forums/forum/forum_name/ (forum_name is a page title you must create, on this page you add bbpress shortcodes to show up the global forum only).

    Group forum is the first forum you create (in admin) if you want group forums, and as forum attribute you assign “category” (see right column on create forum page).
    Then you have to set this group forum as parent page for all group forums in forum settings.

    Better detailed here:

    Installing Group and Sitewide Forums

    #238680
    danbp
    Participant

    You can’t use that function for this contextual menu.

    Use the action hook coming after bp_user_displayed_nav function: bp_member_option_nav to simply add html and your link.

    Try this (add to bp-custom.php or child theme functions.php)

    function lh_custom_setup_nav() {
      if ( bp_is_active( 'xprofile' ) )
    ?>
    <li><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members', 'buddypress' ) ); ?></a></li>
    <?php  
    }
    add_action( 'bp_member_options_nav', 'lh_custom_setup_nav' );

    Apply CSS to li and a tags accordingly to your theme if necessary.

    Reference file: bp-templates/bp-legacy/buddypress/members/single/home.php

    notpoppy
    Participant

    @danbp OK the best indication I have from reports from my users is this has fixed the problem, so thanks very much for your help! I really am very grateful.

    I have got another problem with groups which I am trying to solve which I have described here if you’re able to take a look:

    https://buddypress.org/support/topic/cannot-upload-group-photo-avatar-gives-404-error/

    #238660
    Parmeshwar
    Participant

    Hello, everyone.

    How can I add Post button in Buddypress Activity sections?

    Please help.

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