Hey, sorry to keep bugging you here about something that’s more like an alternative to your plugin, but my head is pounding, and I suspect you might be able to quickly/easily answer me. (And to be clear, I mean “quickly” as in “without taking a ton of your time” not as in “get back to me this instant!” So feel free to just swat the question away.)
Looks like this is where the title attribute is set, in the bp-core-classes.php file:
function populate() {
if ( function_exists( 'xprofile_install' ) )
$this->profile_data = $this->get_profile_data();
if ( $this->profile_data ) {
$this->user_url = bp_core_get_user_domain( $this->id, $this->profile_data, $this->profile_data );
$this->fullname = attribute_escape( $this->profile_data[BP_XPROFILE_FULLNAME_FIELD_NAME] );
$this->user_link = "user_url}' title='{$this->fullname}'>{$this->fullname}";
$this->email = attribute_escape( $this->profile_data );
} else {
$this->user_url = bp_core_get_user_domain( $this->id );
$this->user_link = bp_core_get_userlink( $this->id );
$this->fullname = attribute_escape( bp_core_get_user_displayname( $this->id ) );
$this->email = attribute_escape( bp_core_get_user_email( $this->id ) );
}
I guess I have two questions.
1. Is this probably the only place that really matters, or am I just looking for a shortcut because of my headache?
2. Without modifying the original core file, can I easily override (or supplement or something) this function elsewhere (i.e., in my child theme)? I haven’t dug around to figure out when populate() gets called. I’m pretty sure I could work out the php to search and replace the title link after the fact somehow, if that’d be the best route to take, but I haven’t a clue when/where I’d need to call a function to do so, or what checks I’d need to run before calling the new function, or whatever.
Or….no, if it were that simple, you’d have done the same. But perhaps I could modify your plugin’s first function (ray_bp_core_get_userlink) that way and create the alternate plugin (fully crediting you, of course) So now the questions are:
1) Would that do the trick?
2) Would you mind? I’d be glad to keep your donate info alive.
Though, really, rather than ape your plugin, I wonder…. how hard would it be to create an admin toggle where the wp admin selects one of two options, and that determines which approach is taken, if it’s really just that one function of yours….?
I suspect I’m not making much sense. I have got to get away from the computer screen and lie down before my head explodes. Thank you for your patience.