Search Results for 'buddypress'
-
AuthorSearch Results
-
September 12, 2011 at 3:09 am #119902
Mike84
MemberI should add that wordpress is installed in a development folder, /web. BuddyPress is located in /web/wp-content/plugins.
September 12, 2011 at 1:57 am #119899In reply to: BuddyPress 1.5 RC 1! And BP 1.2.10! Wooooo!
LPH2005
ParticipantBP 1.2.10 installed on two wp 3.2.1 networked sites without issue.
Congratulations on working so hard on BP 1.5. Now – if there was only a way to get the activity stream to be “real-time” …
September 12, 2011 at 1:11 am #119898In reply to: Registration Approval Plugin
acurran
MemberMy 3 step solution to this problem is as follows:
1. Install plugin – BuddyPress Pending Activations (https://wordpress.org/extend/plugins/buddypress-pending-activations/)
2. Make hack to plugin function bp_pending_activations_admin() so that it sends an email when a user is activated:
$resendusers = $wpdb->get_results( $wpdb->prepare( “SELECT u.ID, u.user_login, u.user_email, m.meta_value FROM ” . CUSTOM_USER_META_TABLE . ” m, “. CUSTOM_USER_TABLE .” u WHERE u.ID = m.user_id AND m.meta_key = ‘activation_key’ AND u.ID IN ({$userids})” ) );foreach ( $resendusers as $resend ) {
/* Activate the signup */
$user = apply_filters( ‘bp_core_activate_account’, bp_core_activate_signup( $resend->meta_value ) );/* If there was errors, add a message and redirect */
if ( $user->errors ) {
echo ‘There was an error activating this account, please try again: ‘. $resend->user_login;
} else {
$to = $resend->user_email;
$subject = “Your ?????? Account Has Been Activated!”;
$message = “Your account has been activated. Go to http://??????/ and sign in with the username and password that you created when you signed up.nnWelcome to ?????!”;
$admin_email = get_site_option( “admin_email” );
$from_name = “??????????”;
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
wp_mail( $to, $subject, $message, $message_headers );
}
3. Redirect activation email to admin (to use as a noitification for admin instead of automatically sending activition key to user) by adding this to functions.php:
function change_activation_email_to($content) {
return get_site_option( “admin_email” );
}
add_filter( ‘bp_core_activation_signup_user_notification_to’, ‘change_activation_email_to’);So the when a new user signs up, they do not get any activation email. That goes to the admin instead. You will need to change the wording in your template to let the user know that they have to wait for manual approval. Admin logs in to WP admin and goes to Pending Activitations and activates the user. An email is sent to user to let them know they have been activated.
September 11, 2011 at 8:46 pm #119891In reply to: BuddyPress 1.5 Resources: Tutorials, Videos and Info
Boone Gorges
KeymasterBuddyPress 1.5 has not been released in a stable version yet. We are in Release Candidate status. https://buddypress.org/2011/09/buddypress-1-5-release-candidate-1-and-buddypress-1-2-10/
September 11, 2011 at 7:53 pm #119890In reply to: BuddyPress 1.5 Resources: Tutorials, Videos and Info
Thorsten :-)
ParticipantWhere can I upgrade from BP 1.2.10 to 1.5? WP 3.2.1 shows me version of BP 1.2.10 only.
September 11, 2011 at 7:21 pm #119888In reply to: 1.5 Child Theme Not Working
Boone Gorges
Keymaster@mercime ‘s method will work correctly. But, as of https://buddypress.trac.wordpress.org/changeset/5124, it shouldn’t be necessary. The method that @alanchrishughes suggests should work properly. Please ensure that you’re running 1.5-rc-1, or an svn checkout of at least r5124.
September 11, 2011 at 1:24 pm #119880In reply to: BuddyPress 1.5 RC 1! And BP 1.2.10! Wooooo!
rossagrant
ParticipantVery excited for 1.5!
Counting down the days to a full public release!
September 11, 2011 at 4:36 am #119868In reply to: How do you shut off buddpress admin bar in multisite
@mercime
ParticipantSeptember 11, 2011 at 4:24 am #119867In reply to: Space between Navbar and Subnav
@mercime
Participant@kkradel if you used BP template pack plugin, check out the selectors used in bp.css file as a guide to start you off – https://plugins.svn.wordpress.org/bp-template-pack/tags/1.1.4/bp.css
side note: nope, your site url didn’t show up in update
September 11, 2011 at 4:12 am #119866In reply to: BuddyPress 1.5 RC 1! And BP 1.2.10! Wooooo!
Quint
ParticipantSo far, so good. Thanks, guys!!!!!
September 11, 2011 at 3:43 am #119863@mercime
ParticipantTo install bbPress forums with current BP version
https://codex.buddypress.org/buddypress-site-administration/buddypress-forum/To install bbPress plugin with BP 1.5rc1
https://bbpress.trac.wordpress.org/ticket/1619
https://bbpress.org/forums/topic/bbpress-20-shortcodes
https://bbpress.org/forums/topic/bbpress-20-theme-compatibilitySeptember 11, 2011 at 3:32 am #119862In reply to: BuddyPress 1.5 RC 1! And BP 1.2.10! Wooooo!
@mercime
ParticipantThree cheers!
September 11, 2011 at 3:31 am #119861In reply to: Sidebar now located way down the pages
@mercime
Participant@idahoannie @kkradel after installing BP Template Pack plugin, you need to go through the process including imposing your active WP theme’s HTML structure onto the BP template files transferred into your WP theme’s folder in server.
https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
https://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/If you require further assistance:
– open up your theme’s page.php file, select all and copy
– go to pastebin.com and paste the code, click on submit button
– copy the generated pastebin.com url and post here.September 10, 2011 at 11:12 pm #119851NKTricker
Member1. Also latest version of WP, and BP. WordPress is installed in a sub directory.
Everything was just installed today. So latest version on everything.
No other plugins other than bbPress and Buddy Press installed.
Using the standard Buddy Press theme. I notice that you can’t really create separate forum in the bbPress version installed in BuddyPress. Is the internal version limited in someway or something???
Please help, and thanks in advance.September 10, 2011 at 11:02 pm #119850NKTricker
MemberAlso, I don’t really like the bbPress forums at all. It seems very very limited and you can’t make forum categories with it. Is there anyway to get the BuddyPress forums working with phpbb? I tried the gateway plugin, but it corrupted my database and I couldn’t find the correct files to use with it.
September 10, 2011 at 5:56 pm #119848In reply to: Profile rating system
embergermedia
MemberI’m glad to help! I’m sure some of my ideas are not the cleanest way to solve the problems, but they seem to work. And as it seems difficult to get answers to questions here sometimes, I try to help where I can.
Let me know how things go after you get a chance to try them out. Ps. the code I pointed to in that link, if it is not clear- I used it to create an ‘if’ statement.
Peace.
September 10, 2011 at 5:06 pm #119845sdls
Memberunderstood.. thanks again Boone!
September 10, 2011 at 5:02 pm #119846Boone Gorges
KeymasterThe functions are not new – the whole point of a framework like BuddyPress, from the beginning, has been so that you *don’t* have to reinvent the wheel

I think that for your purposes you can use `xprofile_get_field_data()`. See bp-xprofile/bp-xprofile-functions.php.
September 10, 2011 at 4:56 pm #119844sdls
Memberthanks @boonebgorges !
WOW searching through all these new functions will be time consuming at first, but I’m sure will make things better over the long term. are these new to BP 1.5?
I’m so used to just using SQL to solve my problems these seems way complicated… (above my head and slightly to the left) So let’s say I just want to check for the whether a record exists, is it suggested that these BP functions should be used for all database communication?
for example… this checks for the existence of the field in the first place
`
$sql4 = “SELECT *
FROM wp_bp_xprofile_data XP
WHERE XP.user_id = $iUserID”;
$acheck_for_user_xprofile = $wpdb->get_col( $wpdb->prepare($sql4));
if ($acheck_for_user_xprofile) {
$check_for_user_xprofile_answer = “yes“;
} else {
$check_for_user_xprofile_answer = “no”;
}
`September 10, 2011 at 11:22 am #119841Boone Gorges
KeymasterThat’s what `xprofile_set_field_data()` is for.
`xprofile_set_field_data( 1, $iallusersUserID, $nicename );`
No need to use $wpdb!
September 10, 2011 at 11:07 am #119840lexayo
Memberhum… do you know how to follow @r-a-y about this plugin? is he working on this already?
thank you allSeptember 10, 2011 at 9:16 am #119839In reply to: adding group fields
4ella
Participant@qrahaman yes , group fields are already working for us on that link and I got from @brajesh http://www.buddydev.com even better solution for group custom fields (maybe non paid members can’t see it) :
http://buddydev.com/forums/topic/displaying-group-custom-fields-in-group-headerphp
I didn’t have a time till now to check it out , but as soon as possible I can I will check it out and if I understood it well it should help us to display whatever we wish if group value is EMPTY.and as far as I know @slaffik have said that his plugin in future versions will work exactly as you’ve said (at least I wish it will work like that – you’ve perfectly described my wish how slaffik’s plugin should work.)
September 10, 2011 at 2:00 am #119831In reply to: Profile rating system
christophg
MemberHey @embergermedia,
As usual your advise dose not disappoint! I’m in the process of moving and also the creation of s second business site so as soon as I can I’ll give you an update on how it all works out! Ill also continue to mull over your problem and see if I can help at all! Talk to you soon!September 10, 2011 at 12:34 am #119829sdls
MemberThanks both for the feedback!… looking into xprofile_insert_field() in bp-xprofile/bp-xprofile-functions.php. This appears to be the function for adding a new profile field to the BP system.
`function xprofile_insert_field( $args = ” ) {
global $bp;extract( $args );
/**
* Possible parameters (pass as assoc array):
* ‘field_id’
* ‘field_group_id’
* ‘parent_id’
* ‘type’
* ‘name’
* ‘description’
* ‘is_required’
* ‘can_delete’
* ‘field_order’
* ‘order_by’
* ‘is_default_option’
* ‘option_order’
*/// Check we have the minimum details
if ( !$field_group_id )
return false;// Check this is a valid field type
if ( !in_array( $type, (array) $bp->profile->field_types ) )
return false;// Instantiate a new field object
if ( $field_id )
$field = new BP_XProfile_Field( $field_id );
else
$field = new BP_XProfile_Field;$field->group_id = $field_group_id;
if ( !empty( $parent_id ) )
$field->parent_id = $parent_id;if ( !empty( $type ) )
$field->type = $type;if ( !empty( $name ) )
$field->name = $name;if ( !empty( $description ) )
$field->description = $description;if ( !empty( $is_required ) )
$field->is_required = $is_required;if ( !empty( $can_delete ) )
$field->can_delete = $can_delete;if ( !empty( $field_order ) )
$field->field_order = $field_order;if ( !empty( $order_by ) )
$field->order_by = $order_by;if ( !empty( $is_default_option ) )
$field->is_default_option = $is_default_option;if ( !empty( $option_order ) )
$field->option_order = $option_order;return $field->save();
}
`
All I really need to do is add a little record into the existing “wp_bp_xprofile_data” tableThis below code works however it’s definately not Open source friendly or BP friendly
`
// grab this users nicename
$user = get_userdata( $iallusersUserID );
$nicename = $user->user_nicename;
$last_udpated = date(‘Y-m-d H:i:s’);// create a new record in bp_xprofile_data and add the nicename
$wpdb->insert(
‘wp_bp_xprofile_data’,
array(
‘field_id’ => 1,
‘user_id’ => $iallusersUserID,
‘value’ => $nicename,
‘last_updated’ => $last_udpated
),
array(
‘%d’,
‘%d’,
‘%s’,
‘%s’
)
);
`Any thoughts? Thanks again!
September 9, 2011 at 11:48 pm #119828Paul Wong-Gibbs
KeymasterWe fixed this in BuddyPress 1.5
-
AuthorSearch Results