MyBB Community Forums

Full Version: member_profile_start?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What does the hook in the title and the hook member_profile_end do?
What exaclty are you trying to do? member_profile_start just runs your code before mybb does any verification/query, while member_profile_end runs your code after mybb did all the hard work.

Depending on what you want to do you use one over the other. For example, for disabling users with less that 40 posts from viewing any profile, it may be better to hook at member_profile_start while member_profile_end may be better for disabling member with less that 10 posts from viewing admins profiles.

You choose the best hook to meet your needs with the best perfomance really.