This is a requested guide. I don't currently have a fruit fly problem but I learned this when I lived in an area that did have a lot of fruit flys.
These next few images will just be different variations of materials to make the trap out of. They all work the same way. Some use fruit juice or honey instead of fruit.
I hope this is helpful.