I took their perspective, I became more invested in their cause, I became more committed to them because they asked for advice.
Je me suis mis à leur place, Je leur ai porté attention, je leur ai été attentif, car ils m'ont demandé conseil.