Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 23,826 through 23,850 (of 94,545 total)
  • Author
    Search Results
  • #189713
    danbp
    Participant

    hi @stefanolusetti-1,

    here we go !
    You already copied buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php to the right place in your child-theme:
    /child-theme/buddypress/activity/post-form.php

    Excellent! Here’s more.

    We’re going to use the wp_editor function to accomplish the task.

    Note: wp_editor can replace any textarea. This means that if you use these function, that you have to remove the original textarea first.

    The above function use the new drag_drop_upload support introduced in WP 3.9

    First we go to remove the whats new textarea from this file, around line 29, and replace it with a custom action hook: whats_new_textarea

    Before

    <div id="whats-new-textarea">
    			<textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    </div>

    After

    <div id="whats-new-textarea">		
       ?php do_action( 'whats_new_textarea' ); ?>				
    </div>

    Save.

    Now go to /plugins/bp-custom.php (if the file doesn’t exist, you have to create it) and paste in this snippet.

    function bpfr_whats_new_tiny_editor() {
    	// deactivation of the visual tab, so user can't play with template styles
    add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    		$settings = array( 
    		'textarea_name' => 'whats-new', 
    		'teeny' => true, 
    		'media_buttons' => true, 
    		'drag_drop_upload' => true, 
    		'quicktags' => array(
    		'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'));	
    	
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    Save and enjoy !

    #189707
    SuyashGulati
    Participant

    hey. i am using cloudflare with buddypress and it has a feature of rocket loader. is it safe to use it with buddypress?

    ChiefAlchemist
    Participant

    => re: “Note that you need to add the correct id(s) for exclude_fields.”

    Thanks shanebp. But is this the only way? I mean, I can’t do mucking with the code every time the client wants something new? Can I?

    => re: …/buddypress-xprofile-custom-fields-type/

    “Add new visibility setting “Nobody”. Hide the field to all members.”

    So this means, I presume that custom visibility is possible. Yes?

    That said, I want to use standard fields, but I want to create the list via code, and not have to do it manually. Not possible? Mind you, it could be cause I’m new to BP but I’m trying to where / how the profile definitions are stored. I presume it’s an array, or close. So I want to do that but with code.

    Thanks again

    #189701
    shanebp
    Moderator

    For template files, see this codex page:

    Template Overload from a Plugin

    shanebp
    Moderator

    I wouldn’t rely on messing with visibility settings.
    To make a profile field only editable by admins, do this in bp-custom.php or a plugin:

    // only admins can edit the Skills field
    function chief_hide_profile_fields( $retval ) {
    	
    	if( is_super_admin () )
    		return $retval;
    
    	if(  bp_is_profile_edit() || bp_is_register_page() )
    		$retval['exclude_fields'] = '3';	//profile field ID's separated by comma
    
    	return $retval;
    
    }
    add_filter( 'bp_after_has_profile_parse_args', 'chief_hide_profile_fields' );

    Note that you need to add the correct id(s) for exclude_fields.
    And that ‘ || bp_is_register_page() ‘ keeps the field(s) off the register page – which you may not need to do.

    Re how to create profile fields in code, there a couple of ways to do it depending on the kind of field and how it will be used.
    Take a look at these plugins for more info:
    https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
    https://wordpress.org/plugins/buddypress-xprofile-image-field/

    #189698
    ChiefAlchemist
    Participant

    Theme Compatibility – Customizing

    Is there a way to do this via a plugin and not necessarily right into the theme?

    #189681
    danbp
    Participant

    @electromagnetic,

    if you’re comfortable with HTML, you can try to modify the template by moving the field description to the place you want it to see.

    The file is register.php in wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members
    Make a copy of that file into your child-theme
    /your theme/buddypress/members/register.php

    #189680
    ElectroMagnetic
    Participant

    Hi there.
    I have WP 3.9.8 and buddypress 2.01 ( with Xprofile ) and using the sweetdate theme from seventhqueen ver 2.6.3 together with a child theme.

    Is there any method you can help me with to add the field description below the field label. currently the descriptions are below the desired answers required for the profile field and can be somewhat confusing when the field is quite long.
    I did wonder why it was done this way as most forms would explain the topic and question before the required answer.
    What I would like to achieve is that all fields in all Groups created in Xprofile have this change and not just the “base Group” used for registration ( group/1/#main ) As I have created 8 groups and each have approx 10 fields in each. The fields are a combination of “text” ” checkboxes” “Dates” etc.

    Thank you in advance

    #189677
    stefano.lusetti
    Participant

    I,
    i need to add a rich text editor in activity stream instead of the actual textarea (id= #wats-new-textarea”)
    I have WordPress 3.9.1 and Buddypress 2.0.1.

    At the moment i change the file \mytheme\activity\post-form.php:

    I replace the textarea with the wp_editor:

    
    wp_editor( bp_get_activity_content_body(),'whats-new', array(
        'media_buttons' => true,
        'textarea_rows' => '200',
    	'teeny' => true,
        'quicktags' => array('buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close')
        )
    );
     
    

    But i can’t make it work. The submit button doesn’t appear.

    ernstl
    Participant

    Hi @danbp,

    thats clear to me, but we only need to import all exsisting data into the new bbpress/buddypress environment and are happy when its done ( db has 6gb… ). Will keep the importer safe, and got it in mind. But thx for mention it.

    Rgds,
    ernstl

    danbp
    Participant

    hi @ernstl,

    it is a very bad idea to hack a core file. The modification you added will be lost at the next bbpress update.

    https://codex.buddypress.org/developer/action-reference/

    #189673
    danbp
    Participant

    hi @paatukka,

    you have to explain what kind of information your business directory should have !
    Don’t think about plugins or theme before you now exactly what the project is intended to show.
    I guess it would be wise trying to use – so far as possible – the existing before thinking of adding extra stuff.

    Once installed, and depending the activated components you use, BuddyPress has already a member, a group, a forum and a blog directory.

    #189669
    paatukka
    Participant

    Hello,

    Can someone please help me with this project how to make business directory.
    Which plugins I should you or is there any directory BP themes for this purpose ?

    Appreciate replys,
    Thanks

    Br.
    Pade

    #189665
    Subtopic
    Participant

    This is the image with the problem I am getting when Buddypress is trying to show my profile picture.

    https://drive.google.com/file/d/0B8pTnMPnGXImclRlLXpGX3BsbE0/edit?usp=sharing

    applegateian
    Participant

    Hi guys

    I’ve seen this topic before, but in quite an old thread.

    I have created some multi-line text boxes in Profile Fields, but when the user completes a form with line breaks, these are not appearing in the front end.

    When I inspect the HTML, the breaks appear, but they do not show up to the user. Here is how the html looks and how the front end renders:


    I am running BuddyPress 2.0.2 with WordPress 4.0, running Reverie Theme.

    How can I get the line breaks to appear?

    Thanks,

    Ian

    Splendorito
    Participant

    Hi,

    I want a custom tab in the profile that takes in the info from wp recents post? I have this code below that should do the job but I don’t understand how to hook it up with wp recent posts..

    //Buddypress add profile tab Latest Post
    add_action( 'bp_setup_nav', 'latest_post_nav' );
     
    function latest_post_nav() {
        global $bp;
        $parent_slug = 'Post';
        $child_slug = 'Post_sub';
        //name, slug, screen, position, default subnav
        bp_core_new_nav_item( 
                        array(
                                'name' => 'Posts',
                                'slug' => $parent_slug,
                                'screen_function' => 'my_profile_page_function_to_show_screen',
                                'position' => 50,
                                'default_subnav_slug' => $child_slug 
                        ) 
        );
    }
    function my_profile_page_function_to_show_screen() {
     
        //add title and content here โ€“ last is to call the members plugin.php template
        add_action( 'bp_template_title', 'my_profile_page_function_to_show_screen_title' );
        add_action( 'bp_template_content', 'my_profile_page_function_to_show_screen_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
     
    function my_profile_page_function_to_show_screen_title() {
        echo 'Page title';
    }
     
    function my_profile_page_function_to_show_screen_content() {
        echo 'Page content';
    }
    #189656
    Pavle123
    Participant

    Hello,

    How to create Facebook integration for BuddyPress?

    I would like our users to be able to login via Facebook instead of having to register?

    Any ideas? Plugins?

    Iยดve been trying to find a solution for 4 hours now ๐Ÿ™

    #189655
    durkk
    Participant

    In my limited experience Buddypress is fine.

    You might also look at the freemium plugin called Symposium or something like User Pro plugin on codecanyon: http://codecanyon.net/item/userpro-user-profiles-with-social-login/5958681 Which is a bit lighter and is designed a little less spartan/basic visually speaking.

    #189654
    jreeve
    Participant

    Thanks @danbp. I got it to work by doing this:

    
    cd /path/to/wp-content/plugins
    svn co https://buddypress.svn.wordpress.org/trunk/src buddypress
    

    And then installed the bp-default theme manually with this:

    
    mkdir buddypress/bp-themes
    cd !$
    git clone https://github.com/buddypress/BP-Default.git
    
    #189653

    In reply to: register.php

    quangn
    Participant

    I fixed it this way. I read this once somewhere and this is the ONLY solution that worked for me. Use this following step:
    Copy the folder Members with it files (but i think you should delete all others except-register) located in:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/

    and paste it in:
    wp-content/themes/(the WP theme you use now)

    now you can modify the file reigster ^^

    #189652
    danbp
    Participant

    Hi @jreeve,

    Perhaps try directly from buddypress svn, https://buddypress.trac.wordpress.org/browser/trunk
    This let you also provide patches, which is not possible on github.

    An install guide is here:
    https://make.wordpress.org/core/handbook/installing-wordpress-locally/installing-via-svn/

    #189651
    jreeve
    Participant

    I’d like to try out the latest BuddyPress from GitHub, but I can’t quite get it to work, I think because the version from git/svn is in a subfolder, so that bp-core is in /buddypress/src/bp-core instead of /buddypress/bp-core. This seems to be mitigated by bp-loader.php which points to the src/, but it isn’t quite working for me. I’ve been getting the error:

    PHP Fatal error: require_once(): Failed opening required '/vagrant/app/public/wp-content/plugins/buddypress//bp-themes/bp-default/_inc/ajax.php' (include_path='.:/usr/share/php:/usr/share/pear') in /vagrant/app/public/wp-content/themes/cbox-theme/engine/ICE/ext/features/bp/support/class.php on line 116

    Even though I’ve already cloned a copy of the bp-default theme to /bp-themes/bp-default. The offending line 116 shows that it uses the BP_PLUGIN_DIR constant, and it looks like that constant is /vagrant/app/public/wp-content/plugins/buddypress/bp-themes, without /src/, but adding /src manually to the constant gives me a different error: PHP Fatal error: Call to undefined function bp_get_option() in /vagrant/app/public/wp-content/plugins/commons-in-a-box/includes/frontend.php on line 62.

    I also tried cloning BP elsewhere, and symlinking it to /wp-content/plugins, but that didn’t seem to work, either. Is there a reliable way to check out the latest BP code in my dev environment?

    #189646
    danbp
    Participant

    @seniortech,

    On a single install, users have never access to the dashboard. This only happens if they have a blog on a multi site. And the admin they see is the admin of their blog, not the main blog where BP is installed.

    But first, read here please, provide the information and your theme name. be warned that if you use a premium, that you can’t expect much help on this forum, as we have no access to such themes.

    FYI: the admin toolbar or any of the BP menus are working like any other menus and toolbar labels on wordpress. Is explained on the WP codex.
    For more advanced details, see here.

    For specific BP customization, read the BP Codex.

    #189645
    danbp
    Participant

    If you think it is not CSS who breaks the js query working in the background, i guess you think false.

    For example if you changed some class name, the script can’t correctly handle the cropping.

    Here a very old topic, related to a css problem with avatar. Nothing to do with yours today, but to make you understand that playing with CSS is not a innocent game.

    You could also read this related to avatar customization on the codex.

    Have you deactivate the actual theme and tried with 2014 ?

    Now, at least, as you use a premium theme, you have to ask on the theme support if you encounter issues. We cannot help much for such themes, as we have no access to them.

    #189641
    Henry Wright
    Moderator

    Hi @jsonb123

    …there is a need to have a Members Directory on the site…

    BuddyPress does provide a members directory.

    They may or may not be able to communicate to other members

    BuddyPress has both public and private messaging which could take care of this.

    I think you’re doing the right thing by installing and testing it out to see if it’s for you. If not, then no harm done really.

Viewing 25 results - 23,826 through 23,850 (of 94,545 total)
Skip to toolbar