When I had my initial "flare up" which was more like food poisoning (chinese takeaway) that then caused problems the most stable food I stuck with was potato. Then get stable, then add bits to that.. The Doctor basically said IBS but I thought it can vary what exactly appears as IBS can not be IBS..
Eventually I found that dairy (milk, cheese etc) over a certain amount gives me untold wind and that leaves me in pain that then removed that.. recently I found Quorn really gives me wind and serious pain (i.e. no sleep, rolling around) but then so does continental beer and hot chilli (although the last two are ok in my book.. but the beer is in moderation and chilli is a regular but not as hot as I used to eat). Oddly I think.. just a suspicion that I'm slightly allergic to sulphur when added in the yellowing of egg yokes, in wine as a preservative and other things. I think MSG isn't good for it either - it's a salt anyway..
I found that moving in with the missus and having a switch to things like pizza, quite fatty/sugary diet then caused me complications etc.. and I've not got to the point we're back to being at least semi healthy and cooking proper balanced meals. Which has helped.
I don't think I have "IBS" although that's the doctor's diagnosis but I think certain foods cause the 'fauna and flora' of the gut to produce too much wind and that causes physical pain/problems. Ok that was a bit too much info
My point is - find a stable carbohydrate that allows your guts to get to solid food again and then build on that .. if you find you relapse then give that food a break.
Also I found that exercise worked - kept everything moving.. so things didn't seize up

I don't drink much and I don't really eat/drink sugary stuff.
I can eat chilli (I like hot curries!) and drink beer although typically it causes more of a problem than perhaps to a normal person... I just have to moderate it a little.
Oh.. Jalfrezi is your friend.. it's tomato + onion + chilli both blended and in chunks and stirfried with a little oil. There should be no butter, cream, sugar or milk in it (if there is then it's not a jalfrezi). Also Vindaloo is great but again there shouldn't be butter, milk or cream in it.