Search Results for 'profile fields'
-
AuthorSearch Results
-
October 17, 2009 at 10:54 am #54699
In reply to: How To Display Single Profile Fields
Paul Wong-Gibbs
KeymasterOctober 17, 2009 at 7:50 am #54682In reply to: calling specific profile fields individually
poolie
Participant<?php echo xprofile_get_field_data('2'); ?>would work, where 2 is the id of the field.
October 17, 2009 at 7:45 am #54681In reply to: calling specific profile fields individually
smuda
Participant@wordpressfan did you wrap <? ?> around it?

@andy that still doesn’t seem to work. <?php echo xprofile_get_field_data($2); ?> gives an error. <?php echo xprofile_get_field_data($name); ?> too.
October 17, 2009 at 4:35 am #54678In reply to: calling specific profile fields individually
wordpressfan
ParticipantHow do I echo the field’s data?
The line “echo xprofile_get_field_data( $field_name_or_id [, optional $user_id] );” only displays “echo xprofile_get_field_data( $field_name_or_id [, optional $user_id] );”
October 11, 2009 at 11:38 pm #54356In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantAnybody have ideas on the post/question above????
October 11, 2009 at 4:46 pm #54338fubp
Participant*Bump.
Please anyone?
October 9, 2009 at 2:39 am #54176In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantOkay…I have more details from my testing. It works now, but I am not really sure WHY. It seems to me that you have to (for some reason) call the get_field_data function (even if its on a useless peice of data) before you can use the set_field_data function.
If you notice from my post above…the only thing that is different is that I have added a new variable that is simply capturing the Name field (number 1). Well when I add this:
$nametestfield = xprofile_get_field_data(1,$wpuid);
And then the set_field after it (with my age variable)…than it starts working, and the field is inputted.
SO….Is there a reason why you can’t call the set_field independently. Calling in the name is basicaly useless in the function above, but it DOES make the whole thing work for some reason.
///////////////////////////////
function BP_Insert_Test($wpuid, $age) {
$age = ‘tester gender’;
$nametestfield = xprofile_get_field_data(1,$wpuid);
echo(‘user name exists already’ . $wpuid . ‘ and userdata is ‘ . $age);
echo(‘Need Field is’ . $nametestfield);
xprofile_set_field_data(2, $wpuid, $age);
}
October 9, 2009 at 12:09 am #54174In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantFor some reason…no matter what I try, I can’t inject SPECIFIC variables via the xprofile_set_field_data function….I run this function (below)
ONLY AFTER running two conditionals to make sure
/////////
ONE the buddypress globals are set
and
TWO the check for the xprofile function passes
Both conditionals pass (as expected) then go to my test function below
////////
End result — The echo statement appears correctly…but nothing is appearing in the field values for the user – I am pulling my hair out??????
Sample
////////
function BP_Insert_Test($wpuid, $age) {
$age = ’22’; // Should appear in the profile
echo(‘user id is ‘ . $wpuid . ‘ and userdata is ‘ . $age);
xprofile_set_field_data(2, $wpuid, $age);
}
Any ideas?
October 8, 2009 at 9:27 pm #54166In reply to: Function/Call to access Custom Profile Fields?
Damon Cook
ParticipantI’m attempting to do something kinda similar. I just want to create a block (pardon my Drupal lingo) that shows a blog’s author information in my theme. I want to specifically show their BP custom fields.
Right now I’ve copied over bp-sn-parent/profile/profile-loop.php to my theme and called:
locate_template( array( 'profile/profile-loop.php' ), true )but this gives me everything in the user’s profile. I would like to get a little more granular and just specify certain fields. hmmmHere is my current example as it exists.
October 8, 2009 at 7:56 pm #54157In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantOkay….Andy is probably busy, I didnt mean to explicitly ask Andy (only)
…if anyone has any advice on this I would appreciate it!
October 8, 2009 at 10:12 am #54119In reply to: "No blogs found."
outolumo
ParticipantI have this same issue. The blog name bears no resemblance to the username. There’s no reference to any blog in the profile fields.
WPMU 2.8.4a
BuddyPress 1.1
It was not solved by itself overnight.
October 8, 2009 at 6:31 am #54114In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantAndy let me ask you….I am playing with the bp-facebook plugin you ported, and specifically trying to add a value to the insert function you have in there now
function bp_fbconnect_insert_data( $user_id, $usermeta )
///////I tried setting an extra value inside that function – statically for now (just for testing) right under the default “full name” insert you have in there now.
I set it up like this:
xprofile_set_field_data(‘Age’, $user_id, ‘Test’);
I have tried setting with double quotes, no quotes, and several different ways, but it never seems to insert into the “Age” field I created in Buddypress.
Any ideas whats going wrong here? I am wondering if this function isnt firing at the right time? OR maybe I am making a stupid mistake

Thoughts? Thanks
October 8, 2009 at 1:01 am #541034828920
InactiveIf I am sure .. I did a fresh install .. before had given me an error with the same file. but with the following function:
$fields = bp_xprofile_field_deprecated::get_signup_fields();
the error was that he was in all caps and put it in lowercase worked .. but now I get the avatar.
if I upload the files .. but I do a fresh install. bd untouched .. could be solved?
I already have is very progressed to delete it.
excuse my English is not very good
October 7, 2009 at 2:09 am #54024In reply to: calling specific profile fields individually
Andy Peatling
Keymasterecho xprofile_get_field_data( $field_name_or_id [, optional $user_id] );October 6, 2009 at 8:47 pm #54004In reply to: Public Blog missing from blog list
stripedsquirrel
ParticipantWell, I found that in the BP-blogmeta table the blog in question only had one row (last_activity), but not the Name and Description fields, so I added them manually and now they appear.
I have no idea why they were not added in the first place though…
Oh, and he was also missing from the bp_user_blogs table, have added that too and now his profile shows his blog.
Hope this can be useful for others with the same problem,
Cheers
October 6, 2009 at 1:35 pm #53942In reply to: Sign up page problem with 1.1
stripedsquirrel
ParticipantI just noticed I have the same problem. I am not sure if this is a bug as maybe not all admins check the old sign-up page?
I had renamed it to stop splogs, but after the BP installation (1.1, from scratch, with new standard themes), the register pages shows the entire form, including extra profile fields, but the ‘regular’ sign-up page only shows up half (see http://biketravellers.com/wp-newblog.php )
What is going on? No errors, it just stops halfway.
Cheers
October 5, 2009 at 3:42 pm #53871In reply to: Forums and Profile Fields
lewbell
ParticipantThanks DJ
Reinstalled bbpress once again and it seems to respond now.
Still can’t get the Profile Field questions to show up for new users.
I think I’m missing something small.
October 5, 2009 at 8:26 am #53847In reply to: Forums and Profile Fields
Paul Wong-Gibbs
KeymasterSounds like your MySQL database connection details aren’t proper. However, if the rest of your WPMU site works…
Was your previous bbpress install in a seperate database? (i.e. not in the same one as wpmu/buddypress)
October 3, 2009 at 7:25 pm #53712In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantThanks Andy, I appreciate it. I can see it now…I will dig through the bp-xprofile.php to figure out the other functions.
Thanks for the great work!
October 3, 2009 at 2:12 am #53663In reply to: Extending Featured Member Widget
4727579
InactiveOK Andy solved this one for me in this thread. The answer is this:
xprofile_get_field_data( $field_name_or_id, $user_id );Where
$user_idis (in this case)$memberand$field_name_or_idis (in my case)61. I got the number by looking at the Profile Field I was after in Firefox with the Web Developer toolbar and it showed me the number in the class. I can’t work out another way of seeing a custom profile field’s id.. Off we go!!!October 3, 2009 at 12:19 am #53657In reply to: Function/Call to access Custom Profile Fields?
Andy Peatling
Keymasterxprofile_get_field_data( $field_name_or_id, $user_id );
October 2, 2009 at 11:30 pm #53651In reply to: Function/Call to access Custom Profile Fields?
shedmore
ParticipantAnybody???
I could really use the help please!
September 30, 2009 at 6:26 pm #53335John James Jacoby
KeymasterI’m closing this topic since there is another one announcing the official release. Please route your responses here going forward.
September 30, 2009 at 2:03 pm #53317westpointer
ParticipantReleased today! I appreciate all comments!
https://buddypress.org/forums/topic/auto-group-join-plugin-added
September 29, 2009 at 3:17 am #53214In reply to: Extended Profiles on Sign up?
lostdeviant
ParticipantI also just noticed that buddypress profiles don’t import from wordpress profiles or vice versa. It takes enough tooth pulling to get people to complete one profile. Adding those fields to sign up would be good because required fields would also have some anti-spam benefits.
-
AuthorSearch Results