Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,876 through 13,900 (of 69,016 total)
  • Author
    Search Results
  • #235378
    danbp
    Participant

    Hi @ksmithlondon,

    the add friend button on members directory or profile header is styled here
    wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css
    line 761

    The class=”friendship-button not_friends add” is not used by CSS.

    The class name comes up in:
    wp-content/plugins/buddypress/bp-friends/bp-friends-template.php between line 352 > 410

    and is also used in wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js:1211

    Next time instead of looking and looking and looking, simply search. And use the appropriate tools which will do this for you πŸ˜‰

    Firebug and Notepad++ in this case, taked me less than 5mn. πŸ˜‰

    #235373
    danbp
    Participant

    The code works with BP 2.2
    and will better work when in bp-custom.php.
    Also don’t forget to logout as site admin before testing it or you will continue to see you ! πŸ˜‰

    danbp
    Participant

    Please read here, it’s better explained.

    The example given on Codex is related to ‘page’, and you want to show something on ‘activity’.

    Instead of 'component_id' => buddypress()->activity->id,
    use 'component_id' => 'activity',
    and instead of
    add_action( 'bp_init', 'customize_page_tracking_args' );
    use init with a very late priority
    add_action( 'init', 'customize_page_tracking_args', 999 );

    Pfuiiiiii, taked me a while to find this.

    Here a working example of a CPT called Music and how to get it in the SWA

    // allow tracking of our CPT
    add_post_type_support( 'music', 'buddypress-activity' );
    
    // creating the dropdown filter on activity and members page
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        bp_activity_set_post_type_tracking_args( 'music', array(
            'component_id'             => 'activity', // unique ID
            'action_id'                => 'new_music', // new_$post_type where new_ is mandatory
            'bp_activity_admin_filter' => __( 'Published a new music', 'text-domain' ),
            'bp_activity_front_filter' => __( 'Music', 'text-domain' ),
    			'contexts'                 => array( 'activity', 'member' ), // swa & member activity page
    			'activity_comment'         => true,
    			'bp_activity_new_post'     => __( '%1$s posted a new <a href="%2$s">Music</a>', 'text-domain' ),
    			'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">Music</a>, on the site %3$s', 'text-domain' ),
    			'position'                 => 100,
        ) );
    }
    add_action( 'init', 'customize_page_tracking_args', 999 );
    
    // creating the CPT
    function bpfr_create_post_type() {
      register_post_type( 'music',
        array(
          'labels' => array(
            'name' => __( 'Music', 'text-domain' ),
            'singular_name' => __( 'Music', 'text-domain' )
          ),
          'public' => true,
          'has_archive' => true,
        )
      );
    }
    add_action( 'init', 'bpfr_create_post_type' );
    

    FYI, i added the mentionned topic to the Codex page. Would probably help more than one. πŸ˜‰

    #235370
    bp-help
    Participant

    @car1979
    Not sure if that code still works but you could place it in bp-custom.php:

    bp-custom.php


    or in your themes functions.php

    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!

    #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

    #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.

    #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.

    #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/

    #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.

    Hugo Ashmore
    Participant

    What do your WP settings page ‘general’ show for urls, specifically ‘Site Address (url)’? Did you check the values here after the change over?

    WP codex guide on this aspect:
    https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Did you also visit the permalinks page under ‘settings’, just to ensure permalinks are re-freshed?

    This is really a WP support issue as the problems rest with how WP is configured rather than issues specific to BuddyPress working.

    #235289
    bp-help
    Participant

    @alice-kaye
    Go to dashboard/menus and in the top right corner click screen options and make sure the box beside buddypress is checked. Once checked you will see the options to add buddypress items in the edit menus tab. Good luck!

    danbp
    Participant
    #235251
    Klosurdo
    Participant

    Thanks for the reply danbp,

    The Theme I am using is KLEO by Seventh Queen
    Buddy Press version Version 2.2.1

    I am looking to hide menu items for non logged in visitors in members profiles See example here.. I want to have only the β€œmedia” menu and possibly the documents icons viewable to non logged in visitors.

    I would like all icons viewable to only those members that are logged in.

    Thanks

    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

    #235248
    danbp
    Participant

    @marketraisen,

    the original code is %s posted an update
    To modify this the right way, you have to use the language file and an appropriate compilator such as poEdit to generate the mo file.

    Don’t know what solution you didn’t found, guess you have to search this forum for translation related topics.

    A very dirty solution would be to use this snippet and add it to your child-theme functions.php

    function marketraisen_change_bp_update_text( $translated, $original_text, $domain ) {
    		
    	if ( 'buddypress' !== $domain )  
    	return $translated; 
    	
    	switch ( $original_text ) {
    		case '%s posted an update':
    		return '%s posted on';
    				
    		default:
    		return $translated;
    	}
    }
    add_filter( 'gettext', 'marketraisen_change_bp_update_text', 10, 3 );
Viewing 25 results - 13,876 through 13,900 (of 69,016 total)
Skip to toolbar