Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 63,101 through 63,125 (of 69,044 total)
  • Author
    Search Results
  • #51028
    jorrie
    Participant

    Empty?

    Someone can help me with this please? Would be higly appreciated, buddypress looks nice just need some little directions.

    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!

    #51020
    Andre
    Participant

    @crackpixels We’re not using a BP home theme since we’re trying to balance the e-zine content with the social networking piece. Instead I customized a standard WP theme (Atahualpa) and added the BP widgets into the sidebars.

    #51018
    3746311
    Inactive
    #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.

    #51014
    jorrie
    Participant

    Any idea how to acchive above ?

    Some pointers or direction would be nice, im still digging into buddypress but it, is, a bit complicated to get the results that are not “out of the box”

    #51012
    thebloghouse
    Participant

    Hey

    Sorry I haven’t been in here for a while as clients just keep givng me new work :(

    Don’t try and follow that code I posted above as that was specific to the particular plugin I was using and which was messing with the BuddyPress Ajax :)

    From looooong hard experience this issue WILL be another plugin messing with your BuddyPress Ajax so as much of a pain as it is disabling ALL your plugins do it and then repost if you are still habing this issue.

    #51011
    cpkid2
    Participant

    Thanks, Ray.

    So if I’d like to have a two-column site, would I be able to activate the default Kubrick theme and use it as the blog portion (front page) of my social network? I’d like to have my blog on the front page just like ReadWritePoem. Or would I need to use a theme made for Buddypress like the ‘home’ theme?

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

    #51007

    In reply to: Multi-thread Wires

    r-a-y
    Keymaster

    Not sure if this is on the roadmap, but if it isn’t, feel free to add it as a suggestion in the trac.

    Login with the same username and password as you use on the BP.org site.

    #51004
    blah
    Participant

    ^how do you put the blog posts on the front page like that?

    #51000
    arezki
    Participant

    Thank you sir! Not sure I follow the idea. By deleting, do you mean the entire buddypress and WP? Hum! that would take 2 years out of my life. I am sort of willing to let go of the alphabetical listing… but I don;t recall having moved files around. Standard install.

    peterverkooijen
    Participant

    Thanks r-a-y.

    I can’t make much sense of most of that code. Does function bp_core_signup_show_user_form take the input from the form? Or does it only output the form? I guess the latter.

    I think the code that actually processes the input is in bp_xprofile/bp-xprofile-classes.php, Class BP_XProfile_ProfileData etc. Or bp-xprofile-signup.php?

    Back to the other thread to see if it gets me any further…

    r-a-y
    Keymaster

    Check:

    /wp-content/plugins/buddypress/bp-core/bp-core-signup.php

    #50994
    r-a-y
    Keymaster

    BP 1.0.2 is the last version compatible with MU 2.7.1.

    If I were you, I’d wait for the next version of BuddyPress – version 1.1 scheduled to be released next week.

    You would need to upgrade WPMU to 2.8.4.

    When you upgrade, make sure you backup everything! (database, wp-content directory)

    Deactivate all plugins, rename “mu-plugins” folder (if you use mu-plugins) and then install WPMU over your existing install.

    Next, install new version of BuddyPress, reactivate plugins and everything should be good (I say should because each case is different!).

    Since you didn’t mention bbPress, I presume you don’t have to worry about it, which is good, since that takes out one main item out of the equation!

    peterverkooijen
    Participant

    You’re right r-a-y. Tried it. It had no effect on Buddypress’ registration form.

    Back to my previous attempt; I’m stuck at intercepting fullname input from the Buddypress registration form. Do you know how?

    Based on code in another plugin I put together something based on ‘$input_data’:

    function synchro_wp_usermeta($input_data) {
    global $bp, $wpdb;

    $post_data = array();
    foreach ($input_data as $varname => $varvalue) {
    $post_data[$varname] = $varvalue;
    }

    $fullname = $post_data[fullname];
    ...

    But I don’t know if that $input_data is a standard wp tag or something else. Also the structure of the xprofile tables is very different from the structure of the regular wp users tables, so I’m not sure if that ‘$input_data as $varname => $varvalue’ is applicable.

    Where is the code that processes data input from the Buddypress registration form? I’d like to use that as example, but have no clue where it is.

    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…

    #50988
    gerikg
    Participant

    they haven’t create it yet “BBpressMU” or I think it’s called “Talkpress”.

    #50985
    jorrie
    Participant

    Hi Gerikg,

    The user should have its own bbpress forum with possible several categories like, feedback, general, etc so they can post in that categories and discuss things

    #50984
    gerikg
    Participant

    You want the user create one forum topic or have their own forum?

    #50981
    peterverkooijen
    Participant

    I’m not creating a plugin from scratch or doing any complicated manipulations on the data. I’m only trying to pre-populate fields in the RSVP form in this Event Registration plugin.

    Adding the ‘echo’ didn’t fix the problem. It probably is something stupid like that.

    Which code actually pulls the data from xprofile? I couldn’t make much sense of function bp_user_fullname(). The real magic apparently happens somewhere else.

    Getting regular wp data works fine. If I could figure out how to consistently synchronize firstname and last name between xprofile and wp_usermeta, that would solve the problem as well.

    #50978
    jorrie
    Participant

    Nobody knows :( ?

    Andre Tan, I suspect the issues you’re having are related to shared hosting + the XMLRPC interface for including forums into groups. Future versions of BuddyPress will not have this problem as it includes bbPress and references it directly going forward.

    It may still end up being a little heavy on the server, but you should experience the random load issues that you are currently.

    #50975

    BuddyPress has functions to get most of the data that you need without globaizing the $bp. I think different people will give you different answers about globals, but the general idea is that the less you use them is the better off you will be.

    BuddyPress wraps most of the return/echo functions for most content in the -templatetags.php files for each specific component. If you need data that isn’t available, you can always build your own function in bp-custom.php or whatever.

    If you look at the built in BP functions, you’ll see that $bp is globalized a lot in those functions, so the answer to your question comes down to the nuts and bolts of how PHP operates deep within the core of it, and how globals are processed on a per library basis and at what point in the process it occurs.

    Long story short, if it gets you where you need to be safely, it’s probably fine enough unless you notice a slow-down or something.

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

Viewing 25 results - 63,101 through 63,125 (of 69,044 total)
Skip to toolbar