Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

help making download counter

Quote Reply
help making download counter
Hello,

I am attempting to make a simple download counter for post attachments in GForum. I would like to display this next to each post attachment...'Downloaded XX times'. I have never done this before, so please excuse my ignorance. Downloads are handled by gforum.cgi?do=post_attachment;posttid=XX I have added an integer field in gforum_PostAttachment called click_count with the value set to zero. My hope was to locate the code that calls the attachment and add a call to read click_count, increment by one and then save result, but am having trouble locating the code.

Can anyone point me in the right direction? Is this as straight forward as it seems or am I missing something? I was going to add a 3rd party cgi counter, but found that GF uses a cgi to download and thought I could do the mod.

Any assistance would be appreciated.

Dave
Subject Author Views Date
Thread help making download counter bretzke 3154 Jan 15, 2003, 6:33 PM
Post Re: [bretzke] help making download counter
bretzke 3057 Jan 20, 2003, 1:08 PM
Post Re: [bretzke] help making download counter
pugdog 2853 Dec 2, 2003, 2:59 PM