Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 21,051 through 21,075 (of 22,658 total)
  • Author
    Search Results
  • peterverkooijen
    Participant

    Mike Pratt, you’re right, that is one way to do it. Then you have the following fields on your registration form: username, name, first name, last name. That is an excellent solution if your aim is to annoy potential members.

    Another option is to use the default “fullname” field for first name and create a second one for last name, but then you’re kinda messing with the system and perhaps causing problems in the future. I have already done this solution in an earlier version. It’s my fallback option.

    But why would I have to create custom fields when WordPress already has the first_name and last_name fields in wp_usermeta? And there is even a ready-to-use Buddypress function that synchronizes the fields in wp_usermeta with the fullname in BP.

    Unfortunately at the moment that function is only run when the user updates his profile, so it’s completely useless. I’m trying to tweak it and make it useful and introduce to Buddypress the wonders of a first_name, last_name in the database. (Wow, I know…)

    Also I’d like to get rid of the username on the form, by autogenerating it from the fullname – make lowercase, take out spaces, store as username. That should be a relatively easy next step once I’ve figured out how to use the fullname input from the registration form in a function.

    Also I wasn’t able to get bp tags working in a plugin, where I had no problem pulling first_name and last_name from wp_usermeta, providing they were available…

    This should be a really easy plugin for any php coder, but as Jeff Sayre has pointed out, having a somewhat clean, professional user registration in Buddypress is reserved for those well-versed in the codebase or with deep-enough pockets.

    @Mariusooms, I need to finish the site before Labor Day, with a related event on September 22nd. When will bp1.0.3 be released?

    I’ll figure it out somehow, with or without the help of WordPress insiders.

    #51087
    davetesh
    Member

    Wait I guess I had to instal WordPress MU but is there a way to convert my wordpress right now on my site to WordPress MU? I don’t really want to delete my posts.

    #51077
    Jeff Sayre
    Participant

    As r-a-y points put, Mark Jaquith, one of the few lead developers for WordPress, was hired to build a highly-customized version of WPMU + BuddyPress for Gigaom. Mark of course is intimately aware of the intricacies of the WP codebase and I’m sure had an easier time customizing the project than would the vast majority of coders.

    But, the Gigaom site does demonstrate what is possible with WPMU + BP if you are willing to become well-versed in the codebase or have deep-enough pockets to hire out professional talent.

    #51071
    r-a-y
    Keymaster

    @Peter + Roger,

    You might want to pick Mark’s brain as to how he created the registration system and removed the username:

    http://markjaquith.wordpress.com/2009/05/28/gigaom-pro-launches-on-wordpress-and-buddypress/

    #51065
    Jeff Sayre
    Participant

    Once v1.1 comes out in the next couple of weeks, this issue should be moot. There will no longer be bhome and bpmember themes. Instead, BuddyPress will adopt the parent/child theme architecture that WP 2.7 makes possible.

    Backwards compatibility will remain for a while for those that want/need to use the old theming architecture. But it will eventually be phased out.

    Learn more about parent/child themes in WordPress.

    #51061
    Jeff Sayre
    Participant

    This is a WPMU question so it is best to ask in that forum. Please do so.

    In addition, this plugin may be of use: https://wordpress.org/extend/plugins/advanced-export-for-wp-wpmu/

    #51058
    Jeff Sayre
    Participant

    Well, you’ll need some PHP, CSS, and WP theming knowledge to modify WP themes. Here’s a helpful link to get you started with WP theme designing.

    peterverkooijen
    Participant

    Thanks for the additional clues DJPaul!

    In the latest attempt I was going back to my first approach, trying to catch the input straight from the form, so that has to run on initial user registration, not on activation.

    Or is user_register not used in Buddypress at all? Is there a wpmu or bp equivalent I could try? Should I use wpmu_create_user? According to this blog post:

    the do_action for wpmu_new_user is directly at the bottom of wpmu_create_user in the wp-includes/wpmu-functions.php the wpmu_create_user gets sent the username password and email and checks if the username or email exists, if not create the new user in the database and assign a user_id to the return, also assigning capabilities and level … this happens on *all* levels of registration and is the perfect hook point to add them into the database

    the do_action do_action( ‘wpmu_new_user’, $user_id ); so you get the immediate user_id soon as it’s created which you can use in your table

    Apparantly this is like a flowchart of registration events in wpmu (wp-includes/wpmu-default-filters.php):

    add_filter ( 'wpmu_validate_user_signup', 'signup_nonce_check' );
    add_action ( 'init', 'maybe_add_existing_user_to_blog' );
    add_filter ( 'xmlrpc_methods', 'attach_wpmu_xmlrpc' );
    add_filter ( 'wp_authenticate_user', 'wordpressmu_authenticate_siteadmin', 10, 2 );
    add_action ( 'wpmu_new_user', 'newuser_notify_siteadmin' );
    add_action ( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
    add_action ( 'sanitize_user', 'strtolower_usernames', 10, 3 );

    Should I focus on these wpmu action hooks instead of regular wp hook? Does bp have a list like this somewhere?

    I couldn’t figure out how to serialize that $meta data and extract the fullname from it, so I abandoned the approach hooking into wpmu_activate_user for now. Also when I put in the $user_id and $password arguments I got the error messages about missing arguments. wtf?!

    I think this bit of code grabs the input from the registration form:

    $fields = BP_XProfile_Field::get_signup_fields();

    if ( $fields ) {
    foreach ( $fields as $field ) {

    $value = $_POST['field_' . $field->id];

    fullname is the input from field_1, but I don’t know how to finish the php to get to $fullname = … . The two latest attempts above did not work.

    I have to give up for now. Deadline at my day job coming up…

    peterverkooijen
    Participant

    arezki, there is a Users to CSV plugin. Not sure if it also exports data from Buddypress’ xprofile table, but perhaps you could expand it.

    Getting data from the database is relatively simple. You could just write your own SQL queries as well, if you can figure out how and where the data is stored, which is not at all straightforward in the wp-wpmu-bp patchwork.

    My original question was about something else; how does data move from registration form to the database?

    I’m trying to identify what bit of code “picks up” the input from the ‘* Name’ field, id/name = “field_1”. Is it this function?:

    function xprofile_extract_signup_meta( $user_id, $meta ) {
    // Extract signup meta fields to fill out profile
    $field_ids = $meta['xprofile_field_ids'];
    $field_ids = explode( ',', $field_ids );

    // Loop through each bit of profile data and save it to profile.
    for ( $i = 0; $i < count($field_ids); $i++ ) {
    if ( empty( $field_ids[$i] ) ) continue;

    $field_value = $meta["field_{$field_ids[$i]}"];

    $field = new BP_XProfile_ProfileData();
    $field->user_id = $user_id;
    $field->value = $field_value;
    $field->field_id = $field_ids[$i];
    $field->last_updated = time();

    $field->save();
    }

    update_usermeta( $user_id, 'last_activity', time() );
    }

    For a plugin I need SOMETHING HERE = $fullname. The SOMETHING HERE should be the input value for field_1 from the registration form.

    I get lost in the php in the array stuff. Please help if anyone can give any more clues!

    #51015
    Paul Wong-Gibbs
    Keymaster

    You can use any WordPress theme for the home/blog theme, yes. You’d only need a customised or Buddypress-specific theme for the member pages.

    #51009
    r-a-y
    Keymaster

    “themes” is a themes folder for WordPress(MU); whereas “bp-themes” is a themes folder specific to BuddyPress components.

    To be more specific, “themes” styles the blogs; “bp-themes” styles the member profiles and groups.

    ReadWritePoem’s blog posts is from the main, primary blog… it’s a simple template loop from WordPress… nothing elaborate there. In fact, looking into it further, they do not have member blogs! So if you’re familiar with regular WordPress, you’ll know how they placed the blog posts on the front page.

    peterverkooijen
    Participant

    Here is a plugin that “forces users to provide first and last name upon registration” and stores them in wp_usermeta.

    Would this plugin be compatible with Buddypress? Looking into it now…

    #50977

    In reply to: Fake IDs?

    A majority of the registration protection you would want to do currently comes from the WordPress side of it; captchya’s and what-not.

    I’ve seen it happen on a few BP sites I’ve done for clients already. Seems to come with the territory unfortunately.

    #50974
    peterverkooijen
    Participant

    Thanks Jeff Sayre!

    The plugin has a very messy structure. I’ve tried with $bp added to global in several functions in the plugin, both in the main file and the file with the form. Nothing has any effect.

    Are there any downsides to adding $bp if it’s not strictly needed? Can you make any plugin “Buddypress ready” by just adding that $bp to global?

    I did get regular wp data working with help from their forum. I had to add this to the php:

    global $current_user;
    get_currentuserinfo();

    Does Buddypress have something like that? Anything else I can try?

    Jeff Sayre
    Participant
    #50956
    Jeff Sayre
    Participant

    General theming guidance is beyond the scope of these forums as it really is more an issue of learning how to use CSS and WordPress/BuddyPress template loops to create the design you are after.

    But, to help get you started, here a few links:

    1. Advice on using the default BP themes or Skeleton Theme that comes with BP
    2. A great tool to use while designing your theme.
    3. Basic how tos on WordPress theme design. NOTE: this link pertains to wordpress themes in general, not BuddyPress themes. But, you should really understand WP theming before you set out to do a BP custom theme.

    #50943
    Tore
    Participant

    I’m using the WordPress P2-theme for this functionality. It won’t be integrated into Buddypress like the status update (since it’s a WP theme), but its the right thing for me. You might want to consider it.

    #50923
    Tore
    Participant

    Hi!

    I’m altering the bp-member-theme to go along with P2. But these two components lay inside of a theme I’ve made with artisteer. There’s a lot of hacking code to make it all work but I’m beginning to like the result.

    The reason I’m editing bpmember is that I want horizontal navigation and not vertical. This has been quite easy to edit but has taken me some time. I’ve had no experience with BP before and just a little with WP.

    I’ve written about putting P2 in another theme before. You can find it here:

    https://wordpress.org/support/topic/294161

    Anyway.. Editing P2 is way simpler than editing the whole of bphome/bpmember. It all depends on how much you want integreated in one “seamless look”.

    Best of luck!

    #50922
    Paul Wong-Gibbs
    Keymaster

    What *is* /engine/start.php, because it’s not WordPress?

    gerikg
    Participant

    Easy no.

    A. On your Hosting Control Panel point the new URL to the same folder as where you have everything now. Then go to the admin settings and change the URL on both WPMU and BBPress. It will log you out and you have to log in. Install plugin broken link checker https://wordpress.org/extend/plugins/broken-link-checker/ and have fun changing all the URLs.

    there is another option it involves setting up a new SQL and exporting everything and importing… bbpress has a pluging for you to export and import, I never used it so I don’t want to recommend it.

    #50916

    In reply to: User points

    Paul Wong-Gibbs
    Keymaster

    Thanks, I’m making a note of these suggestions.

    The WP widget idea will most likely wait to another future version as I don’t know how to use the WordPress widget class, and I won’t have time to learn it before Sunday.

    #50910
    gerikg
    Participant

    I got the fatal error after deactivating the BP plugin and reactivating it. You have you delete the the BP plugin and themes and/or other files you moved out of the BP folder. (example BBpress-plugin and bphome theme) After all that fresh install.

    #50907

    Seems most people that were previously loving the FaceBook/WordPress bridge have shifted their attention over to RPX as a better alternative for allowing users to register and login from anywhere.

    Regarding the FaceBook Connect plugin (and most others really) someone will usually come along and take it over when they have a personal need that is bad enough to do it. Tends to happen with most abandoned projects as time goes on.

    I’m sure Andy will chime in as to whether or not he plans to support it going forward.

    #50905

    No idea what’s happening, but my advice would be to disable all plugins, check and recheck the existence of all of the BuddyPress files in their correct locations, and try again?

    #50899

    You need to have the WordPress language files in wp-contents/languages first, before WordPress will give you the option of changing the site and blog languages to something other than default. Once you have the files there, set your Site Language in Site-Admin->Options, then set your blog language in Settings->General.

    Basically BuddyPress will follow whatever WordPress MU is set to do, but it cannot tell it what to do (yet).

    WordPressMU has a specific way of handling language settings that involves a function that overrides the typical get_locale().

Viewing 25 results - 21,051 through 21,075 (of 22,658 total)
Skip to toolbar