Search Results for 'notification user id'
-
Search Results
-
Topic: Notifications lacks logic
I think the admin bar notifications is a freaking good idea but the whole thing lacks logic. If a user mentions another user it should spit out “xxx mentioned you in your post blablabla” instead of “1 user mentioned you”. Add support to blog comments and make it easy for developers to add notifications for their own plugins. I think that on-screen notifications is a important factor for a modern network.
Topic: BP Test Drive
This is just an opinion and a suggestion but I been delving around on the new BP test drive and I think it would be great to have a function in the release of BP 1.7 that disables the admin bar. It gives the software away and hackers know what the site is built upon by seeing it. I would also like to see a function that prevents tools like wappalyzer a firefox plugin from identifying the software being used on the site as it would definitely heighten security. One other thing I would love to see is a dynamic notification menu item so that if the bar is removed we can still see that we have notifications. If we can move away from BuddyPress being depended on the admin bar I think we will definitely start seeing progress and people customizing their themes even more so it is unique. I have moved away from my sites depending on the bar but I also have the experience to do so, however new users that is not experienced in coding would probably appreciate this. Anyway, its just an idea/opinion. Thanks BP core team!
I have had a crack at this, and it worked a little but:
1) it’s too hacky (editing core files)
2) it broke activity replies (no text in a reply)So what do you guys think about this:
/wp-content/plugins/buddypress/bp-activitybp-activity-filters.php
`/**
* Finds and links @-mentioned users in the contents of activity items
*
* @since 1.2.0
*
* @param string $content The activity content
* @param int $activity_id The activity id
*
* @uses bp_activity_find_mentions()
* @uses bp_is_username_compatibility_mode()
* @uses bp_core_get_userid_from_nicename()
* @uses bp_activity_at_message_notification()
* @uses bp_core_get_user_domain()
* @uses bp_activity_adjust_mention_count()
*
* @return string $content Content filtered for mentions
*/
function bp_activity_at_name_filter( $content, $activity_id = 0 ) {
global $wpdb;$usernames = bp_activity_find_mentions( $content );
if(is_site_admin() && in_array(“all”, $usernames)){
$all_users = $wpdb->get_col( $wpdb->prepare(“SELECT $wpdb->users.user_login FROM $wpdb->users”));
foreach($all_users as $i_users){
array_push($usernames, $i_users);
}
}if ( !$usernames = array_unique( $usernames ) )
return false;foreach( (array)$usernames as $username ) {
if ( bp_is_username_compatibility_mode() )
$user_id = username_exists( $username );
else
$user_id = bp_core_get_userid_from_nicename( $username );if ( empty( $user_id ) )
continue;// If an activity_id is provided, we can send email and BP notifications
if ( $activity_id ) {
bp_activity_at_message_notification( $activity_id, $user_id );
}$content = preg_replace( ‘/(@’ . $username . ‘b)/’, “@$username“, $content );
}// Adjust the activity count for this item
if ( $activity_id )
bp_activity_adjust_mention_count( $activity_id, ‘add’ );return $content;
}`(The site admin check is to stop spamming
)
And also, how would I go about using this as part of a plugin (I think i’d have to use add and remove filter or something).
If anyone can take a look at this and point me in the right direction to get all this working i’d be grateful!– Eliott
I’ve gotten a hang of customizing the CSS of Buddypress in my custom theme, but now I want to augment the scripts to modify the user experience. Namely, I want to start with the following two things:
1) I want to clear the search bar after searching the main groups directory.
2) I want to stop the page from entirely reloading if someone tries to post a topic, but forgets a title and so loses all their other progress when the page reloads and the notification comes up. Just want the notification to come up via ajax.What is the buddypress best practice for making these changes outside of the core bp files so that my modifications are not lost when I update BuddyPress down the road.
EDIT: I should mention that I am using the BP Template Pack to help make BP compatible with my custom theme.
thanks,
kTopic: Is this possible?
I have this request:
“Is there anyway to search users by when they joined? Set up a notification for when it’s someone’s anniversary on the forum? Even an API so we could do all this ourselves.”
In the Network Admin I can see when a user registered. But 1) I’m wondering if there can be a better way to find this info and 2) I have no idea about the second part.
Okay guys I was just wondering to know how can I make a widget area inside my header area I want to place my search bar and user small avatar inside my header like how we have a search box and notification inside header in facebook.



Day 1 of installing Buddypress 1.6.1, kinda awesome etc
First two things i noticed:
1) It changed notifications for new mails for comments, before it was in the : “[blogname] Comment: [blogpost] FROM: [Comment Author name]” format
Now it become: “[blogname] Comment: [blogpost] FROM: [blogname]” format
I googled it a bit and i am kinda sure all the magic happens here: http://buddypress.trac.wordpress.org/browser/tags/1.6.1/bp-core/bp-core-filters.php#L40
Where:
`function bp_core_email_from_name_filter() {
return apply_filters( ‘bp_core_email_from_name_filter’, wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), ‘blogname’ ), ENT_QUOTES ) );
}
add_filter( ‘wp_mail_from_name’, ‘bp_core_email_from_name_filter’ );`
So i am kindly i ask if there is any quick and dirty (through something like bp-functions.php if available)
2) Admin Dashboard = “OH MY GOD”
Any click in a link containing /wp-admin/ makes the server’s load go to sky even when i am the only user-admin, that’s something i can’t really figure out
For logged in users i was thinking some rewrite of wp-admin link, or not showing at all, as they have profiles so they don’t need any wp-admin access (Maybe if i select not to sync Buddypress+Wordpress members? Or is it discouraged?)
3) -Bonus version- Is there any quick way to add non registered user’s comments under their profile? Via MySQL or something… Just wondering…