How to secure new floor

I think I've read most stringer/floor threads on this forum, but I'm unclear as to the best method for attaching the floor to the stringers. The original floor was attached with staples obviously, but should I go back with screws, or adhesive? Screws and adhesive? And don't be afraid to hit me with any additional tips!

One more thing - what type of glue did you use for putting down the carpet?