Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'registration'

Viewing 25 results - 7,251 through 7,275 (of 7,641 total)
  • Author
    Search Results
  • #49976
    plrk
    Participant

    If 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.

    #49971
    Windhamdavid
    Participant

    the 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.

    It’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.

    peterverkooijen
    Participant

    I 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?

    #49929
    peterverkooijen
    Participant

    This 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?

    #49920
    peterverkooijen
    Participant

    Data 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'];

    …?!

    #49917
    peterverkooijen
    Participant

    I 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?

    #49901

    In reply to: Username and Name

    peterverkooijen
    Participant

    Yes.

    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.

    #49895

    In reply to: Username and Name

    Jeff Sayre
    Participant

    The 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.

    Greg
    Participant

    Ray, 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.

    peterverkooijen
    Participant

    I 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.

    peterverkooijen
    Participant

    Is the hook to use this?:

    user_register

    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?

    #49801
    r-a-y
    Keymaster

    Hi 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.

    #49747

    In 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=lostpassword

    While I like the plugin, this forced registration stuff around to where I wanted it ‘seamlessly’. User was just plunked over without a choice.

    #49728
    r-a-y
    Keymaster

    Put this in your CSS file:

    #avatar-form-fields {display:none;}

    This will hide the avatar field from view on the registration page.

    #49704

    just 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.

    #49605
    Mike Pratt
    Participant

    just 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?

    #49578
    peterverkooijen
    Participant

    I 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:

    register_post

    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?

    #49517
    TheEasyButton
    Participant

    handbike, I know that wasn’t suppose to be funny…. but OMG it set me off to laughing something fierce.

    #49516
    3510307
    Inactive

    I 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.

    #49501
    Rohan Kapoor
    Participant

    Please post the plug to trac.

    #49494
    3510307
    Inactive

    I’ve found the bug.

    It’s the german translation. If I switch the language to english, everything works fine.

    Greeting, Dirk

    #49492
    3510307
    Inactive

    I 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.

    #49489
    r-a-y
    Keymaster

    Did 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.

    #49479

    In reply to: New Groupblog Plugin

    3509545
    Inactive

    @Burt

    Wow, 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_savegroups_create_group_step2_savegroups_create_group_step3_saveandgroups_created_group actions, but that leaves no interaction with the user as far as blog name goes, etc.

Viewing 25 results - 7,251 through 7,275 (of 7,641 total)
Skip to toolbar