Gossamer Forum
Quote Reply
Looking for hook!
I'm trying to hook post attachment downloads. The function is called post_download but using do_post_download seems to have no effect.

Does anyone know the right hook?
Quote Reply
Re: [Paul] Looking for hook! In reply to
Oops this should probably in the plugins forum - my bad.

If anyone can help I'm still looking :)
Quote Reply
Re: [Paul] Looking for hook! In reply to
I helped a tiny little bit by moving the post Wink

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Looking for hook! In reply to
Your attendance is so very much appreciated Cool
Quote Reply
Re: [Paul] Looking for hook! In reply to
Nevermind, it turns out I had the right hook but for some reason it won't work with a POST hook.
Quote Reply
Re: [Paul] Looking for hook! In reply to
What are you trying to do in the post hook? The actual code is responsible for printing out the attachment (i.e. no template parsing happens), so trying to do anything in a post hook related to output is pointless.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Looking for hook! In reply to
I wanted a post hook to make sure postatt_id was valid. GForum did the error checking so I didn't have to Wink

The hook was used for a post attachment download counter so I was just updating a column with the count.