Ultraspherical type generating functions for orthogonal polynomials