M.S.
The idea that pink eye is from getting poop in the eye is just a myth, and a ridiculous one at that! My son once smeared poop in his eye, and when I called the doctor worried about it, he laughed and said that pink eye is NOT related to poop!
My daughter though gets pink eye a couple times a year. It is usually caused in younger kids by wiping snot in their eye from a runny nose. It is highly contagious though, and can be picked up anywhere a child with pink eye has been. My daughter gets it because she has itchy eyes from allergies and rubs her eyes raw then bacteria from her dirty hands get in the raw areas and grows into pink eye. Pink eye is just the name they give for a bacterial infection in the eye.
When my daughter has it, we have her wear sunglasses; partially so everyone in public doesn't have to see the mess that her eyes are in, and also to remind her to keep her hands out of her eyes.
It is usually a day or two before all looks well again, but be very careful to finish out the prescribed doses because the infection will come back worse if you quit early.