Is it permissible for the guardian, or the father of the child to hit the latter in order to teach him/her good manners?
It is permissible for the guardian to hit his/her child for teaching them good manners once they become ten years old provided that it is done mildly, harmlessly and without intimidation. Actually, such punishment is to be employed gradually i.e. after: asking, warning, and scolding. As for the teacher, he isn`t allowed to hit the student unless the latter`s father approves of it, and it is done according to necessity without intimidation, or harm.
What should a worshiper who has forgotten a pillar of prayer do?
If he/she remembered the forgotten pillar before offering it in the following Rakah (unit of prayer), then he/she should offer it, and continue the prayer, then offer Sujood As-Sahw (Prostration of forgetfulness) at the end of it. But, if he/she remembered that forgotten pillar after having offered it in the following Rakah, then he/she should offer a new Rakah in its (the one in which he forgot a pillar) place, and offer Sujood As-Sahw.
Is the father a Mahram (Non-marriageable) to his son`s mother-in-law?
The father is a non-Mahram (Marriageable) to his son`s mother-in-law, so it is impermissible for them to look at each other, or to have a seclusion (Khalwah).
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.