Search Results for 'buddypress'
-
AuthorSearch Results
-
December 7, 2012 at 7:49 pm #146784
In reply to: How to manage users & their extended profiles?
Sean Infinitee
ParticipantI am also a bit annoyed finding out this is not a built-in capability of BuddyPress as after months of developing and tweaking my site, I’m finally ready to launch only to hit this huge roadblock during user registration beta testing!
Similar to the above, my site is a DJ and fan based members only community, which I have an approval mechanism setup and account registration types to be approved as a DJ. In order to approve new DJ profile submissions efficiently I need admins to easily be able to review profile details to see if it meets all criteria before approving. I thought I would be able to manage this simply in the WP admin panel having purchased the BP User Account Type Pro plugin and using BP registration options, but apparently not so. And judging by the fact that noone’s really responded to the requests above I don’t anticipate getting an an answer anytime soon, but per chance someone is willing or able to assist or point me in the right direction, would appreciate any help or hacks I might be able to use to accomplish this as soon as possible!!
I know some html, have been learning css on the fly, and no real working knowledge of php, but clever enough to have figured most things out with firebug up to this point. Really hoping there’s something already developed out there though. Other than this forum the folks I’ve spoken to about WP haven’t got any knowledge of BuddyPress so I’m gonna be pretty disappointed if I can’t get an any help from my only resource here and have to shell out $$ to pay someone to develop something that should be a given based on the BuddyPress framework, conceptually speaking.
Thanks in advance for any assistance you can provide!!
Regards,
Se4n
http://www.defendersofturntablism.org
December 7, 2012 at 7:40 pm #146783In reply to: Undefined Function Error
Paul Wong-Gibbs
KeymasterIf you’re using bbPress 2; as part of using that, did you disable the so-called “Group forums” component in BuddyPress?
December 7, 2012 at 7:39 pm #146782Paul Wong-Gibbs
KeymasterThere’s no point for you to bump two old topics. https://buddypress.org/support/topic/avatars-not-showing-with-define-bp_enable_multiblog-true/
December 7, 2012 at 7:33 pm #146781In reply to: how dangerous is it to delete buddypress?
Ben Hansen
Participantawesome thanks!
December 7, 2012 at 7:12 pm #146777In reply to: Undefined Function Error
tombwriter
ParticipantMercime
I am using the buddypress 1.6.1 default theme. The activated plugins are bbpress and buddypress. There are other deactivated plugins. Does that help?
Thanks.
December 7, 2012 at 5:54 pm #146776In reply to: Screen Notifications. A comprehensive thread.
Andrew Tibbetts
ParticipantIt seems that screen notifications in Buddypress 1.6.1 are busted. I’ve been struggling with this for days,weeks,months—also found this: https://buddypress.org/support/topic/notifications-do-not-seem-to-work/ Can anyone confirm or deny?
December 7, 2012 at 3:43 pm #146766In reply to: directory website wordpress / buddypress based
giannisff
ParticipantIs it possible to make it with post categories? can i find somewhere codex or info? Thanks again.
December 7, 2012 at 12:55 pm #146762In reply to: Group Forums UI – Buttons and post information.
Paul Wong-Gibbs
KeymasterYou can build it yourself, if you wanted. But i’d recommend you migrate to using the bbPress 2 plugin https://codex.buddypress.org/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/
December 7, 2012 at 11:37 am #146759In reply to: Group Forums UI – Buttons and post information.
Scottlund
ParticipantHi @djpaul,
Im using “group forums” with buddypress 1.6.1 and WP 3.4.2.
I was wondering the above thing. Is it possible to have it in the “group forums”.
Cheers
December 7, 2012 at 10:37 am #146757Paul Wong-Gibbs
KeymasterClick the field’s ‘edit’ button, and that’s where you change the description.
The email and password fields aren’t BuddyPress user profile fields, so they don’t appear in this screen.
December 7, 2012 at 6:47 am #146745In reply to: how dangerous is it to delete buddypress?
John James Jacoby
KeymasterDeleting and replacing the files themselves is non-destructive. You’re fine to do it.
December 7, 2012 at 3:19 am #146741dennissmolek
ParticipantI am having the exact same problem. I submitted it as a ticket:
https://buddypress.trac.wordpress.org/ticket/4706
What is happening is its trying to redirect to the home tab, then the change default filter moves it to the other tab, which causes the loop.
Until its fixed simply add ‘/home’ to the line mentioned in the ticket.
December 7, 2012 at 2:03 am #146736In reply to: "Multi-site" along with BuddyPress questions
Ben Hansen
Participant#1 there are a couple of options actually in your network admin network settings.
#2 you can also network activate the themes if choose.
#3 correct
#4 not necessarily if they understand css it should be fairly easy also depending on the built in them options they will not be able to “modify” the them files themselves
#5 buddypress certainly makes the whole site creation process more visible since a normal wordpress install doesn’t really do that at all (at least i don’t think it does).
#6 yes thats why they can’t do it only the network admin has the ability to add new theme/plugins.
#7 the only difference is the ability to admin their own sites but there are different settings to where they couldn’t even create them themselves (you’d have to activate any sub sites if you choose that option).
December 7, 2012 at 1:28 am #146734In reply to: New to BuddyPress, question about notifications..
modemlooper
ModeratorI think the hook is xprofile_data_before_save
December 7, 2012 at 1:23 am #146733In reply to: New to BuddyPress, question about notifications..
modemlooper
ModeratorNo plugin but you can hook into the profile fields save hook and send an email. Google a bit. Im sure this has been posted before
December 7, 2012 at 12:11 am #146729In reply to: [resolved] Change groups default tab
fitnessblogger
ParticipantDecember 7, 2012 at 12:02 am #146728In reply to: Is Buddypress for me?
jeduhu
ParticipantIt helps a great deal. I have definitely decided buddypress is for me. I’ve built several wordpress sites and it’s a no brainer now. Sorry for all the noob questions. More to come has I dive deeper in.
December 6, 2012 at 11:19 pm #146724In reply to: [resolved] Change groups default tab
fitnessblogger
ParticipantHi @modemlooper
Can I just clarify the whereabouts this code needs to be placed…. I have reed somewhere its in the Functions.php file ? ?
Cheers
James
December 6, 2012 at 10:37 pm #146721Andrew Tibbetts
ParticipantActually, this function is working—it is creating activity items based on blog posts and comments. I found out that it’s my custom plugin that is supposed to hook into this custom post or comment action to create a notification. Here is the plugin. I know no one will even try to tackle this but I have to post this because it’s my only option and I one for due diligence…
/**
* Plugin Name:BuddyPress Post Comment Notifier
* Description: Mod of Brajesh Singh's BuddyPress Activity Comment Notifier to work for Blog Post Comments
*
*/// we are not much concerned with the slug, it is not visible
define("BP_COMMENT_NOTIFIER_SLUG","pc_notification");//register a dummy notifier component, I don't want to do it, but bp has no other mechanism for passing the notification data to function, so we need the format_notification_function
function pc_notifier_setup_globals() {
global $bp, $current_blog;
$bp->pc_notifier=new stdClass();
$bp->pc_notifier->id = 'pc_notifier';//I asume others are not going to use this is
$bp->pc_notifier->slug = BP_COMMENT_NOTIFIER_SLUG;
$bp->pc_notifier->notification_callback = 'pc_notifier_format_notifications';//show the notification
/* Register this in the active components array */
$bp->active_components[$bp->pc_notifier->slug] = $bp->pc_notifier->id;do_action( 'pc_notifier_setup_globals' );
}
add_action( 'bp_setup_globals', 'pc_notifier_setup_globals' );/**
* storing notification for users
* notify all the users who have commented, or who was the original poster of the update, when someone comments
* hook to bp_blogs_comment_recorded action
*/
function pc_notifier_notify($activity_id) {
global $bp;$activity = new BP_Activity_Activity($activity_id);
$comment = get_comment($activity->secondary_item_id);
$users = pc_notifier_find_involved_persons($comment->comment_post_ID);
$link = get_permalink($comment->comment_post_ID);if($activity->hide_sitewide) return;
if(!in_array($activity->user_id, $users)&&($bp->loggedin_user->id!=$activity->user_id)) array_push ($users, $activity->user_id);
foreach((array)$users as $user_id){
bp_core_add_notification( $activity_id, $user_id, $bp->pc_notifier->id, 'new_post_comment_'.$activity_id );
}}
add_action("bp_blogs_comment_recorded","pc_notifier_notify",10,1); // hook to bp_blogs_comment_recorded for adding notification/** our notification format function which shows notification to user
*
* @global $bp
* @param $action
* @param $activity_id
* @param $secondary_item_id
* @param $total_items
* @return
* @since 1.0.2
* @desc format and show the notification to the user
*/
function pc_notifier_format_notifications( $action, $activity_id, $secondary_item_id, $total_items, $format='string' ) {global $bp;
$glue = '';
$user_names = array();
$activity = new BP_Activity_Activity( $activity_id );
$comment = get_comment($activity->secondary_item_id);
$link = get_permalink($comment->comment_post_ID);
$comment_post = get_post($comment->comment_post_ID);if ( $activity->user_id == $bp->loggedin_user->id ) $text = __("your post");
else $text = sprintf(__("%s"), $comment_post->post_title);$pc_action = 'new_post_comment_'.$activity_id;
if ( $action == $pc_action ) {
$users = pc_notifier_find_involved_persons($comment->comment_post_ID);
$total_user = $count = count($users);//how many unique users have commented
if ( $count > 2 ) {
$users = array_slice($users, $count-2);//just show name of two poster, rest should be as and 'n' other also commeted
$count = $count-2;
$glue=", ";
}
else if ( $total_user == 2 ) $glue = " and ";//if there are 2 unique users , say x and y commentedforeach ( (array)$users as $user_id )
$user_names[] = bp_core_get_user_displayname($user_id);if ( !empty($user_names) )
$commenting_users = join($glue,$user_names);if ( $total_user > 2 )
$text = $commenting_users." and ".$count." others commented on ".$comment_post->post_title;
else
$text = $commenting_users." commented on ".$comment_post->post_title;if ( $format == 'string' )
return apply_filters('bp_activity_multiple_new_comment_notification','comment_ID.'">'.$text.'');
else {
$link .= '#comment-'.$comment->comment_ID;
return array('link'=>$link,'text'=>$text);
}}
return false;
}
/*
* Remove activity for the comments on new_blog_post & new_blog_comment activity item.
* Since these items do not have a single activity view and are linked to the single post screen, we will do the needed on single post view
*/function pc_notifier_remove_notification_for_blog_posts(){
if( !( is_user_logged_in() && is_singular() ) )
return;global $bp,$wpdb;
$blog_id = (int)$wpdb->blogid;
$post = wp_get_single_post();
$activity_id = bp_activity_get_activity_id(
array(
'user_id' => $post->post_author,
'component' => $bp->blogs->id,
'type' => "new_blog_post",
'item_id' => $blog_id,
'secondary_item_id' => $post->ID
)
);
//delete the notification for activity comment on new_blog_post
if( !empty($activity_id) )
bp_core_delete_notifications_by_item_id( $bp->loggedin_user->id, $activity_id, $bp->pc_notifier->id, 'new_post_comment_'.$activity_id );//for replies on blog comments in activity stream
$comments = pc_notifier_get_all_blog_post_comment_ids($post->ID);//get all the comment ids as array//added in v 1.0.3 for better database performance, no more looping to get individual activity ids
$activities = pc_notifier_get_activity_ids(
array(
"type"=>"new_blog_comment",
"component" => $bp->blogs->id,
"item_id"=>$blog_id,
"secondary_ids"=>$comments
)
);foreach( (array)$activities as $pc_id )
bp_core_delete_notifications_by_item_id( $bp->loggedin_user->id, $pc_id, $bp->pc_notifier->id, 'new_post_comment_'.$pc_id );}
add_action("wp_head","pc_notifier_remove_notification_for_blog_posts");/**
* @since v 1.0.2
* @desc delete notification when an activity is deleted, thanks to @kat_uk for pointing the issue
* @param pc_ids:we get an arry of activity ids
*/
function bp_pc_clear_notification_on_activity_delete($pc_ids){
global $bp;foreach ( (array)$pc_ids as $activity_id )
bp_core_delete_all_notifications_by_type( $activity_id, $bp->pc_notifier->id, 'new_post_comment_'.$activity_id, $secondary_item_id = false );
}
add_action("bp_activity_deleted_activities","bp_pc_clear_notification_on_activity_delete");/************************************ HELPER FUNCTIONS ********************************************************/
// find all users who commented on the post
function pc_notifier_find_involved_persons($comment_post_ID){
global $bp,$wpdb;return $wpdb->get_col($wpdb->prepare("SELECT DISTINCT(user_id) from {$wpdb->comments} where comment_post_ID=%d and user_id!=%d",$comment_post_ID,$bp->loggedin_user->id));
}// return an array of comment ids for the post
function pc_notifier_get_all_blog_post_comment_ids($post_id) {
global $wpdb;return $wpdb->get_col($wpdb->prepare("SELECT comment_ID as id FROM {$wpdb->comments} WHERE comment_post_ID = %d AND comment_approved = '1' ORDER BY comment_date", $post_id));
}// get activity ids when type, component, secondary_ids, item_id is specified
function pc_notifier_get_activity_ids($params){
global $bp,$wpdb;
extract($params);
$list="(".join(",", $secondary_ids).")";//create a set to use in the query;return $wpdb->get_col($wpdb->prepare("SELECT id from {$bp->activity->table_name} where type=%s and component=%s and item_id=%d and secondary_item_id in {$list}",$type,$component,$item_id));
}December 6, 2012 at 8:34 pm #146709modemlooper
ModeratorTo use a file for the page content you do a locate template in the function instead of putting the actual code in the function.
Get the BuddyPress skeleton component plugin. It has commented code to show you how to create custom BuddyPress components. Though, you can utilize simple wordPress page templates to accomplish a page with custom content. If the content doesnt need to be initiated into the active components then a page will do.
December 6, 2012 at 8:13 pm #146707In reply to: WHY IS BP CODEX WEBSITE DOWN???
Paul Wong-Gibbs
KeymasterSee https://buddypress.org/support/topic/codex-page-blank-blank-firefox/
December 6, 2012 at 7:52 pm #146700In reply to: can't access dashboard after forum install
johnjf
ParticipantI had bbpress installed before and deactivated it when I installed buddypress. Then I deleted the bbpress files. I then re-downloaded the files again and now this is happening. Would there be anything in my database from it’s last installation to cause bbpress to not work now?
December 6, 2012 at 7:48 pm #146699In reply to: Codex Page Blank Blank, Firefox
nickzee
ParticipantBlank again @paul gibbs. baffled?…Maybe this guy can help explain
youtube watch?v=rLDgQg6bq7o
(Turbo Encabulator)🙂
December 6, 2012 at 7:31 pm #146694In reply to: Split: buddypress VS bbpress
LabSecrets
ParticipantGreat news Nick!
You can see in my recent post, we fixed a similar solution for Canvas 5 from WooThemes.https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/
Your problem imho is that your theme is hijacking the content area in a way that prevents the new bbPress code from working. As such, the solution would be found most likely in your theme’s page.php or similar, where the default archive pages are created.
Cheers!
Spence.December 6, 2012 at 7:10 pm #146693In reply to: Split: buddypress VS bbpress
nickzee
ParticipantThe shortcodes were the ticket for me. Back up and running now! My theme would only pull an archived page (even thought is buddypress fitted). Also I could not create a page called “forums” when the forum slug was “forums” in bbpress settings. The page would be automatically slugged, “fourms-2”.
For not I am not going to delete the bb-config.php and see how it works. So far so good.
Thank you again Spence labsecrets. Wonderful job. You’re not so evil 😉
@me9, did this video help you?
-
AuthorSearch Results