Can't change text of ajax addremove friend buttons?
-
I’m going crazy here, I’m trying to change the text of the add friend/cancel friendship request button, but I can’t change it for the life of me. It seems I have no clue where it’s coming from. I managed to successfully do this with the favorite button by remove_action-ing the ajax handler that is registered in ajax.php. I then added my own custom action (essentially just a clone, with different text). Why not just use a .mo file you ask? I AM! For some reason or other, Ajax functions just seem to ignore it.
But here’s the kicker, in ajax.php I removed the line
'addremove_friend' => 'bp_dtheme_ajax_addremove_friend',
just for a gas. AND THE BUTTON TEXT IS STILL CHANGING? So either I’m crAZy, an idiot, or looking at the wrong function. In which case, I don’t understand what function would be doing this kind of thing if it’s not in ajax.php….
- The topic ‘Can't change text of ajax addremove friend buttons?’ is closed to new replies.