Hey honey, what you are describing sounds very much like a rectal prolapse to me. Basically this happens when the anus protrudes further down than it should and it can be pushed back into place gently. This is generally a result of being severely constipated and sitting on the toilet straining.
You should not spend hours sitting on the toilet to have your bowels open. The most you should spend sitting on the toilet is ten mins. What you need to do is start taking some Metamucil. This is a water soluble fiber supplement and will help bulk up your stools and is as helpful for constipation as it is for diarrhea. Make sure you take it with plenty of water and also take Sodium Docusate with it. This is a stool softener and will help make your stools easier to pass without straining all the time.
Also, taking a Magnesium supplement is very good for constipation, but it can give you diarrhea.
If you still can't open your bowels then use a glycerine suppository rather than laxatives. Also ensure that you drink plenty of water and get regular exercise. This all helps your bowels to get working.