Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 2,676 through 2,700 (of 3,787 total)
  • @danbp

    Participant

    Test this (i haven’t πŸ˜‰ ).

    function one_star_videopoints() {
    $profile_video_id = bp_get_activity_user_id();
            echo $profile_video_id( bp_activity_user_id() );
    }
    add_action( 'one_star_videopoints_button', 'one_star_videopoints' );

    On activities loop, use
    bp_get_activity_user_id()to return the ID and bp_activity_user_id() to echo it.

    On members loop, use
    bp_get_member_user_id() to return the ID and bp_member_user_id() to echo it:

    In reply to: Blog & Forum Comments

    @danbp

    Participant

    Oh, sorry, i haven’t tested !

    Change $cant_comment_types = array to

            $cant_comment_types = array( 
    				'bbp_topic_create' => 1,
    				'bbp_reply_create' => 1,
            );

    In BP settings, enable Allow activity stream commenting.
    Check also that you disabled search engine visibility option. Dashboard > General > Read
    Is at least important for blog comments to appear on SWA.

    @danbp

    Participant

    I guess something is not translated, but in this case, the email text should come in english.

    If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.

    After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1

    https://translate.wordpress.org/projects/buddypress/dev

    If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.

    Code in 2.1.1 looks like this

    %1$s,\n
    \n
    \n
    \n
    Thanks for registering! To complete the activation of your account and blog, please click the following link:\n
    \n
    %2$s\n
    \n
    \n
    \n
    After you activate, you can visit your blog here:\n
    \n
    %3$s

    @danbp

    Participant

    Unable to reproduce. Can you test with Twenty Thirteen please ?

    @danbp

    Participant

    @mcpeanut,

    laughing together is part of a user community. πŸ˜€
    Comparing a web 1.0/prehistorical best of site to our forum is off topic, of course, but demonstrate the existence of extremes in matter of design.
    To each his own. We must tolerate diversity… and so far, strong red category titles.

    Even if i personaly suspect a surreptitious advertising for a jamaΓ―can beer. πŸ˜‰

    @danbp

    Participant

    Which language do you use on your site ?

    @danbp

    Participant

    2 plugins, depending your project, are avaible
    Rendez-Vous
    Google Calendar Events, will need some adjustment probably

    In reply to: Blog & Forum Comments

    @danbp

    Participant

    Since BuddyPress 2.0.0 you can use this in bp-custom.php

    function namrons_activity_nocomment( $can_comment = true, $type = '' ) {
            if ( empty( $can_comment ) ) {
                    return $can_comment;
            }
     
            // activities which can't be commented
            $cant_comment_types = array( 
    				'new_forum_topic' => 1,
    				'new_forum_post' => 1,
            );
     
            return ! isset( $cant_comment_types[ $type ] );
    }
    add_filter( 'bp_activity_can_comment', 'namrons_activity_nocomment', 10, 2 );
    In reply to: Notification

    @danbp

    Participant

    By default, there is a button in the bottom right corner of the notice area which let’s you enlarge it.

    @danbp

    Participant

    @danbp

    Participant

    @peter-hamilton, πŸ˜€

    I want something like this.

    @danbp

    Participant

    @chatty24, all readers,

    the modified code used here throws a warning with BP 2.2. Don’t use it !

    FYI the title code after applying the snippet looks like this:
    <title>You Have 1 New Notification(s) - </title>
    You can probably remove the –

    Thxs @sbrajesh, you where faster as me ! πŸ˜‰

    @danbp

    Participant

    Try this (tested on 2.2 RC2)

    function bpfr_add_notification_to_page_title( $title, $original_title, $sep, $seplocation  ) {
    	global $bp;
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    
    	if (bp_notifications_get_unread_notification_count( $user_id ) ) {
    
    		$counter = 0;
    			for ( $i = 0; $i < count($notifications); $i++ ) {
    				echo $notifications[$i];
    			$counter++;
    			}	
    
    	if ( bp_is_profile_component() || bp_is_current_action( 'just-me' ) ) {
    		
    			$title .= bp_notifications_get_unread_notification_count() . " $sep ";
        }
    		return $title;
    	}
    }
    add_filter( 'bp_modify_page_title', 'bpfr_add_notification_to_page_title', 9, 4 );

    @danbp

    Participant

    @henrywright is right. There is only one js file handling whats-new: buddypress.js and one function: bp_activity_action_post_update() in bp-activity-actions.php:289 (2.2) and of course CSS, in buddypress.css

    Thought you have to use the minified versions to get customization to work.
    buddypress.min.js
    buddypress.min.css

    @danbp

    Participant

    Try this

    if ( $notifications = bp_notifications_get_notifications_for_user( $user_id, $format = 'string' ) ) { 
    
    		$counter = 0;
    			for ( $i = 0; $i < count($notifications); $i++ ) {
    			$alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; 
    
    			echo '<span ="'.$alt.'">'. $notifications[$i] .'</span>';
    
    			$counter++;
    			}	

    @danbp

    Participant

    On how it’s used for 2015, it’s not the name of a page, it the name of a document. And a document is a page content.

    Feel free to use another theme. πŸ˜‰

    @danbp

    Participant

    hi,

    increasing the avaible memory means php memory, which handles scripts.
    On a usual install, WP+BP need at least 128mo to run flawless.

    Even if the server as the theoric resources, weird scripts or bad coded theme or plugins can lead to severe issues…

    Read here for some basics about blank sreen of death.
    This is actually the only issue which is real ! You have to consult the log files to track down the responsible script who generate this error.

    Please give also more details about your install (theme name or site url, used plugins, server type and php, mysql version number) if you need more and/or better help.

    @danbp

    Participant

    Hi,

    before asking for a fix, there is a need to identify the problem. You’re using 2 third parties plugin which you think are creating issues… Maybe, maybe not.

    First of, give your site URL so other can try to help you eventually.
    Second, if you’re sure one, or both plugins are defect somehow, you can ask on thei r respective support.

    To be clear in regards of issues, ensure always that your base install is working correctly.
    Is WP ok ? yes/no
    Is BuddyPress ok ? yes/no
    Is your theme ok ? yes/no

    If 3 “yes”, each time you activate a plugin and something goes wrong, you’ll be sure it’s the plugin, and not your install. In 95% of cases, the culprit is the added extension.

    This is a debug logic you can follow to find or try to, for explanations. πŸ˜‰

    @danbp

    Participant

    No worry, you’re welcome πŸ˜€

    @danbp

    Participant

    Love the last one @chubbycrow !

    Would see a smoothed version on closed topic ! Which looks really awfull actually.
    https://buddypress.org/support/page/20/

    #stars&stripes or #StarSpangledBanner ?
    We now have the stripes, where are the stars ? That’s the question… πŸ™‚

    @danbp

    Participant

    I’m sorry too, but i can’t learn you to use BuddyPress and WordPress. I can only guide you. It’s a volonteer based forum, and understand that i can’t offer you a lot of my time.

    You asked how to apply at least a background color to the buddy nav.

    The CSS code i indicated should go in a file called style.css
    This file exist in almost any theme. Open it and copy/paste the code, save and bam, you’re done.

    For more explanation about child theme or any other custom work, you have to read WP & BP‘s codex or find some tutorials on the net.

    Be also aware that you use a premium theme, which can be difficult for you to find assistance outside of the theme support.

    @danbp

    Participant

    Seems ok on my install.
    Plugin tested on 2.2 RC2 and no “send message” button on my profile.

    Problem is elsewhere i guess. Recheck your theme or custom code.

    See bp-messages/bp-messages-template.php:1636

    function bp_get_send_message_button() {
       // Note: 'bp_get_send_message_button' is a legacy filter. Use
       // 'bp_get_send_message_button_args' instead. See #4536

    @danbp

    Participant

    It’s intended so by default.

    Try this from child-theme style.css
    #buddypress div#item-nav div#object-nav ul li{background-color: #ccc;}

    @danbp

    Participant

    And which theme do you use ? Can you provide a site URL please ?

    Congrats for your job ! πŸ˜‰

    @danbp

    Participant

    And if you clear and/or deactivate the cache ?

Viewing 25 replies - 2,676 through 2,700 (of 3,787 total)
Skip to toolbar