Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1,051 through 1,075 (of 3,787 total)
  • @danbp

    Participant

    Hi @lemantico,
    please use the correct publishing tool when you insert links to post. You can add a screenshot here, but it must be stored on a external site. For that, use <img> button and insert the URL of the picture.

    Also, don’t use Google’s search result URL witch is stripped, but the canonical one.

    1) Installing a network locally is a bit more complex as a regular install. It depends first on how you setup your local server and the OS you use.

    You tell about bbPress, are you sure of this ? It’s only a forum plugin and has nothing to do with network setup. And you’re here on the BuddyPress forum!

    If the codex didn’t helped you, maybe this tutorial can.

    Sorry to not help more, but it’s not possible to rewrite here what is already written on WordPress & BuddyPress codex.

    @danbp

    Participant

    yep! $content is not defined.

    Use this one instead. Successfully tested with 2015.

    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 );
    
    $content = "";
    
    	// 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' );
    In reply to: [Resolved] profile tab

    @danbp

    Participant

    Hi,

    template action hook bp_after_profile_field_content is located in bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php:60

    Add a function to bp-custom.php. Eg.

    function queensplace() {
    // your sutff here
    	echo 'outside the container, below the profile tab';
    }
    add_action( 'bp_after_profile_field_content', 'queensplace' );

    @danbp

    Participant

    @c02capo get the answer directly on plugin forum !

    @danbp

    Participant

    Hallo,

    enhancement demand should be made on Trac. Use same login credentials as here.

    There is a TOS plugin which you could use:
    https://wordpress.org/plugins/simple-terms-and-conditions-for-buddypress/
    Another solution can be reached here:

    Terms & Conditions Checkbox

    @danbp

    Participant

    You should read before installing a prototype plugin !

    This is a work in progress to illustrate what i have in mind for a next BuddyPress Template Pack. DO NOT USE on a live website! I repeat: DO NOT USE on a live website!

    If you want a visual editor, here’s a bit old solution. Give it a try, maybe it’s still working !

    @danbp

    Participant

    Updates are added via an ajax handled text-area field type. But I never heard about a nested text-area. The only way to add something is to edit the update.

    The form is in bp-legacy/buddypress/activities/post-form.php
    A list of all BuddyPress “update” or “updates” related functions can be found here.

    @danbp

    Participant

    Such a plugin doesn’t exist, sorry. Customizing (eg. insert css) starts here:
    https://codex.wordpress.org/Child_Themes
    Best place to get advice about your theme is here:
    https://wordpress.org/support/theme/fashionistas

    The file containing layout information is (your theme)/style.css

    @danbp

    Participant

    Glad you got it!

    @danbp

    Participant

    Ensure that Register page has no template or model assigned and re-save your permalinks.

    @danbp

    Participant

    Hi @littlemisslanna,

    Yep, but you have better to ask how to do that on Gravity Form support forum. We can help you here for BuddyPress usage, not for third party implementation. Sorry ! 😉

    @danbp

    Participant

    Hi @binary10,

    the plugin is outdated and doesn’t work with BP 2.5.3 network activated. Last update was 2 years ago and his compatibility was up to WP 3.8.14… Meantime, @mention evoluted and this plugin has no objective reason to be alive today. On BP’s side, what’s new form has now it’s own template file (post-form.php) and works a bit differently as 3 years ago.

    Except if you’re still using BP 1.8, BP default theme and WP 3.8, you’re loosing your time with it.

    If you need a what’s new area somewhere, you can simply call his template. Eg.

    if ( is_user_logged_in() ) :			
    	bp_get_template_part( 'activity/post-form' );			
    endif; 

    Successfully tested on a MS install sub blog, and @mention 100% on hand.

    In reply to: global avatar

    @danbp

    Participant

    No idea, but try for the div containing the img: min-height: XX px; where XX = avatar height + cherry height.

    ps: use code button when inserting code in a topic. Thx.

    In reply to: global avatar

    @danbp

    Participant

    Do it using CSS only. For example, try to apply the cherry as background img for all avatars ?

    @danbp

    Participant

    The function tells gettext() to change a string to another. It use a switch called $original_string. If not explicit enough, this means the original phrase or words you want to modify. You see it near ‘case’. And right of return, you can put your words.
    The present example use only one case. But you can add more. (See php switch)

    function abcd_gettext( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  
               return $translated;
    
        switch ( $original_text ) {
            case 'STING YOU WANT TO MODIFY':
                return 'MODIFIED STRING';
    
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'abcd_gettext', 20, 3 );

    IMPORTANT

    Why to use po/mo if this kind of function can be used ?

    – because po/mo is much faster as only loaded once.
    – using this function force gettext to recalculate all strings one by one at each string load. Imagine what will happen on your server if you translate all 1970(BP2.6) BP’s string like this!
    – this function can be handy only in case you need to change a few words. I wouldn’t use it for more as 10 strings.
    – it’s also handy if you already use a mo file, but need temporary a different word/string.

    So you’re warned. Best practice to change strings is to use po/mo files. See codex for details.

    @danbp

    Participant

    You’re welcome! 😉

    @danbp

    Participant

    You have to debug and for this, use a Twenty theme. Read more use ajax and can generate conflict with outdated theme or plugins, or simply not updated js files.

    Actually there is a little JS notice:
    OneSignal: Could not load iFrame with URL https://otoparkcom.onesignal.com/sdks/initOneSignalHttp. Please check that your 'subdomainName' matches that on your OneSignal Chrome platform settings. Also please check that your Site URL on your Chrome platform settings is a valid reachable URL pointing to your site.

    @danbp

    Participant

    @dono12,

    when the cover image option is enabled, BP use cover-image-header.php not member-header.

    To get your idea to work, you need a function to calculate who is online and to add a class to the exiting div. Depending the result, we can then add an online or an offline class.
    And of course, some css rules.

    The function to add this class to the div with an action hook.
    Add it to bp-custom.php

    function check_connected(){
    
       $last_activity = bp_get_user_last_activity( bp_displayed_user_id() );
    
       $curr_time = time(); 
    
       $diff = $curr_time - strtotime( $last_activity );
    
       $time = 5 * 60;  // = 3mn - time must be in seconds
    
    if( $diff < $time ) { 
       echo 'online';
         } else {
       echo 'offline';
       }
    }
    add_action( 'online_class', 'check_connected' );

    Now you just have to add the hook to the template. Open from within child-theme, /buddypress/members/single/cover-image-header.php
    Go to line 25, and change
    <div id="item-header-avatar">
    to
    <div id="item-header-avatar" class="<?php do_action( 'online_class' ); ?>">

    Open /child-theme/style.css and add:

    div.online img {
        border: solid 2px #008000!important;
        background: rgba( 255, 255, 255, 0.8 )!important;
    }
    
    div.offline img {
        border: solid 2px #be3631!important;
        background: rgba( 255, 255, 255, 0.8 )!important;
    }

    And voila, you’re done !

    Note: you can use the same hook in member-header.php, so you can enable/disable cover-image without loosing the on/offline layout on profile header avatar.

    In reply to: global avatar

    @danbp

    Participant

    Several topics are related to your question on the forum.

    https://buddypress.org/support/search/bp_core_fetch_avatar/

    @danbp

    Participant

    I’m unable to reproce this issue.

    Check following tables for duplicate entries in DB
    wp_bp_xprofile_fields and wp_bp_xprofile_groups (wp is the table prefix; could be different on your install)

    Provide the list of used & activated plugins.

    Did you found a similar issue mentionned on Salutation support ?
    Note that it’s a premium theme for which we can’t assist you, as we have no access to it’s code or support.

    @danbp

    Participant

    it’s explained above !
    Another solution here:

    Hide All Members Tag

    @danbp

    Participant

    I tested your code and got first a page not found error while trying to send a private message from the new position.
    I deactivated both action hook in cover and home files.
    Disallowed cover image option. And tested again and everithing worked.
    Allowed cover image and worked also.

    So i confirm that your code works and all buttons show up (with active href’s), at least with Twenty Sixteen theme, at the members profile page bottom.

    In resume, the only thing you have to do is to deactivate the original action hook in both files (so you can allow/disallow cover images).

    Forgot to mention that there is a litle error in your code line 133
    <?= wpautop(xprofile_get_field_data("About me", bp_displayed_user_id() ) ); ?>

    Should be
    <?php wpautop(xprofile_get_field_data("About me", bp_displayed_user_id() ) ); ?>

    In reply to: CV upload in Profile

    @danbp

    Participant

    That plugin create field types. You asked for how to create a CV with BuddyPress. Basically, such a feature use a text-area field type. 🙂

    @danbp

    Participant

    That’s a question better to ask on BP Registration support forum.

    @danbp

    Participant

    By default these buttons are showing on the profile header.
    The action location is defined in
    /bp-templates/bp-legacy/buddypress/members/single/member-header.php:66
    /bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php:45

    When Profile Cover option is enabled (see bp settings), BP use the cove-image-header file.
    If the option is disabled, he use member-header.

    In both case, these buttons need the displayed_user_id and the loggedin_user_id to work. This means you need to be at least in the member loop.

    You want these buttons to appear elsewhere. OK. But where exactly ?
    Don’t hesitate to provide a screenshot sketching the new place.

Viewing 25 replies - 1,051 through 1,075 (of 3,787 total)
Skip to toolbar