In Harry Potter and the Prisoner of Azkaban (film), why were Ron and Hermione kept from entering the Three Broomsticks by the shrunken heads for being underage, when Hogwarts students went in there all the time?
What the "shrunken head" actually says in the film is (emphasis mine):
So it was only on that particular day, or that particular time, that underage wizards weren't allowed in the Three Broomsticks, and there's no contradiction with the fact that Hogwarts students go in there all the time on other days.
As for the reason, it probably had to do with the meeting going on in there between the Minister for Magic and some of the teachers. While they were discussing the ins and outs of the case of the (supposed) mass murderer Sirius Black, they wouldn't want random kids overhearing their conversation. Especially one Mr Harry Potter, although as things turned out, their precautions were rather useless on that score...
(It should be noted that this whole "shrunken heads" business is pointless nonsense made up for the films, and has no basis in canon.)