Forum Replies Created
yes, but get_userdata() doesn’t return values like avatar and additional profile fields from registration. I found some functions in a core but I am not sure I should go that deep to get this info.
and finaly the best one:
ok, I can actually get what I want the other way around. I could run a loop thru my IDs but I need to get somehow all the BP user data, inside the loop, for each user… something more than get_userdata() function. Is there a function like that? I didn’t find anything.
Any ideas/help are welcome.
I need to add something…
I could actually use bp_has_site_members() function.
But my users must have custom meta value, if I could pass it here that would do the job but I don’t think it’s possible, is it?
I have tried that too. It doesn’t work that’s why I’ve edited the core. Also, I sent PM to Burt with link to this post few days ago.
ok, I’ve got temporary solution.
Line 1481: yous should have (inside function groups_create_group() / case 2:)
do_action( ‘groups_create_group_step2_save’ );
I’ve added this line:
So it works, but i had to modify this file which I am not happy with. I guess there is another way of doing this properly. If anyone will find better solution, could you please let me know too?
yes, I’ve got this plugin (bpGroups), it works fine but it has this one bug and I don’t know how to fix this damn thing.
Basicaly, when you are creating a new group there is a checkbox to create a forum on bb site too. Below are 3 group options: public, private, hidden.
Now, the script creates forum (default is public), then it changes settings for a group (private or hidden), and it should do this at a first place so it could inherit proper group settings when creating a forum. Do you know what I mean? I just want to swap the order somewhere inside the code to make it working. It should first update group settings, then create a forum. That way it would work properly.
I googled about this etc, looks like nobody’s aware of this bug cos I couldn’t find any answers and nobody even point this anywhere.
Just to clarify. I am talking about plugin for buddypress to communicate with bbpress. And by saying forum is visible I mean forum created with this plugin on bbpress side is visible (but should inherit settings from group).
thanks Burt, just upgraded the forum and all these tricks are working now!
Now I have to integrate it with buddypress groups, I guess I will lose another hours/days as I can already see an error message “There was an error posting that topic.” when I try to submit new topic via bp
Thanks anyway for the hint in the wpmu/bbpress integration part.
I forgot to mention my installation details:
1) wpmu 2.7.1
2) buddypress 1.0
3) bbpress 0.9.0.4
Also, I think this might be very important thing. When I am loged in to forum as an forumadmin and I go in another tab to wp-admin page, I’ve got this message straight away on my screen: “Please log in again.”. Even before I type something………
heh, this is insane, I’ve been trying different methods all the time and still cannot get everything done properly. I think I am having issues only with cookies now. Single sign on doesn’t work but I can properly log-in on forum and wpmu with my username I registered on wpmu. I’ve been checking cookies array and after loging to forum 1 more appears that’s why I think I have a problem with this part. Also, when I log-in as an admin to wpmu and in another tab as and forumadmin to bbpress – I cannot access forum admin section for some reason. Please note these are 2 different users in database.
Could you guys point me into the right direction where something can be wrong? I am running out of all permutations where should I change something
I am nearly there, I know it, it must be something simple I am missing. Please help, it’s 3rd day I cannot crack it!
I am not sure if this is related to this topic, but this is the one and only post related to this function at all so I decided to write it here.
Basically, I was trying to modify this function to put some more information about the registered user and pass this info in email to the admin. When you call the function somewhere in the content (template), it’s ok, it works. When you register new user – it doesn’t, it will not print these data. Weird, huh?
On top of that, I don’t know why and it’s not the major thing, but I am using mailpress plugin to send the emails and apparently when calling this function from template it send nice html email but again, when user tries to register it sends plain text only.
Any ideas where to start or how to fix this problem?
Oh, btw, I am using this method to fetch data from database:
$more_info = BP_XProfile_ProfileData::get_value_byid(7,$user_id);
(and yes, it returns the field I need properly everywhere else)
Thanks in advance
I totally understand you Peter, I am now trying to fix the fact that bp and wpmu have name and surname in two different places in mysql. I just don’t understand it why someone would like to keep it that way? Also, there is a function I found xprofile_sync_wp_profile() which is trying to sync both information, however it doesn’t do it after the registration confirmation and it’s called only after profile update. Currently I am working on big project based on wpmu and bp and many other plugins and opensource code and I must say half of my time I need to fix bugs cos they just don’t work together like they should. Anyway, I shouldn’t complain, at the end of a day it’s free…