I found this video recently on how to repair a rivet style button. Clever, isn’t it?
Simple Button Repair
Repairing a shank style button is even simpler. You just obtain a metal repair shank and glue it onto your button.
You can find these in My eBay Store