Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 9,051 through 9,075 (of 69,047 total)
  • Author
    Search Results
  • #259761

    In reply to: Online Status

    Julian
    Participant

    @danbp I use the widgets “BuddyPress Friends” and “BuddyPress Members”. I use 1 sidebar. The theme supports 2. I have no specific sidebar. Have I answered all the questions?

    #259758
    danbp
    Participant

    This bug still exist actually, despite tickets #5354 (3 years old) #5808(2 years) #6854 (9 mounth).

    Milestone changed from Awaiting Review to BuddyPress.org

    Sounds like milestone BuddyPress.org is stone (hey Miles), devastated, completely in the wind, out of interest… Sucks.

    danbp
    Participant

    I hope so ! FYI, we all here learned by making mistakes, errors and asking around 🙂 :
    Check the history !
    JJJ, Boone & Ray, djpaul, mercime, hnla, shanebp, henrywright, me

    danbp
    Participant

    @kgrondell,

    … and finally, the right way to achieve this is explained here:

    Navigation API

    #259743
    danbp
    Participant

    Hi,
    you do it wrong and it is much more simple to make customization by reading the codex.

    The only thing you have to do on the custom template ( i assume you already have the template) is to create a custom member loop. To fecth the correct data to show and how to do that is explained in details here (see Code Examples):

    Members Loop

    #259734
    danbp
    Participant

    You posted another question on Buddypress Profile Search support, where it appears that you try to remove the member search form.

    In regard of the BuddyPress support forum, you use at least two third party plugins aside BP and perhaps proceeded to template customization !

    You have to isolate the culprit: one of your plugins or your theme customization. BuddyPress is not concerned. Sorry.

    #259727
    metalhead
    Participant

    I’m using a plugin called Buddypress Xprofile Custom Fields Type.

    If I edit a profile field, Buddypress begins to malfunction by not letting a new user save his info entered into the register.php form.

    So if I delete all my profile fields, and then re-create them, Buddypress will begin to function properly again, but, then I create custom profile search widgets with a plugin called “Buddypress Profile Search,” and then the problem starts again. (User can’t save the data he entered. Registration page just refreshes.)

    #259717
    danbp
    Participant

    Hi,

    try this (add to bp-custom.php):

    function add_profiles_link_to_page(){
    
    	if ( bp_is_profile_component() || bp_is_user() ) {
    
    	// allow link to appear only to loggedin user
    	/*if ( !is_user_logged_in() )
    		return false; */
    
    	// tabed internal link : /internal link/page name/
    	//$link =  bp_get_root_domain() . '/book/';
    
    	// tabed external link
    	$link =  "https://www.amazon.com/";
    	
    	?>
    		<li><a href="<?php echo $link; ?>"><?php printf( 'My Books' ); ?></a></li>
    	<?php  
    	}
    }
    add_action( 'bp_member_options_nav', 'add_profiles_link_to_page' );
    Raphael.v
    Participant

    I forgot to give some informations about my website :
    Buddypress : 2.6.2
    WP : 4.6.1
    Thème : Kleo

    #259711
    danbp
    Participant

    @djpaul ‘s advice is wise !
    But you could try following which doesn’t compromise your security and will avoid the sky falling on your head !

    First remove the filter hack, we don’t need it.

    Then built your drop-down list and add only the site name instead the whole URL.

    For example,
    – create a new field
    – call it Test drop down
    – enforce visibility
    – disallow clickable
    – add some options: buddypress.org, wordpress.org
    – save
    Go to your profile > edit and choose buddypress.org. Save.
    You see now buddypress.org on your profile

    Now we have to make this text clickable and linked to bp.org

    For this, you can use this snippet, placed in bp-custom.php

    
    function bpfr_set_checkbox_output( $field_value ) {
    
    // ensure xprofile is activated
    if ( bp_is_active( 'xprofile' ) )
    
    // call the field
    $bp_this_field_name = bp_get_the_profile_field_name();
    
    	// field name (case sensitive)
    	if( $bp_this_field_name == 'Test drop down' ) {	
    	// here we change site name to url
    		$field_value = str_replace('buddypress.org' ,'http://buddypress.org', $field_value);	
                    $field_value = str_replace('wordpress.org' ,'http://wordpress.org', $field_value);			
    	}
    
    	// fire the result!
    	return $field_value;
    }
    add_filter( 'bp_get_the_profile_field_value', 'bpfr_set_checkbox_output' );
    #259709
    danbp
    Participant

    Hi,

    your site is pwd protected, so i removed the link to it.

    You can do that by CSS from within your child-theme style.css
    As it is not only BuddyPress css, but also dependent of your theme, you have to check for the correct classes and id’s to use.

    1) we hide first the sidebar on the profile.
    2) we enlarge the content part to full width (100%)

    On each BP page is a page-id-{number}. You need it to define the style for this page only.

    As example, this is working with Twenty Sixteen

    /* remove sidebar */
    body.page-id-0 aside#secondary {
    	display: none;
    }
    
    /* enlarge content to full width */
    body.page-id-0 div#primary{
    	background-color: yellow;
    	width: 100%!important;
    }
    #259703
    r083r7
    Participant

    On a related note do you use the same technique to the other files to edit the BP theme. I mean only copy the file you want to edit and only include the custom edits.

    For example plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php

    ?

    #259701
    prakharmonga
    Participant

    thanx for the solution.
    it appeared using screen option
    but i have another problem
    i am using wp multisite and the structure is
    subdomain.maindomain/subsite
    it is appearing on the main site from the screen options
    i have buddypress network activated from the network menu
    but it is not appearing on screen options in sub sites
    i want to have My Profile in all my sub sites menu

    #259700
    danbp
    Participant

    1) & 2) /activity controls the site activities, while /members/single/activity/ controls the members activity tab on profile.

    3) plugins/buddypress/bp-templates/bp-legacy/ and plugins/buddypress/bp-templates/bp-themes/

    /bp-legacy/ contains /buddypress/ the current version templates.
    /bp-theme contains /bp-default/, the historical BP theme (since 2007). This theme is relatively frozen and remains just for backcompatibility, in case some vintage coders continue to use it.

    Since BP 1.9, you can use almost any existing WP theme, so far it is respecting wp theming standarts.

    4) each component has a header. The respective files are in bp-legacy/buddypress/
    /members/single/
    /groups/single/
    Here can find a list of functions/filters/hooks related to cover (bp 2.4.3)

    5) impossible to say, as it depends of the instructions ! Can you give a link ?

    #259699
    r083r7
    Participant

    Thanks for the tips.

    Here’s what I did earlier:
    – I did in fact copy the /child/buddypress/css/buddypress.css file, including all css.
    – I did not make any changes to it so far, I’m just testing how this works at this point.

    Something doesn’t seem right if I’m understanding what you said. If I delete everything in the /child/buddypress/css/buddypress.css file I’m not adding anything. It should just jump to the default buddypress.css file and display the default BP look. Instead, when I clear the file it basically strips all css and that’s it. The BP pages look unstyled since there isn’t any css loading.

    Did some more troubleshooting and seems like if I have the /child/buddypress/css/buddypress.css file it just loads that file and stops there, it doesn’t reach out to the default buddypress.css.

    I’m going to keep troubleshooting, any ideas as to what’s going on please let me know.

    #259698
    danbp
    Participant

    Hi,

    you add only custom css rules to /child/buddypress/css/buddypress.css
    You don’t neeed to copy the whole original content to child. This avoid also to duplicate code.
    Files contained in child have priority over theme.
    In other terms what is not found in child (php, htlm, js, css) will be taken from the original source.
    In some cases, when you create a custom css rule, you need to add !important, like this:
    color: #000!important; By the way, you give high priority to the rule and you’re sure it is always interpreted.

    And of course, you need to triple check what you code. CSS rules with missing semicolon, or who aren’t closed can generate issues, from not be applied to blank pages…

    #259697
    danbp
    Participant

    Hi,

    that’s a wordpress question (related to wp_nav_menu_items).

    See WP Codex for answers:

    wp_nav_menu_items

    wp_get_nav_menu_items()

    wp_nav_menu_objects

    Many similar related topics also on BuddyPress forum. Ie. :
    https://buddypress.org/support/topic/how-to-get-notification-count-code/

    #259688

    In reply to: Online Status

    Julian
    Participant

    @danbp Thank you for your help. I could not find a mistake in the translation. “% S” is used correctly everywhere. Any online status has not been translated (Not just “ago”), I downloaded the official version. It is about the page “Side-Wide – activity”. I have installed a Buddypress independent theme.

    #259687

    In reply to: Online Status

    danbp
    Participant

    Hi,

    check the code you used for “16 minutes ago”. You will find it in the buddypress-de_DE.po file. Normally, you should have %s ago -> vor %s. If you omit % or s, the string won’t be translated.

    If it’s not a typo error of yours:
    – where is this untranslated “ago” string showing ? Site activity, profile, widget, other ?

    – do you use a specific “buddypress” theme ?

    – does the issue remain when using the “official” translation file ? If not, download it here (po & mo). Don’t forget to remove your version before adding the original one into wp-content/languages/plugins/

    #259683

    In reply to: Online Status

    Venutius
    Moderator

    Have you deactivated all other plugins except BuddyPress? looks like something is causing BP to not see the files

    #259672
    danbp
    Participant

    Hi,

    give details if you expect help !
    Which widget are you talking about ?
    “course” is not part of BuddyPress. Plugin name ? Theme ?

    #259671
    danbp
    Participant

    [Moved to another forum by OP request]

    You can try this snippet which will add the link to main menu (aside About, Home etc):

    function my_nav_menu_profile_link($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '">' . __('My Awesome Profile') . '</a></li>';
                    $menu = $menu . $profilelink;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );

    Another way to do this is explained in this topic.

    #259666
    r083r7
    Participant

    Well that was strange.

    I deactivated all my plugins except for BuddyPress. Then activated them all again. WORKS !!!

    If anyone has any theories as to why it worked it would be nice to know.

    #259665
    r083r7
    Participant

    I must be missing something basic.

    Just to clarify this is the correct location:
    wp-content>themes>genesis-sample>buddypress.php

    genesis-sample is the child theme by the way.

    #259663
    Paul Wong-Gibbs
    Keymaster

    @r083r7 Hi. You’re right that BuddyPress loads page.php as its default page wrapper template. The list near the top of https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ shows the entire template hierarchy. Adding a buddypress.php file to your theme should have it load that template.

    This file should be in the root of your theme, or inside a subfolder called “buddypress”.

    I forget how setting the page template in the wp-admin page editor works with BuddyPress (I think @hnla and I fixed it at a WordCamp a few years ago). But the stuff already mentioned will probably take precedence over it.

    If this doesn’t work, I’m not sure.

Viewing 25 results - 9,051 through 9,075 (of 69,047 total)
Skip to toolbar