Glue, Scotch Tape, or Neither on Shabbos

Can you use glue, scotch tape, or Post-it Note on Shabbos? Is it considered תופר (which is defined as attaching two things together)? What if it's temporary? Is there a difference between sewing and other forms of attaching when it comes to temporary תפירה?

How would this apply to diapers or band-aids?