What is the ruling if hemorrhoid blood exits after completing ablution?
If this blood is exiting from outside the anus (due to the hemorrhoid protruding), it does not invalidate ablution, because blood exiting from the body from other than the two orifices does not invalidate ablution. If it exits from the anus (meaning from inside it), it invalidates ablution, and one must perform istinja' from it, wash the area of impurity, and repeat the ablution.
However, if this blood exits continuously such that no time remains sufficient for purification and prayer without it flowing, then it takes the ruling of urinary incontinence (sals al-bawl). One then cleanses from it after the time for each prayer enters, performs ablution immediately thereafter, and performs the obligatory prayer immediately. There is no liability upon him after that if something of it flows, and he may pray as many voluntary prayers as he wishes. If he wants to pray another obligatory prayer, he must cleanse himself and perform ablution. And Allah the Almighty knows best.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
Is a menstruating woman obliged to pray during menses, and should she make up missed prayers?
All perfect praise be to Allah, The Lord of The Worlds A menstruating woman is prohibited from prayer during her menses, and she isn`t obliged to make up missed prayers. And Allah Knows Best.
What is the ruling on the yellow discharge that comes from a woman during pregnancy?
These discharges are not menstrual blood, but they are impure like urine and break the Wudu (ablution). If the discharge is frequent, its ruling is similar to that of urinary incontinence. The woman should perform wudu after the time of each prayer, pray the obligatory prayer, and any additional prayers she wishes, read the Quran, and take precautions against impurity to the best of her ability. Using a special pad can prevent the impurity from spreading. And Allah Knows Best.