I only did the diets the doctors put me on and i wasnt taking medications before. I have tried probiotics and i dont drink caffine.
Well, other than some major problem with your digestive tract, I can suggest that medications will sometimes do this to a person. If you started taking any medicine just before you had diarrhea in 2008-09, then review side effects. I was taking a couple mental health type drugs and wound up with diarrhea numerous times a day for six months, no one knew what it was. As soon as I went off those medicines, my diarrhea went away.
Also, if you are still trying to diet, I would like to suggest you stop doing that for a few months, drink a big glass of water before each meal (so you'll eat less and it's also good for digestion), quit eating just before you feel full, and continue to get regular exercise, so your weight won't go up. And to keep it from going down, be sure to eat enough of all the food groups: protein, milk and egg products, vegies and fruit, and carbs/fiber foods. Fiber foods should be added gradually, and include oat cereal, whole wheat bread, fresh or frozen cooked vegies, fruit just for snacks, and salads.
One thing that helps digestion is to introduce "probiotics" to what you eat, which are in Acidophilus milk or Activia yogurt from the grocery store. Just a couple weeks of that helps. Also, one thing that causes pain in the gut is gas, and so an ordinary Alka Seltzer Original is great for releasing that when you get that sharp pain. Gas can come from skipping meals or eating too fast, eating fruit with a meal intstead of by itself as a snack, drinking non-brandname sodas (of all things, but they can tear up a gut), and of course bacteria in the intestines. Your doc should draw blood and do a stool sample to check on that.