So, to turn it around on you, if your choice is to let friends know that you've donated $X to some charity which may cause them to also be more charitable, or to keep it private because you are afraid of looking tacky, you have made the choice that your self-image is more important than the extra money it may cause friends to donate to the needy.
BTW, it is a great book -- the most important book I've read in at least 10 years. One important point is his philosophy: all suffering is important, not just the people you know or who are local to you. Raising $30,000 for a fancy truck for a disabled person is unquestionably a kind act, but that same amount of money could save 20 lives in a developing country, or prevent river blindness in more than 100 children.