Search Results for 'buddypress'
-
AuthorSearch Results
-
August 14, 2009 at 9:46 pm #51028
In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantEmpty?
Someone can help me with this please? Would be higly appreciated, buddypress looks nice just need some little directions.
August 14, 2009 at 6:02 pm #51021peterverkooijen
Participantarezki, 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!
August 14, 2009 at 5:47 pm #51020In reply to: BuddyPress Showoff: Post your links
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.
August 14, 2009 at 2:58 pm #51018In reply to: Help with custom setup buddypress + bbpress
3746311
InactiveAugust 14, 2009 at 11:32 am #51015In reply to: noob questions…new to buddypress
Paul Wong-Gibbs
KeymasterYou 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.
August 14, 2009 at 10:33 am #51014In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantAny 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”
August 14, 2009 at 7:55 am #51012In reply to: Ajax areas not working correctly
thebloghouse
ParticipantHey
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.
August 14, 2009 at 7:34 am #51011In reply to: noob questions…new to buddypress
cpkid2
ParticipantThanks, 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?
August 14, 2009 at 6:58 am #51009In reply to: noob questions…new to buddypress
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.
August 14, 2009 at 6:45 am #51007In reply to: Multi-thread Wires
r-a-y
KeymasterNot 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.
August 14, 2009 at 6:09 am #51004In reply to: BuddyPress Showoff: Post your links
blah
Participant^how do you put the blog posts on the front page like that?
August 14, 2009 at 4:29 am #51000In reply to: Member directory browsing issue.
arezki
ParticipantThank 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.
August 14, 2009 at 2:52 am #50996peterverkooijen
ParticipantThanks 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…
August 14, 2009 at 12:55 am #50995r-a-y
KeymasterCheck:
/wp-content/plugins/buddypress/bp-core/bp-core-signup.php
August 14, 2009 at 12:19 am #50994In reply to: Help with Upgrading my Site
r-a-y
KeymasterBP 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!
August 14, 2009 at 12:17 am #50993peterverkooijen
ParticipantYou’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.
August 14, 2009 at 12:01 am #50990peterverkooijen
ParticipantHere 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…
August 13, 2009 at 10:31 pm #50988In reply to: Help with custom setup buddypress + bbpress
gerikg
Participantthey haven’t create it yet “BBpressMU” or I think it’s called “Talkpress”.
August 13, 2009 at 8:46 pm #50985In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantHi 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
August 13, 2009 at 7:53 pm #50984In reply to: Help with custom setup buddypress + bbpress
gerikg
ParticipantYou want the user create one forum topic or have their own forum?
August 13, 2009 at 7:26 pm #50981In reply to: bp tags not working in plugins?
peterverkooijen
ParticipantI’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.
August 13, 2009 at 6:22 pm #50978In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantNobody knows
?
August 13, 2009 at 5:52 pm #50976John James Jacoby
KeymasterAndre 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.
August 13, 2009 at 5:31 pm #50975In reply to: bp tags not working in plugins?
John James Jacoby
KeymasterBuddyPress 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.
August 13, 2009 at 5:12 pm #50974In reply to: bp tags not working in plugins?
peterverkooijen
ParticipantThanks 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?
-
AuthorSearch Results