Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Edit input tag profile field_1?


peterverkooijen
Participant

@peterverkooijen

I see the html for the xprofile input fields is in function get_edit_html in bp-xprofile-classes.php:

switch ( $this->type ) {
case 'textbox':
$html .= '<div class="signup-field">';
$html .= '<label class="signup-label" for="field_' . $this->id . '">' . $asterisk . $this->name . ':</label>';
$html .= $this->message . '<input type="text" name="field_' . $this->id . '" id="field_' . $this->id . '" value="' . attribute_escape( $this->data->value ) . '" />';
$html .= '<span class="signup-description">' . $this->desc . '</span>';
$html .= '</div>';
break;

So I guess I could add onkeyup=”copyinput()” there, but then all xprofile fields will get that. Would that mess up the system? The Javascript refers to the fields by ID.

According to Jeff Sayre this method will be deprecated in version 1.1, but I need a temporary solution before I make the switch.

Trying that now…

Skip to toolbar