Forum Replies Created
-
In reply to: How to get user id of activity
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 andbp_activity_user_id()to echo it.On members loop, use
bp_get_member_user_id()to return the ID andbp_member_user_id()to echo it:In reply to: Blog & Forum CommentsOh, sorry, i haven’t tested !
Change
$cant_comment_types = arrayto$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.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$sIn reply to: Problem with NavigationUnable to reproduce. Can you test with Twenty Thirteen please ?
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. π
Which language do you use on your site ?
In reply to: Display a Google Calendar in the user profile2 plugins, depending your project, are avaible
Rendez-Vous
Google Calendar Events, will need some adjustment probablyIn reply to: Blog & Forum CommentsSince 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: NotificationBy default, there is a button in the bottom right corner of the notice area which let’s you enlarge it.
In reply to: [Resolved] What is the Member Activity URL?Have you read here ?
http://miled.github.io/wordpress-social-login/troubleshooting.html@peter-hamilton, π
I want something like this.
In reply to: [Resolved] How To Get Notification Count? (Code)?In reply to: [Resolved] How To Get Notification Count? (Code)?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 );@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.cssIn reply to: [Resolved] How To Get Notification Count? (Code)?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++; }In reply to: BP Page Title Errors in WP Twenty Fifteen ThemeOn 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. π
In reply to: Answer about Admin Area Turned to Persistenthi,
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.
In reply to: Buddypress navigation menu stylingHi,
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/noIf 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. π
In reply to: Group Photo saving but not updatingNo worry, you’re welcome π
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… πIn reply to: Buddypress navigation menu stylingI’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.
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 #4536In reply to: Buddypress navigation menu stylingIt’s intended so by default.
Try this from child-theme style.css
#buddypress div#item-nav div#object-nav ul li{background-color: #ccc;}And which theme do you use ? Can you provide a site URL please ?
Congrats for your job ! π
In reply to: Facebook debug not pulling right infoAnd if you clear and/or deactivate the cache ?