Regarding the shingles vaccine, the CDC states that "even if you have had shingles, you can still receive the shingles vaccine to help prevent future occurrences of the disease. There
is no specific time that you must wait after having shingles before receiving the shingles vaccine". (see the CDC website for the full text: CDC.gov)
Next, regarding the risk of infection from shingles exposure: Shingles is caused by the varicella virus, the same virus that causes chickenpox. What happens is after a person gets chickenpox, the virus stays in the body in a inactive state. Years later, the virus can reactivate, causing shingles. Therefore, you cannot get shingles from another person. But, the virus that causes shingles can cause someone who has never had chickenpox to develop chickenpox.
Hope that helps!