im trying to connect my cable box, blu ray, and sound bar to the hdtv using hdmi? help

how about connecting Blu Ray and cable to separate HDMI inputs on the tv avd then connnect your soundbar to an optical out on the TV - that way all the devices will pass through the TV to the sound bar.