Search Results for 'hide fields'
-
AuthorSearch Results
-
July 1, 2009 at 4:23 pm #48357
In reply to: Generate username (+ blog url) from fullname
Jeff Sayre
ParticipantHiding a field on a form is not that difficult. As long as the required data gets added to the database by some other means it doesn’t change the underlying foundation at all.
As I said, I’m sure that with enough coding you code get this to work. But it might require core hacking. If so, that would be a change to the underlying foundation. I’m not sure without trying it so your best bet is to talk with the WPMU gurus on their forum.
It is not a WPMU issue.
…
The WPMU forum will just send me back here and rightly so.
Whereas they may indeed send you back here, it is a WPMU issue. Just because you think it is a BuddyPress issue does not make it so. I’ve said that several times, DJPaul has said that, jjj has said that as well.
WPMU’s functions take care of the underlying registration process. BuddyPress just hooks into that process, adding a few of its own fields and checks along the way. WPMU does not allow you to position the username field in a different sequence–not without behind the scenes changes. Of course it is easy enough to hide it via CSS, but whether or not you can then write data to it, bypassing WPMU’s field validation protocols is a different story. I have not tried that. I am not sure. But, it is a question that must be asked of WPMU, not BuddyPress.
You said above that:
I’m not really a coder. I understand I’ll need to learn from scratch or hire someone.
Well, if you aren’t looking at how the underlying registration functions are coded, then how can you say with such certainty that this is not a WPMU issue?
I have not spent all the time that I have responding to your various questions in your various threads to get rid of you. If I didn’t want to help, I would simply have ignored your posts. I’m offering you support and pointing you in the best direction for the given issue. You can choose to ignore my advice. That is your prerogative.
Perhaps you’ve already spent time on the WPMU forums and did not get the response you have wanted. We’ve been as helpful as we can here.
Without contracting with a coder or coding yourself, you’re out of luck.
May 10, 2009 at 7:58 pm #44969In reply to: SQl Question
Paul Wong-Gibbs
KeymasterPlease search forum before asking questions; it’s in the FAQ sticky – https://buddypress.org/forums/topic.php?id=2190
“How to hide selected profile fields”
March 18, 2009 at 7:55 pm #40349In reply to: Profile Fields – Hide on edit profile
bingoneighbour
ParticipantActually it’s pretty easy to see what profile fields are called in the DB – Check the wp_bp_xprofile_fields table and you’ll have an ID associated with each field which you should be able to use to call them.
March 18, 2009 at 7:24 pm #40347In reply to: Profile Fields – Hide on edit profile
enlightenmental1
Participantit appears the profile fields are being named rather generically…
i.e.
field_1
(first name)
field_2
(xprofile field #1)
field_3
(xprofile field #2)
I need a way to manually call/insert these values… and Im assuming they aren’t named “field_3” in the database
I was hoping if i add an extra field and call it “Referred by” that the DB table name would be “referred_by”
this this a correct presumption?
I have little knowledge of functions and this code has ALOT of them….
March 18, 2009 at 6:25 pm #40336In reply to: Profile Fields – Hide on edit profile
enlightenmental1
ParticipantI think i understand what you mean…. well… not really
‘
function bp_the_profile_field_value() {
global $field;
$field->data->value = bp_unserialize_profile_field( $field->data->value );
echo apply_filters( ‘bp_the_profile_field_value’, $field->data->value, $field->type, $field->id );
}
‘
you’re saying add a “if” statement, so if the “x_profile fields = this” do “this”…..
I dont know enough about php….
March 18, 2009 at 1:13 pm #40283In reply to: Profile Fields – Hide on edit profile
Burt Adsit
ParticipantYou’ll have to modify the member theme functions that display the fields in the profile. That gets generated in: /buddypress-member/profile/profile-loop.php
by the function: bp_the_profile_field_value() in /mu-plugins/bp-xprofile/bp-xprofile-templatetags.php
There’s a filter in there that you can hook: echo apply_filters( ‘bp_the_profile_field_value’, $field->data->value, $field->type, $field->id );
So that you can detect these specific fields and change what gets generated by bp.
March 17, 2009 at 6:11 pm #40234In reply to: Profile Fields – Hide on edit profile
enlightenmental1
ParticipantI see, I see… thanks
by “make plugin” you mean just handcode what i want….
can you tell me which files to edit:
wp-signup.php
(edit this to add extra fields to registration once I remove x_profile functionality)
how about the “edit profile” page?
which PHP file is that?
I still need to display those fields as “readonly”
thanks again
March 17, 2009 at 6:05 pm #40232In reply to: Profile Fields – Hide on edit profile
nicolagreco
Participant“you can do that making a plugin sure”
i said

For plugins i mean doing the thing you’ve thought
March 17, 2009 at 5:48 pm #40231In reply to: Profile Fields – Hide on edit profile
enlightenmental1
ParticipantHey Nicola,
I don’t mean to disagree with you, and Im sure you know more than me, but I think this IS possible….I’ve done it on other WP installs
once the extra profile fields are created, I just need a way to call them back.
(I realize I would be removing the “get additional fields” function and just code it by hand)
For example if I wanted to display the users first name, I would use this:
Register Page:
<input type="text" name="first_name" id="first_name" class="input" value="" size="25" tabindex="20" /></label>Profile Page:
<input type="text" name="first_name" id="first_name" class="input" value="<?php echo $_GET['first_name']; ?>" size="25" tabindex="20" READONLY=READONLY /></label>so rather than displaying the form fields dynamically(x_profile), I would just hand code them in based on what “extra fields” I’ve created
that will work won’t it?
I just need to know which files to modify….
thanks for brainstorming with me
March 17, 2009 at 4:16 pm #40216In reply to: Profile Fields – Hide on edit profile
nicolagreco
ParticipantIt can’t be done right now, but you can do that making a plugin sure
Nicola
-
AuthorSearch Results