Search Results for 'registration'
-
AuthorSearch Results
-
July 24, 2009 at 2:34 pm #49976
In reply to: Spam despite disabled registrations and Askimet
plrk
ParticipantIf you have disabled registration on your WordPress MU installation, and users are still signing up, you may have forgotten that if you are running group forums you have a bbPress installation that synchronizes users with the WordPress MU installation. Disable registration in bbPress and you should be good to go.
July 24, 2009 at 2:12 pm #49971In reply to: Spam despite disabled registrations and Askimet
Windhamdavid
Participantthe fbc_get_avatar() error is from the facebook connect… it’s been addressed somewhere else in the forums. ..it’s been fixed. The spam.. the user “LnddMiles” is not just on buddypress sites, so it’s a spambot that looks for open registrations.
You should add a captcha or math problem to your registration page to divert these.
July 24, 2009 at 1:48 am #49942John James Jacoby
KeymasterIt’s important to note that BuddyPress is an opensource project, just like all of the other WordPress related ones. That being said, if you find something isn’t working up to your expectations you are free to develop or contribute to the project to make it work how you wish. As it stands today, BuddyPress does a good job of keeping tidy and cleaning up after itself; better than most plugins in my opinion. The signups table is specific to MU and is a new addition, so you can expect it’s functionality to be misunderstood. When a user is deleted, the idea is that their signup remain in the signups table as proof of their previous registration. One could even argue that removing all user data is a bad idea in the event someone ever needs it later, say for law enforcement purposes.
Regarding blocking spam registrations, read some articles about Twitter. Some analysts have said that nearly 50% of all registrations on Twitter are spammers. Crazy eh? There just isn’t a fool proof way to prevent it from happening unfortunately.
Also, while none of the moderators are directly employed by Automattic, it’s about the best internship I think anyone in our respective businesses can hope for. We all do our best to represent Automattic and are here to help to the best of our abilities.
If you can find a specific bug or flaw in how users are currently managed between BuddyPress and WordPress, you’re welcome to respond here or file ticket in the trac. If you feel your opinion warrants more attention you can message me privately if you’d like also, and I’d be happy to help further.
July 23, 2009 at 9:40 pm #49939peterverkooijen
ParticipantI really do appreciate all the work you do. I’m just really frustrated with the lack of synchronization and consistency between Buddypress xprofile and WordPress users/usermeta etc. Automattic needs to take a serious look at member management.
FYI, here’s the response from the WPMU forum:
Because if a spammer signs up, for instance, and you delete their username and blogs, if their registration member is also deleted, then they can sign up again.
I’m not satisfied with that answer. There must be cleaner ways to block/blacklist spammers.
Isn’t there a plugin that deletes users more thoroughly?
July 23, 2009 at 7:37 pm #49929peterverkooijen
ParticipantThis plugin attempt doesn’t break anything, but still doesn’t put first_name and last_name in wp_usermeta either:
`
<?php
/*
Plugin Name: Real Name Synchro
Plugin URI: http://
Version: v0.001
Author: peterverkooijen
Description: A plugin to store firstname and lastname from the fullname field in Buddypress registration in WPMU usermeta tables.
*/
function real_name_synchro() {
global $bp, $wpdb, $bp_user_signup_meta;
$fields = BP_XProfile_Field::get_signup_fields();
if ( $fields ) {
foreach ( $fields as $field ) {
$value = $_POST[‘field_’ . $field->id];
}
}
$field->id = ‘1’;
$fullname = $value;
$space = strpos( $fullname, ‘ ‘ );
if ( false === $space ) {
$firstname = $fullname;
$lastname = ”;
} else {
$firstname = substr( $fullname, 0, $space );
$lastname = trim( substr( $fullname, $space, strlen($fullname) ) );
}
update_usermeta( $user_id, ‘nickname’, $fullname );
update_usermeta( $user_id, ‘first_name’, $firstname );
update_usermeta( $user_id, ‘last_name’, $lastname );
$wpdb->query( $wpdb->prepare( “UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d”, $fullname, $user_id ) );
$wpdb->query( $wpdb->prepare( “UPDATE {$wpdb->users} SET user_url = %s WHERE ID = %d”, bp_core_get_user_domain( $user_id ), $user_id ) );
}
//Actions
add_action(‘user_register’, ‘real_name_synchro’);
//Filters
?>`
Can anyone suggest fixes or am I fundamentally on the wrong track?
July 23, 2009 at 6:37 pm #49920peterverkooijen
ParticipantData from the fullname field on the registration form is apparently stored in x-profile via this line:
// put the user profile meta in a session ready to store.
for ( $i = 0; $i < count($bp_xprofile_callback); $i++ ) {
$bp_user_signup_meta['field_' . $bp_xprofile_callback[$i]['field_id']] .= $bp_xprofile_callback[$i]['value'];
}How can I put the value from the fullname field into a function that does the same thing as xprofile_sync_wp_profile()?
I’d have to replace the BP_XPROFILE_FULLNAME_FIELD_NAME line with “something”. The fullname field_id seems to be 1.
So something like this?:
$bp_user_signup_meta['field_' . $bp_xprofile_callback['1'] .= $bp_xprofile_callback['value'];
…?!
July 23, 2009 at 6:01 pm #49917peterverkooijen
ParticipantI guess function xprofile_sync_wp_profile() requires that the fullname (BP_XPROFILE_FULLNAME_FIELD_NAME) is already in the database and that the function can only be run after the user is already logged in.
So I guess I need to write another function that takes the fullname straight from the registration form and can be run with the user_register hook.
Where can I find the functions that take the data from the registration form and store them? I could probably use them as examples to come up with my own fuction for a plugin.
Edit: I guess all the magic happens in bp-xprofile-signup.php (function xprofile_load_signup_meta())? Is there a way to add a x-profile/wp_usermeta synchronization function to that file?
July 23, 2009 at 3:36 pm #49901In reply to: Username and Name
peterverkooijen
ParticipantYes.
But I want only Username or only Name.
Or why not Username and Name is same.
Thank you
I still want to figure out a way to autogenerate the username from the name; full name with spaces stripped, all lower case.
I know it’s doable with simple PHP code, that I may have used before somewhere – have to dig through my older sites. But where/how could I insert that into the registration process? Would that have to be a plugin? Any pointers appreciated.
July 23, 2009 at 3:04 pm #49895In reply to: Username and Name
Jeff Sayre
ParticipantThe username field is a mandatory WPMU field. It is used by WPMU as the “user_login” field of the wp_users table. It is the necessary piece of datum that is used when a user logs in.
BuddyPress has its own mandatory registration field that by default is called “Full Name”. Look in the BuddyPress submenu group in WPMU’s backend. Go to “BuddyPress > General Settings > Full Name field name”.
You can change the “Full Name” field name to display whatever you want but you cannot remove that field from the registration page nor edit it to be something other than a single textbox field–at least not without hacking the core. Look under the “Basic” field grouping in “BuddyPress > Profile Field Setup” to see what I mean.
In fact, for testbp.org, Andy did change the outputted name of that field to simply read “Name”.
It is this BuddyPress field that is used to display the user’s name. If fact, this field can be edited by the user when they visit their profile and navigate “Profile > Edit Profile”. On the other hand, the username field, which is a WPMU field, cannot be edited.
July 23, 2009 at 1:35 am #49849Greg
ParticipantRay, you’re right that WPMU (or is it BP?) strips caps on registration. But these users came from a previous bbPress installation (where caps were allowed).
I guess I could make user_login = user_nicename for all of these users, but I would like to ensure that the lack of caps support for user_login is a limitation on WPMU and not just a symptom of some other problem.
July 22, 2009 at 7:30 pm #49816peterverkooijen
ParticipantI had to remove this line of course:
add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile' );
Plugin now activated. Now testing to see if it does anything…
Edit: The plugin does not derail registration, but doesn’t do anything useful either. The first_name and last_name do not show up in wp_usermeta.
Why doesn’t it work? Any suggestions very much appreciated.
July 22, 2009 at 6:48 pm #49806peterverkooijen
ParticipantIs the hook to use this?:
Runs when a user’s profile is first created. Action function argument: user ID.
So something like this?:
<?php
/*
Plugin Name: Real Name Synchro
Plugin URI: http://
Version: v0.001
Author: peterverkooijen
Description: A plugin to store firstname and lastname from the fullname field in Buddypress registration in WPMU usermeta tables, based on examples in the <a href="http://www.devlounge.net">Devlounge</a> series.
*/
if (!class_exists("RealNameSynchro")) {
class RealNameSynchro {
function RealNameSynchro() { //constructor
}
function xprofile_sync_wp_profile() {
global $bp, $wpdb;
if ( (int)get_site_option( 'bp-disable-profile-sync' ) )
return true;
$fullname = xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $bp->loggedin_user->id );
$space = strpos( $fullname, ' ' );
if ( false === $space ) {
$firstname = $fullname;
$lastname = '';
} else {
$firstname = substr( $fullname, 0, $space );
$lastname = trim( substr( $fullname, $space, strlen($fullname) ) );
}
update_usermeta( $bp->loggedin_user->id, 'nickname', $fullname );
update_usermeta( $bp->loggedin_user->id, 'first_name', $firstname );
update_usermeta( $bp->loggedin_user->id, 'last_name', $lastname );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $fullname, $bp->loggedin_user->id ) );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_url = %s WHERE ID = %d", bp_core_get_user_domain( $bp->loggedin_user->id ), $bp->loggedin_user->id ) );
}
add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile' );
}
} //End Class RealNameSynchro
if (class_exists("RealNameSynchro")) {
$dl_pluginSeries = new RealNameSynchro();
}
//Actions and Filters
if (isset($dl_pluginSeries)) {
//Actions
add_action('user_register', array(&$dl_pluginSeries, 'xprofile_sync_wp_profile'), 1);
//Filters
}
?>Testing it now…
Edit: Activating this plugin produces a white screen. Not a good start…
Where did I go wrong?
July 22, 2009 at 5:37 pm #49801In reply to: Removing avatar upload at signup
r-a-y
KeymasterHi fangonk,
If you scrolled a little bit down, you would have seen this thread!
https://buddypress.org/forums/topic/remove-image-upload-option-from-signup-only
It’s a simple fix that uses CSS to hide the avatar fields on the registration page.
July 22, 2009 at 1:25 am #49747In reply to: Block/Prevent new users from registering
Ipstenu (Mika Epstein)
ParticipantIn my forum’s .htaccess:
Redirect /forums/register.php http://mysite.com/wpmu/wp-signup.php
Redirect /forums/bb-reset-password.php http://mysite.com/wpmu/wp-login.php?action=lostpasswordWhile I like the plugin, this forced registration stuff around to where I wanted it ‘seamlessly’. User was just plunked over without a choice.
July 21, 2009 at 8:02 pm #49728In reply to: Remove Image Upload Option from SIGNUP only.
r-a-y
KeymasterPut this in your CSS file:
#avatar-form-fields {display:none;}
This will hide the avatar field from view on the registration page.
July 21, 2009 at 5:13 pm #49704In reply to: Block/Prevent new users from registering
Ipstenu (Mika Epstein)
Participantjust noticed you commented on this thread:
https://bbpress.org/forums/topic/howto-disable-registration
Do I understand that it doesn’t prevent new users, it just prevents registering from the mysite/forums/registration.php process and still allows auto joining via the BP process?
Sorry, I was away camping! Yes, that’s exactly what it does.
July 19, 2009 at 4:05 pm #49605In reply to: Block/Prevent new users from registering
Mike Pratt
Participantjust noticed you commented on this thread:
https://bbpress.org/forums/topic/howto-disable-registration
Do I understand that it doesn’t prevent new users, it just prevents registering from the mysite/forums/registration.php process and still allows auto joining via the BP process?
July 18, 2009 at 7:10 pm #49578In reply to: ListMessenger (or PHPlist) integration – plugin?
peterverkooijen
ParticipantI am now going through the How to Write a WordPress Plugin tutorial on DevLounge.net.
It says you can hook into WordPress to execute pieces of code using WordPress actions. I assume in my case I should use this action:
So I should write a function that somehow forms and executes that URL – http://mysite.com/…/listmessenger.php?etc. – and trigger that on registration using register_post?
And to construct the function I can use WordPress filters? The available ‘database writes’ filters are only for WordPress tables of course…
How would I add data to tables outside WordPress, in this case the ListMessenger tables?
Edit 1: Stupid question; that is done by that URL created by $post_data=… in the PHPList code.
Or is there a better way to add data to the database directly from the plugin?
Edit 2: This page has more information on creating/updating tables outside regular WordPress. Would that approach be better than that URL?
July 17, 2009 at 10:27 am #49517In reply to: User registration is not working
TheEasyButton
Participanthandbike, I know that wasn’t suppose to be funny…. but OMG it set me off to laughing something fierce.
July 17, 2009 at 10:15 am #49516In reply to: User registration is not working
3510307
InactiveI should do what?
Post the plug to trac? What the hell does that mean?
I’ve posted a detailed error description and the solution in the german wp mu forum.
July 17, 2009 at 4:50 am #49501In reply to: User registration is not working
Rohan Kapoor
ParticipantPlease post the plug to trac.
July 16, 2009 at 10:34 pm #49494In reply to: User registration is not working
3510307
InactiveI’ve found the bug.
It’s the german translation. If I switch the language to english, everything works fine.
Greeting, Dirk
July 16, 2009 at 10:11 pm #49492In reply to: User registration is not working
3510307
InactiveI just made a fresh install from the german buddy press combo package. With a new database. Same error.
If you want to test: http://community.handbike.de/wp/wp-signup.php
No other plugins are activated, just BP.
July 16, 2009 at 9:46 pm #49489In reply to: User registration is not working
r-a-y
KeymasterDid you make any modifications to wpmu-functions.php?
Make sure you overwrite it with one from the WPMU 2.8.1 install.
I just tested this and it works.
July 16, 2009 at 7:24 pm #49479In reply to: New Groupblog Plugin
3509545
InactiveWow, if I’m reading this API correctly, it looks like it’s going to make our job a lot easier! (I’m the other half of the team together with Mariusooms who made the plugin, BTW.)
In fact, I wasn’t really sure how we were going to implement the:
* Allow blog registration at group sign up, much like how you can create a blog at site registration.
but now the way forward seems much clearer. I’m mean there was always the:
groups_create_group_step1_save
groups_create_group_step2_save
groups_create_group_step3_save
andgroups_created_group
actions, but that leaves no interaction with the user as far as blog name goes, etc. -
AuthorSearch Results