Hi, I think you have rectal inflammation. That is causing you to feel like you have to have a b.m. but can't. It's painful and it causes you to strain a lot, probably and nothing comes out. Constipation is when you aren't going and you don't feel like you can go.
Make sure you are using some sort of retention enema to treat the rectum.
Good luck with this... feel better.