Adding a hook into a specific member block tab?
I made a plugin that lets members view their recent "Thanks" in a member profile block tab.
Works great, except that this plugin also empties the "Thanks" notification whenever it is called. Problem is, the hook is in member_complete, which loads any time the member profile is loaded.
So if I have 3 "Thanks", and then click my profile (NOT the Thank Tab), it empties them. Even though I never viewed my recent Thanks tab.
How can I set these queries only to run from that specific tab?
Thanks!
|