BP is automatically creating links of certain words in my user profile. How to stop/remove that?
-
So, on my user Profile page, it has my name, about me, etc.. .. .. It kind of makes sense to have the name link back to the user profile, but you area already on that user profile, so never mind.. .. it doesn’t make sense. But my REAL concern is that other words or phrases are being turned into links.. links that seem to do a search for that word or something.
For example:
The About Me field is describing the user; ” Mr White is an author, historian, and teacher from East Tennessee…”and somehow, the words “author” and “historian” are turned into links, but not “teacher” or “East Tennessee”. I don’t understand.
This is what “author” links to:
http://my-buddypress-site.com/members/?s=author?s=author Is that a search of some kind?
I don’t want any of the words to be links.
I found this, in profile-loop.php:
<table class="profile-fields zebra"> <tr> <td class="label"> </td> <td class="data"> </td> </tr> </table>
Then tracked down “bp_the_profile_field_value()” in bp-xprofile-templatetags.php :
function bp_the_profile_field_value() { echo bp_get_the_profile_field_value(); } function bp_get_the_profile_field_value() { global $field; $field->data->value = bp_unserialize_profile_field( $field->data->value ); return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id ); }
Which led me to “bp-xprofile-filters.php”, Where I found this:
/** * xprofile_sanitize_data_value_before_save ( $field_value, $field_id ) * * Safely runs profile field data through kses and force_balance_tags. * * <a href='http://buddypress.org/community/members/param/' rel='nofollow'>@param</a> string $field_value * <a href='http://buddypress.org/community/members/param/' rel='nofollow'>@param</a> int $field_id * @return string */
I’m not sure what to make of this, or even if I’m on the right track. Can someone please help with this issue? Thanks in advance!
I’m not very familiar with php, and this is my first BuddyPress project, and only my third WordPress project.
-Brandon
- The topic ‘BP is automatically creating links of certain words in my user profile. How to stop/remove that?’ is closed to new replies.