Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 3,211 total)
  • Profile photo of danbp
    danbp
    Moderator

    @danbp

    Perhaps the closing php tag after endwhile. Remove ?>

    <?php endwhile;
    	// User filtering.
    	$user_id = bp_displayed_user_id()
    		? bp_displayed_user_id()
    		: false;

    Note that you’re hacking a core file and that customization will be lost at next bp update.
    Never do that.
    That said i doubt that your like button will work on BP activities. That button is made for wordpress, not BP.
    Try better this plugin which is more appropriate imho.
    https://wordpress.org/plugins/buddypress-like/

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi,

    bbPress is a forum plugin. Why should you need a forum to group users ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Glad you got it to work. But i’m wondering why you want to add this to the label (which is the field title) instead of using the field description ?

    This information is only usefull when the user fill in the field or edit it.

    You can open the one or other class file in bp-xprofile directory and read through to understand why and how each field type is set and works inside BP.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    No that’s not possible.
    Only Me is very private and visitors or logged in members can’t see the profile in this case.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Not sure if it is what you want, but can you test this (add to bp-custom.php) ?

    function bpex_profile_set_abbr_title( $field_value ) {
    	$bp_this_field_name = bp_get_the_profile_field_name();
    	// field name (case sensitive)
    	if( $bp_this_field_name == 'Twitter Handle' ) {
    		$field_value = strip_tags( $field_value );
    		$field_value = '<abbr title="Twitter handle without the @ sign" rel="tooltip">'. $field_value .'</abbr>';
    	}
    	return $field_value;
    }
    add_filter( 'bp_get_the_profile_field_value', 'bpex_profile_set_abbr_title' );

    That’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for .label

    Open /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)

    #buddypress table.profile-fields tr td.label,{
       background-color: #xyz123!important;
       color: #xyz123!important;
    }

    Do you get the same behave while using another theme ?

    Read from here and see if you can code in a watermark

    BP_Attachment

    Hi,

    this feature is currently handled field by field when you’re on the field creation page.
    dashboard > Users > Profile Fields
    Edit an existing field and see in the right column the box named Autolink. From there you can choose to enable/disable it.

    For more details about the concerned fields and autolinking, read comments in bp-xprofile/bp-xprofile-filters.php:322

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Please don’t double post on this forum.

    You activated BuddyPress Custom Profile Menu plugin and got a fatal error. Remove it or rename his folder via FTP, so you can access your dashboard again.

    Then contact the plugin author.
    Since 2.6, BP use a new navigation API. Maybe the plugin isn’t updated for that or there is another conflict with your theme.

    You have to debug.
    And read also here please.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    What do you mean by how to set the attribution for the photos. So far i know there are no attributes for group cover images.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Try this (goes to bp-custom.php )

    function my_disable_bp_registration() {
    remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
    remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' ); 
    function my_redirect_signup_page(){
    	//return wp_registration_url(); 
    	return bp_get_root_domain() . '/wp-signup.php';
    }
    add_filter( 'bp_get_signup_page', 'my_redirect_signup_page' ); 
    Profile photo of danbp
    danbp
    Moderator

    @danbp

    ok. Now do i understand right ?
    You have 4 groups and each one has a color assigned.
    User belonging to Group Blue get his name in blue, user belongig to Group Red get his name in red ?
    And this should remain only for all group activities ?

    Npt on profile, site activity or members directory ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    In which format is your user list ? And does that list contains the same # of columns (10) as wp_user table ?

    If you have access to the DB and phpMyAdmin, you can do this directly with mySql.
    phpMyAmin has an import/export tool.

    Note that if the site is already pw-protected, importing only usernames and emails won’t let them access. You need also to import a pw for them.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Go to dashboard > permalinks and save.
    Go to dashboard > Tools > BuddyPress, select Repair member “last activity” data and click on Repair.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Forget it, it’s not possible or at least complicated See here why.
    If you’re a coder, you could evtl. try this solution.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Haven’t you found that plugin ?

    Introducing BP Group Activities Notifier plugin for BuddyPress

    Don’t omit to read the comments too. They’re several questions who can interest you.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    hi @damland,

    it’s not exactly intended to move screens from one tab to another.
    For nav and subnav of the buddynav you can
    – add tabs
    – remove tabs
    Each menu item has (under other) a slug, a parent url and a screen function.
    In the present case, the Edit item slug belongs to the user profile.
    Something like: site-name/members/username/profile/edit/
    And the Profile Settings url is site-name/members/username/settings/

    This means if you remove Edit from one place to add it to the other, you will have two different url’s ! Something like site-name/members/username/settings/profile/edit/
    which will logicaly fire a 404 error on click.

    Also when you remove a nav item, it removes also the attached screen function.

    The trick to use is not to built out the Edit button – as this would remove the whole edit screen and trying to add to Settings, but simply to hide the button on the profile and add a copy of it on the Settings subnav.

    We use CSS to hide the button. Note that the menu css is the same for all items wherever the tab they are used.

    Get snippet here: https://gist.github.com/danbp/ea92923b1109ee1fcebd0741d861cda6

    Give that a try and tell us if it worked for you.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    And where should this appear ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Wouldn’t trying to do that as it will break to many functions and also JS…

    To get an idea see a part of the task – and it’s not related to url’s !

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    To restrict the usage of the What’s New form to only admins and editors…

    Copy post-form.php from (bp-templates/bp-legacy/buddypress/activity/ ) to (/your-child-theme/buddypress/activity/).

    In the copy, add if ( bp_current_user_can( 'editor' ) ) : above the form tab and add endif; right after the closing form tag, at the end of the file and you’re done.
    Note to take care of the existing php tags.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Please, give more details about the requirements and at least a contact email.

Viewing 25 replies - 1 through 25 (of 3,211 total)
Skip to toolbar