if the dogs are using the house as a toilet, they aren’t housetrained. there’s only so much you can do to fix this…you can work on training and you can clean the carpets/walls with an enzymatic cleaner, but EVERYONE in the house needs to be on board.
this situation sucks, and i’m sorry you’re dealing with it. 🙁
i would go to the vet pronto.
Take him to a vet! You don’t want to mess with it and chance he loses his sight in that eye. I also would try a wet wash cloth soaking it (use salt water — add salt to hot water until the water tastes like the ocean, don’t use water hot enough to scald you or the dog!) to help clean and flush the eye until you can get him to that vet.
depending on the breed, it could be cherry eye to a simple infection, I had this situation with a cocker spaniel; vet is the best move.