Perhaps your way does work, but then it needs to be permenant along with a sort of light switch series of user configurable parameters in the activity entry loop sort of:
## user config options ##
// 0 = off 1 = on
$bp_link_vote = ‘0’;
That’s not correct but I do something similar quite often with other stuff, I think there’s a far simpler approach for the end user somewhere.