Take magnesium citrate in the morning.
Start eating fruits and vegetables and chew thoroughly. You can take Metamucil for the other kind of fiber, but you will need to drink lots of water. Digestion won't work if you don't take care of your diet.
Sorry to hear what your going through. If your having problems using the restroom what I would possibly go to the store and buy over the counter stool softener that should help a lot with your constipation or the other thing you can use is prune juice that will also help soften the stool. good luck