1-This is something that when you have it, you feel happy.
2-This is something that you feel happy when you have it.
3-This is something that makes you feel happy when you have it.
I don't think 1 and 2 would be considered correct in formal English, but I wonder if people don't use sentences like these when speaking.
None of the three would be unusual.