I think that R2 in KS has some good advice, especially taking psyllium husk fiber 3X a day and avoiding caffeine, dairy and excessive bread products. I would add raw fruits and vegetables to the list of things to avoid. And it's important to not eat too much, and it's even worse to eat too little. Unfortunately, I am not disciplined enough to avoid all these things on a consistent basis and I suffer for it. I also tend to overeat which makes things worse. By overeating, I'm referring to volume, not calories. In other words, if I eat a whole banana and a good handful of nuts, along with whole grain cereal and soy milk, I WILL suffer later in the day.
Another bad thing to do is to PUSH, and you all know what I'm talking about. I think I finally figured out what's causing all the burning from the leakage I get - it's from hemorrhoids caused by trying to push every bit out. It took about 4 weeks of trying to go easy till it got better. Even though I still get leakage (my major problem) it hasn't been burning me as much.
Yes, everyone is different, but I do believe that there are some common things that get us better or worse. My leakage may be caused by strictures that tend to develop periodically, or maybe just from the damage I've had down there. But I do have better days when I am more careful with diet. I also need to take one Imodium a day.