Too much Advil can cause diarrhea so I would stop taking that at this point. If you still need pain relief, switch to Tylenol. As for the green color, I don't think it's a problem and should stop. Here's a good explanation -
http://ibscrohns.about.com/cs/otherdiseases/a/greenstool.htm
Try to eat foods like rice, bananas, applesauce and toast. Do not eat dairy. Go to a natural foods store and get an acidophilus supplement - the good bacteria found in yogurt. A good one is Primadophilus. Take 4 capsules in the morning and 4 in the evening for a week and if you are better continue on 1 capsule a day.
If you've taken antibiotics for your wisdom teeth, that could also make you more prone to diarrhea as well.
If you have more questions, just ask.
If I've helped you, click accept to close the question and leave feedback for my ratings and yours.