Can anyone please tell me how to run xprofile_sync_wp_profile() on registration?
xprofile_sync_wp_profile() splits first_name and last_name from BP’s fullname registration field and stores them in WordPress’ standard usermeta table. That is tremendously useful, if you can count on that data being there.
I’ve tried putting the function in a plugin to run on user_register as action hook, but got a “cannot redeclare” error because the function is already in bp-xprofile-filters.php.
I’ve tried editing the add_action thingy in that file from xprofile_updated_profile to user_register, but it had no effect.
I can’t find any more documentation on how to use this function.
Any pointers very much appreciated!
Edit: As far as I understand this function now only kicks in when the user updates his profile:
add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile' );
That could be never, so you can never count on that first_name, last_name data being there in wp_usermeta. In my case I need first_name, last_name “somewhere” for synchronisation with ListMessenger mailing list. There are many other scenarios where you’d need them.
Replacing xprofile_updated_profile with user_register did not work. Should I try other hooks? Which ones? Or am I on the wrong track? Does the ‘$bp->loggedin_user->id’ line make it impossible to run this function on registration? How about on first login? Is there a hook for that?
Also, if I can get this to work, it looks like a small step to include a few lines to autogenerate a username from the full name.
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.
Hi, stumbled upon this thread and love the concept, as a XBOX 360 owner. Would like to keep track of where this is going. Would be a great social attribute to buddypress.
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.
Gabriel-
and then tag the clothes (describe, tag, categorize…). We want to have some level of control here.
In case you have not seen this, there is a wonderful BuddyPress plugin that can address this need: https://wordpress.org/extend/plugins/bpcontents/
Are you using a custom theme? Have you added any required fields via the “BuddyPress > Profile Fields Setup” in WPMU’s backend?
By default, WPMU with BuddyPress installed is setup to do exactly what you are asking–have one “Username” field and one “Name” field on the signup page.
Sorry for being a little slow on this topic, but activity streams are hard to wrap my mind around, mostly because I don’t quite get the technology. Does openmicroblogging — is this a viable part of Joseph Smarr’s so-called “social stack”? (I think they’ve moved on to calling it something else now, not “social stack,” but I digress…)
I’ll be building a version of a micro stream soon enough, or trying to adapt a former one (such as the “wire”?) to suit my own purposes.
As I understand it, there’s already a bit of a WordPress plugin:
http://adrianlang.de/mnw/
Why rebuild the wheel, when it’s built? Perhaps we should borrow/resuse from that plugin
There’s a bit of development/discussion going on over here for WordPress itself:
http://groups.google.com/group/diso-project/browse_thread/thread/84481ef2e912a099
http://groups.google.com/group/diso-project/browse_thread/thread/b9f1b8865d3d8526
Update 2: Well, I got somewhere. Buddypress appears to be working. The weird part is that I can’t deactivate it. When I click deactivate it says “Plugin could not be activated because it triggered a fatal error.” How weird is that?
I am going to run with it for now. Theme is going to need a lot of work… the fonts appear to have grown for some reason. must be a problem with my custom CSS
UPDATE: I attempted to delete all my plugins (mu and normal) from my site. Once they were all deleted, I reinstalled buddypress and then reactivated all of my plugins and yet still I receive the same fatal error.
Is this a problem with 2.8.2?
Yes. I used bphome and bdmember theme from BuddyPress 1.0.3 package. (I delete old one and upload new)
Here is my instalation for test purposes:
http://loger.outsider.pl/
Maybe it will help to sole my problem.
I know that problem is have to be on server side. I was installing BP at my local Wamp instalation and at Zeus Web serwer. – Works fine
Here is phpinfo http://loger.outsider.pl/phpinfo.php
Here is the error:
Fatal error: Cannot redeclare class BP_Messages_Thread in /home/jjwinter/public_html/ebodia.com/wp-content/plugins/buddypress/bp-messages/bp-messages-classes.php on line 3
Line 3 of messages-classes-php is:
Class BP_Messages_Thread {
I upgraded automatically to 2.8.2 and then automaticly to 1.0.3 (after disabling) Does anyone have any ideas or seen this before? thanks in advance!
i am trying to use buddypress on a rtl website, i change the css files, the site is working
fine with firefox an ie8 but i can’t make it work with ie6 an ie7.
any suggestions?
Hi
After I update my BP instalation form 1.0 to 1.02 I get problem whit “Newest | Active | Popular” options in members and groups widget. Everything works fine on 1.0. Now when someone click on one of otions it look like whole page is loaded in to single widget DIV. I install BuddyPress Default Home Theme and turn of my translation (I suspect that is a problem) but my problem didn’t disappear. I use:
WPMU 2.8.2
BP 1.0.3 (updated from 1.0.2)
bbPress 1.0 RC-2 whit simple integration based at: http://buddypress.org/forums/topic.php?id=471
TOS plugin
running on IdeaWebServer
I’ll check it on two of my instalations on each one problem look the same.
Any one know how to solve my problem?
(sorry for my poor english)
Hello,
Is there any plugin to modify notification in BuddyPress.
Thank you
Hello,
WordPress µ 2.7.1
BuddyPress 1.0.2
Is there any possibility to enter only one time the Username and Name as in the standard Buddypress theme (http://testbp.org/register)
Thank you
Hello,
WordPress MU 2.7.1.
BuddyPress 1.0.2
Do you know how to manage the url address out of the standard buddypress theme.
Like for example to transform:www.domaine.com/GROUPS
into
http://www.domain-name.com/COMMUNAUTIES
Thank you
Have a good day
Don’t run a public site on trunk? I mean, I have a local development installation of trunk but to run that publicly…
The most recent trunk entirely changes the way the forums component is integrated into BuddyPress, which is why you are getting these problems.
Okay, I found an easier way for this.
Instead of creating a new stylesheet, you can use your existing admin bar CSS, but define some new rules for just the WPMU admin area.
Use this as your CSS selector:
body.wp-admin #wp-admin-bar {ENTER YOUR STYLES HERE}
Remember to define the body.wp-admin selector for each BuddyBar element you want to style.
eg.
body.wp-admin #wp-admin-bar {
background:yellow !important;}
body.wp-admin #wp-admin-bar li * {
font:12px normal georgia,times,serif !important;
}
This will change the BuddyBar background colour to yellow and the font to a serif for the WPMU admin area.
Hope that helps!
I’ve recently started doing this for the purpose of renaming a few of the predefined labels as well.
I use PoEdit and followed the instructions listed here:
https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/
The “Labels and Messages” section is what you want to read up on.
Follow them explicitly and you should be good to go.
You’ll probably want to find a PoEdit tutorial on Google as well.
By “post”, what do you mean exactly?
A BuddyPress forum post, or just a regular blog post?
If it’s a blog post, I’m quite certain a WordPress plugin can handle that.